CCob / bittrex4j

Java library for accessing the Bittrex Web API's and Web Sockets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Websocet subscribeToExchangeDeltas method

CheremisinVlad opened this issue · comments

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?

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);

Thanks a lot for your answer.It's clear now..