Class GateioStreamingMarketDataService
java.lang.Object
info.bitrich.xchangestream.gateio.GateioStreamingMarketDataService
- All Implemented Interfaces:
- StreamingMarketDataService
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Observable<OrderBook>getOrderBook(CurrencyPair currencyPair, Object... args) Uses the limited-level snapshot method: https://www.gate.io/docs/apiv4/ws/index.html#limited-level-full-order-book-snapshotio.reactivex.rxjava3.core.Observable<Ticker>getTicker(CurrencyPair currencyPair, Object... args) Get a ticker representing the current exchange rate.io.reactivex.rxjava3.core.Observable<Trade>getTrades(CurrencyPair currencyPair, Object... args) Get the trades performed by the exchange.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface info.bitrich.xchangestream.core.StreamingMarketDataServicegetFundingRate, getFundingRates, getOrderBook, getOrderBookUpdates, getTicker, getTrades
- 
Field Details- 
MAX_DEPTH_DEFAULTpublic static final int MAX_DEPTH_DEFAULT- See Also:
 
- 
UPDATE_INTERVAL_DEFAULTpublic static final int UPDATE_INTERVAL_DEFAULT- See Also:
 
 
- 
- 
Constructor Details- 
GateioStreamingMarketDataService
 
- 
- 
Method Details- 
getOrderBookpublic io.reactivex.rxjava3.core.Observable<OrderBook> getOrderBook(CurrencyPair currencyPair, Object... args) Uses the limited-level snapshot method: https://www.gate.io/docs/apiv4/ws/index.html#limited-level-full-order-book-snapshot- Specified by:
- getOrderBookin interface- StreamingMarketDataService
- Parameters:
- currencyPair- Currency pair of the order book
- args- Order book level:- Integer, update speed:- Duration
- Returns:
- Observablethat emits- OrderBookwhen exchange sends the update.
 
- 
getTickerpublic io.reactivex.rxjava3.core.Observable<Ticker> getTicker(CurrencyPair currencyPair, Object... args) Description copied from interface:StreamingMarketDataServiceGet a ticker representing the current exchange rate. EmitsNotConnectedExceptionWhen not connected to the WebSocket API.Warning: There are currently no guarantees that messages will not be skipped, or that any initial state message will be sent on connection. - Specified by:
- getTickerin interface- StreamingMarketDataService
- Parameters:
- currencyPair- Currency pair of the ticker
- Returns:
- Observablethat emits- Tickerwhen exchange sends the update.
 
- 
getTradespublic io.reactivex.rxjava3.core.Observable<Trade> getTrades(CurrencyPair currencyPair, Object... args) Description copied from interface:StreamingMarketDataServiceGet the trades performed by the exchange. EmitsNotConnectedExceptionWhen not connected to the WebSocket API.Warning: There are currently no guarantees that messages will not be skipped. - Specified by:
- getTradesin interface- StreamingMarketDataService
- Parameters:
- currencyPair- Currency pair of the trades
- Returns:
- Observablethat emits- Tradewhen exchange sends the update.
 
 
-