Kucoin / kucoin-futures-python-sdk

MIT License
7 stars 3 forks source link

Exception: 400-{"code":"400002","msg":"Invalid KC-API-TIMESTAMP"} #42

Closed AdrianOM98 closed 1 month ago

AdrianOM98 commented 2 years ago

imagen

i try make an orden or another operation whith module Trade. help me please.

Gettippi commented 1 year ago

Hey there,

I had a similar issue which is solved easily: For some reason, the computer I was running the program on was not on time.

I've synced the Windows clock and the problem disappeared.

Hope it helps you as well

yfprime commented 8 months ago

Hey there,

I had a similar issue which is solved easily: For some reason, the computer I was running the program on was not on time.

I've synced the Windows clock and the problem disappeared.

Hope it helps you as well

I have the same issue occasionally on an Ubuntu VM, even if I sync successfully every 15 seconds.

guimauveb commented 8 months ago

Even when using the server time from the /api/v1/timestamp endpoint I encounter this error on almost every level2 snapshot request. The timestamp is well within the 5 seconds interval mentioned here , so there must be something else.

yfprime commented 3 months ago

Has anyone found a fix for this?

ISAAC-XXYYZZ commented 1 month ago

I ran the code following your samples, and everything works perfectly. Please try updating to the latest version of the SDK and modify your code to try again. If you encounter any issues, feel free to provide feedback.