-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error code 304 - Python API #29
Comments
Have you tried settings PS: I don't think |
Found something about error codes: https://github.com/ccxt/ccxt/blob/6afab37de15feb9c44d82505adf375fc03e2108b/python/ccxt/bitvavo.py It's probably |
OK, since the time I commented on this, I've had a LOT more experience with the API and have gotten a ton of 304 errors. Turns out it's NOT an You can run this bit to see the difference - it's 5000ms for me (quite a bit, I know!) from time import time
from urllib.request import urlopen
import json
def time_ms() -> int:
return int(time() * 1000)
def calculate_lag():
url = "https://api.bitvavo.com/v2/time"
result = json.loads(urlopen(url).read())
server_time = result["time"]
local_time = time_ms()
time_delta_ms = result["time"] - local_time
print(f"server_time: {server_time}")
print(f"local_time: {local_time}")
print(f"difference: {time_delta_ms}") So yeah, it's not you - it's your system clock. PS: Make sure your Windows clock is synced in your |
Hello,
I am new to Python and I am following the guide. However, when I want to see my account with Python I get the error 304 ?
The code as of now is:
"from python_bitvavo_api.bitvavo import Bitvavo
bitvavo = Bitvavo({
'APIKEY': '',
'APISECRET': '',
'RESTURL': 'https://api.bitvavo.com/v2',
'WSURL': 'wss://ws.bitvavo.com/v2/',
'TIME': 'bitvavo.time()',
'ACCESSWINDOW': 10000,
'DEBUGGING': False
})
response = bitvavo.account()
print(response)"
The text was updated successfully, but these errors were encountered: