Closed lyonLeeLPL closed 5 years ago
Hi @a5601564
If problem not solved, please provide more information about error (language, code example)
import time import queue from hitbtc import HitBTC c = HitBTC() c.start() # start the websocket connection time.sleep(2) # Give the socket some time to connect c.subscribe_ticker(symbol='ETHBTC') # Subscribe to ticker data for the pair ETHBTC
while True: try: data = c.recv()
except queue.Empty:
continue
# process data from websocket
c.stop()
Error: Cannot Send payload - Connection not established!
Set a higher value for time.sleep() and it works just fine
Cannot Send payload - Connection not established!