knowm / XChange

XChange is a Java library providing a streamlined API for interacting with 60+ Bitcoin and Altcoin exchanges providing a consistent interface for trading and accessing market data.
http://knowm.org/open-source/xchange/
MIT License
3.87k stars 1.94k forks source link

[Streaming] Bitmex Exception getOrders() #3535

Open julian-su opened 4 years ago

julian-su commented 4 years ago

Hi all, I want to subscribe to the getOrders() method that is in BitmexStreamingTradeService class, but i get an exception

"Exception in thread "main" org.knowm.xchange.exceptions.NotYetImplementedForExchangeException: Feature not yet implemented for exchange. at info.bitrich.xchangestream.core.StreamingExchange.getStreamingTradeService(StreamingExchange.java:99)"

so i guess this: /* Returns service that can be used to access streaming trade data. / default StreamingTradeService getStreamingTradeService() { throw new NotYetImplementedForExchangeException(); }

should be changed for this in the StreamingExchange interface or something like that: StreamingTradeService getStreamingTradeService()

thanks

mdvx commented 4 years ago

I am looking at this too (I but BitMEX aside for a good few months), I am looking at my old code.