Skip to content
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

-1021 INVALID_TIMESTAMP after a long script runs #200

Open
LeeFuuChang opened this issue Oct 7, 2024 · 0 comments
Open

-1021 INVALID_TIMESTAMP after a long script runs #200

LeeFuuChang opened this issue Oct 7, 2024 · 0 comments

Comments

@LeeFuuChang
Copy link

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 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant