Package info.bitrich.xchangestream.okex
Class OkexStreamingMarketDataService
java.lang.Object
info.bitrich.xchangestream.okex.OkexStreamingMarketDataService
- All Implemented Interfaces:
StreamingMarketDataService
-
Constructor Summary
Constructors -
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, waitMethods 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:
getTickerin interfaceStreamingMarketDataService
-
getTrades
- Specified by:
getTradesin interfaceStreamingMarketDataService
-
getFundingRate
public io.reactivex.rxjava3.core.Observable<FundingRate> getFundingRate(Instrument instrument, Object... args) Description copied from interface:StreamingMarketDataServiceGet funding rate of specific instrument.- Specified by:
getFundingRatein interfaceStreamingMarketDataService- Parameters:
instrument- Instrument to get the funding rate for- Returns:
Observablethat emitsFundingRatewhen exchange sends the update.
-
getOrderBook
public io.reactivex.rxjava3.core.Observable<OrderBook> getOrderBook(Instrument instrument, Object... args) - Specified by:
getOrderBookin interfaceStreamingMarketDataService
-
getOrderBookUpdates
public io.reactivex.rxjava3.core.Observable<List<OrderBookUpdate>> getOrderBookUpdates(Instrument instrument, Object... args) Description copied from interface:StreamingMarketDataServiceGet snapshots of orderBook update separately. Work only withStreamingMarketDataService.getOrderBook(Instrument, Object...)subscription.- Specified by:
getOrderBookUpdatesin interfaceStreamingMarketDataService- Returns:
Observablethat emitsOrderBookUpdatewhen exchange sends the orderBook snapshot.
-