Crypto-toolbox / btfxwss

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

fail to run client.py ,help #165

Closed kilometer2162 closed 5 years ago

kilometer2162 commented 5 years ago

I ran the file 'client.py' ,got this error " Cannot call subscribe_to_ticker() on unestablished connection! "

deepbrook commented 5 years ago

Hey @liudy2162 , That error speaks for itself - you've tried to subscribe to a ticket before the client was able to establish a connection. Try time.sleep() or a try/except block to re-try subscibing.

kilometer2162 commented 5 years ago

Thanks @nlsdfnbch