Class CoinbaseProStreamingTradeService

All Implemented Interfaces:

public class CoinbaseProStreamingTradeService extends Object implements StreamingTradeService
  • Method Details

    • getUserTrades

      public io.reactivex.rxjava3.core.Observable<UserTrade> getUserTrades(CurrencyPair currencyPair, Object... args)
      Description copied from interface: StreamingTradeService
      Gets 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(

      Emits NotConnectedException When not connected to the WebSocket API.

      Immediately throws ExchangeSecurityException if called without authentication details

      Specified by:
      getUserTrades in interface StreamingTradeService
      currencyPair - Currency pair for which to get trades.
      Observable that emits UserTrade when exchange sends the update.
    • getOrderChanges

      public io.reactivex.rxjava3.core.Observable<Order> getOrderChanges(CurrencyPair currencyPair, Object... args)
      Warning: the order change stream is not yet fully implemented for Coinbase Pro. Orders are not fully populated, containing only the values changed since the last update. Other values will be null.
      Specified by:
      getOrderChanges in interface StreamingTradeService
      currencyPair - Currency pair of the order changes.
      Observable that emits Order when exchange sends the update.
    • getRawWebSocketTransactions

      public io.reactivex.rxjava3.core.Observable<CoinbaseProWebSocketTransaction> getRawWebSocketTransactions(CurrencyPair currencyPair, boolean filterChannelName)
      Web socket transactions related to the specified currency, in their raw format.
      currencyPair - The currency pair.
      The stream.