Crypto-toolbox / btfxwss

Bitfinex Websocket API Client written in Python3
MIT License
284 stars 125 forks source link

the auth_nonce problem #164

Open 51bitquant opened 5 years ago

51bitquant commented 5 years ago

the bitfinex official docs has explicitly says 'authNonce string An ever increasing numeric string but should not exceed the MAX_SAFE_INTEGER constant value of 9007199254740991."

but in your code , nonce = int(float(time.time()) 100000) is already greater then 9007199254740991, it may occur some problem in the future, i think the best way for produce the nonce would like the following: nonce = str( int(float(time.time()) 100000) )