Websocet subscribeToExchangeDeltas method
CheremisinVlad opened this issue · comments
CheremisinVlad commented
Hello!Fist of all thanks for great work.
I have one stupid question.
When i use subscribeToExchangeDeltas() method , how can i recieve data when bittrex push it?
Ceri Coburn commented
Have you looked at the examples, these should show everything you need. But essentially you need to register callback methods similar to below first
bittrexExchange.onUpdateExchangeState(updateExchangeState -> {
//your code on new event here
})
Then during the connectToWebsocket callback you would register your interest in a specific market like this
bittrexExchange.subscribeToExchangeDeltas("BTC-ETH", null);
CheremisinVlad commented
Thanks a lot for your answer.It's clear now..