Skip to content

Websockets not working #5

Open
Open
@manuel2258

Description

@manuel2258

I tried to initiate a websocket connection using the following example you have posted into your README:
def openTickerStream():
cob = Cobinhood()
cobeth_orderbook = Orderbook('COB-ETH')
cob.ws.start(subscribe=[cobeth_orderbook], on_message=on_message)

def on_message(cob_obj, msg):
print (cob_obj.system.get_time())
print (cob_obj.ws.exchange_data.orderbook)
print (msg)
Using this code, there is no response at all. Maybe the websocket endpoint is outdated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions