You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But in python, I couldn't find the configuration for useServerTime, after digging into the code, I've found get_timestamp function in lib/utils.py, which directly uses time.time()*1000 as the timestamp, instead of binance's server time.
This causes the issue when localtime is a bit off, is it possible to add a __init__ kwarg for use_server_time and make the get_timestamp fetch server time?
The text was updated successfully, but these errors were encountered:
Similar to this issue:
Timestamp 1000ms error with useServerTime = true for long-running script
But in python, I couldn't find the configuration for
useServerTime
, after digging into the code, I've foundget_timestamp
function inlib/utils.py
, which directly usestime.time()*1000
as the timestamp, instead of binance's server time.This causes the issue when localtime is a bit off, is it possible to add a
__init__
kwarg foruse_server_time
and make theget_timestamp
fetch server time?The text was updated successfully, but these errors were encountered: