Package info.bitrich.xchangestream.bybit
Class BybitStreamingMarketDataService
java.lang.Object
info.bitrich.xchangestream.bybit.BybitStreamingMarketDataService
- All Implemented Interfaces:
StreamingMarketDataService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Observable<CandleStickData> getCandleStick(Instrument instrument, CandleStickInterval interval) Get candlestick data.io.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) 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<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, getOrderBookTicker, getTicker, getTrades
-
Field Details
-
TRADE
- See Also:
-
ORDERBOOK
- See Also:
-
TICKER
- See Also:
-
CANDLE
- 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:
getOrderBookin interfaceStreamingMarketDataService- Parameters:
args- - orderbook depth or several depths
-
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.
-
getTrades
- Specified by:
getTradesin interfaceStreamingMarketDataService
-
getTicker
public io.reactivex.rxjava3.core.Observable<Ticker> getTicker(Instrument instrument, Object... args) - Specified by:
getTickerin 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.
-
getCandleStick
public io.reactivex.rxjava3.core.Observable<CandleStickData> getCandleStick(Instrument instrument, CandleStickInterval interval) Description copied from interface:StreamingMarketDataServiceGet candlestick data.- Specified by:
getCandleStickin interfaceStreamingMarketDataService- Parameters:
instrument- Instrument to get the candlestick data forinterval- Candlestick interval- Returns:
Observablethat emitsCandleStickDatawhen exchange sends the update.
-