Package info.bitrich.xchangestream.bybit
Class BybitStreamingMarketDataService
java.lang.Object
info.bitrich.xchangestream.bybit.BybitStreamingMarketDataService
- All Implemented Interfaces:
StreamingMarketDataService
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Observable<OrderBook>
getOrderBook
(Instrument instrument, Object... args) Linear invalid input: '&' inverse: Level 1 data, push frequency: 10ms Level 50 data, push frequency: 20ms Level 200 data, push frequency: 100ms Level 500 data, push frequency: 100ms Spot: Level 1 data, push frequency: 10ms Level 50 data, push frequency: 20ms Level 200 data, push frequency: 200msio.reactivex.rxjava3.core.Observable<List<OrderBookUpdate>>
getOrderBookUpdates
(Instrument instrument, Object... args) Get snapshots of orderBook update separately.io.reactivex.rxjava3.core.Observable<Trade>
getTrades
(Instrument instrument, Object... args) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface info.bitrich.xchangestream.core.StreamingMarketDataService
getFundingRate, getFundingRates, getOrderBook, getTicker, getTicker, getTrades
-
Field Details
-
TRADE
- See Also:
-
ORDERBOOK
- See Also:
-
TICKER
- See Also:
-
-
Constructor Details
-
BybitStreamingMarketDataService
-
-
Method Details
-
getOrderBook
public io.reactivex.rxjava3.core.Observable<OrderBook> getOrderBook(Instrument instrument, Object... args) Linear invalid input: '&' inverse: Level 1 data, push frequency: 10ms Level 50 data, push frequency: 20ms Level 200 data, push frequency: 100ms Level 500 data, push frequency: 100ms Spot: Level 1 data, push frequency: 10ms Level 50 data, push frequency: 20ms Level 200 data, push frequency: 200ms- Specified by:
getOrderBook
in interfaceStreamingMarketDataService
- Parameters:
args
- - orderbook depth
-
getOrderBookUpdates
public io.reactivex.rxjava3.core.Observable<List<OrderBookUpdate>> getOrderBookUpdates(Instrument instrument, Object... args) Description copied from interface:StreamingMarketDataService
Get snapshots of orderBook update separately. Work only withStreamingMarketDataService.getOrderBook(Instrument, Object...)
subscription.- Specified by:
getOrderBookUpdates
in interfaceStreamingMarketDataService
- Returns:
Observable
that emitsOrderBookUpdate
when exchange sends the orderBook snapshot.
-
getTrades
- Specified by:
getTrades
in interfaceStreamingMarketDataService
-