sammchardy / python-kucoin

Kucoin REST and Websocket API python implementation
https://python-kucoin.readthedocs.io/en/latest/
MIT License
352 stars 148 forks source link

No Timestamp #15

Closed iero closed 6 years ago

iero commented 6 years ago

Dear all

After connection to the API, client.get_last_timestamp() return None

But other commands are working well. Any other idea to get the server timestamp ?

Antonio-Ionaton commented 6 years ago

Timestamp doesn't work for me either. It just stopped working. Also cancel_orders doesn't work for me, or it works off and on. It seems to me Kucoin is quite unstable.

sammchardy commented 6 years ago

Hi @iero, this may not be completely clear or documented well. When performing requests to Kucoin the responses have a timestamp value in them, this is saved and is returned from client.get_last_timestamp().

So best way to get it would be to call something small like get_currencies then follow up with get_last_timestamp

iero commented 6 years ago

Thanks for the explanation @sammchardy ! For information, I use your libraries in my project : https://github.com/iero/Crypto