Package info.bitrich.xchangestream.okex
Class OkexStreamingMarketDataService
java.lang.Object
info.bitrich.xchangestream.okex.OkexStreamingMarketDataService
- All Implemented Interfaces:
StreamingMarketDataService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Observable<FundingRate>
getFundingRate
(Instrument instrument, Object... args) Get funding rate of specific instrument.io.reactivex.rxjava3.core.Observable<OrderBook>
getOrderBook
(Instrument instrument, Object... args) io.reactivex.rxjava3.core.Observable<List<OrderBookUpdate>>
getOrderBookUpdates
(Instrument instrument, Object... args) Get snapshots of orderBook update separately.io.reactivex.rxjava3.core.Observable<Ticker>
getTicker
(Instrument instrument, Object... args) 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
getFundingRates, getOrderBook, getTicker, getTrades
-
Constructor Details
-
OkexStreamingMarketDataService
-
-
Method Details
-
getTicker
public io.reactivex.rxjava3.core.Observable<Ticker> getTicker(Instrument instrument, Object... args) - Specified by:
getTicker
in interfaceStreamingMarketDataService
-
getTrades
- Specified by:
getTrades
in interfaceStreamingMarketDataService
-
getFundingRate
public io.reactivex.rxjava3.core.Observable<FundingRate> getFundingRate(Instrument instrument, Object... args) Description copied from interface:StreamingMarketDataService
Get funding rate of specific instrument.- Specified by:
getFundingRate
in interfaceStreamingMarketDataService
- Parameters:
instrument
- Instrument to get the funding rate for- Returns:
Observable
that emitsFundingRate
when exchange sends the update.
-
getOrderBook
public io.reactivex.rxjava3.core.Observable<OrderBook> getOrderBook(Instrument instrument, Object... args) - Specified by:
getOrderBook
in interfaceStreamingMarketDataService
-
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.
-