Class GateioStreamingTradeService
java.lang.Object
info.bitrich.xchangestream.gateio.GateioStreamingTradeService
- All Implemented Interfaces:
- StreamingTradeService
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Observable<UserTrade>io.reactivex.rxjava3.core.Observable<UserTrade>getUserTrades(CurrencyPair currencyPair, Object... args) Gets authenticated trades for the logged-in user.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface info.bitrich.xchangestream.core.StreamingTradeServicegetOrderChanges, getOrderChanges, getUserTrades
- 
Constructor Details- 
GateioStreamingTradeService
 
- 
- 
Method Details- 
getUserTradespublic io.reactivex.rxjava3.core.Observable<UserTrade> getUserTrades(CurrencyPair currencyPair, Object... args) Description copied from interface:StreamingTradeServiceGets authenticated trades for the logged-in user.Warning: there are currently no guarantees that messages will arrive in order, that messages will not be skipped, or that any initial state message will be sent on connection. Most exchanges have a recommended approach for managing this, involving timestamps, sequence numbers and a separate REST API for re-sync when inconsistencies appear. You should implement these approaches, if required, by combining calls to this method with TradeService.getTradeHistory(org.knowm.xchange.service.trade.params.TradeHistoryParams)Emits NotConnectedExceptionWhen not connected to the WebSocket API.Immediately throws ExchangeSecurityExceptionif called without authentication details- Specified by:
- getUserTradesin interface- StreamingTradeService
- Parameters:
- currencyPair- Currency pair for which to get trades.
- Returns:
- Observablethat emits- UserTradewhen exchange sends the update.
 
- 
getUserTrades- Specified by:
- getUserTradesin interface- StreamingTradeService
 
 
-