Open hippylover opened 7 years ago
With pr #33 I'm able to connect to bittrex with the following code:
from requests import Session
from signalr import Connection
def handle_received(**data):
print(data)
def print_error(error):
print('error: ', error)
def main():
with Session() as session:
connection = Connection("https://www.bittrex.com/signalR/", session)
corehub = connection.register_hub('corehub')
connection.start()
connection.received += handle_received
connection.error += print_error
for market in ["BTC-ETH"]:
corehub.server.invoke('SubscribeToExchangeDeltas', market)
while True:
connection.wait(1)
if __name__ == "__main__":
main()
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?