You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from requests import Session
from signalr import Connection
import time
markets = ['BTC-DGB', 'BTC-STRAT']
with Session() as session:
connection = Connection('http://socket.bittrex.com/signalr', session)
corehub = connection.register_hub('coreHub')
connection.start()
#create new chat message handler
def print_received_message(data):
print(data)
# if data['Nounce'] is not None:
# print('Nounce', data['Nounce'])
# if data['Deltas'] is not None:
# for value in data['Deltas']:
# print(value)
#create error handler
def print_error(error):
print('error: ', error)
# debug information, show all data
def print_raw_data(*args, **kwargs):
print (args, kwargs)
connection.received += print_raw_data
with connection:
corehub.server.invoke('SubscribeToExchangeDeltas', ['BTC-ETH'])
#corehub.client.on('updateSummaryState', print_received_message)
connection.error += print_error
connection.wait(1)
while True:
pass
Do anyone know what is wrong?
The text was updated successfully, but these errors were encountered:
Hello. I would like to get live orderbook updates as outlined in attached doc.
WebSocketAPI_MarketTracking_bittrex.docx
But i can't figure out how to do it.
Do anyone know what is wrong?
The text was updated successfully, but these errors were encountered: