Interface StreamingMarketDataService

All Known Implementing Classes:
BankeraStreamingMarketDataService, BinanceStreamingMarketDataService, BitfinexStreamingMarketDataService, BitflyerStreamingMarketDataService, BitmexStreamingMarketDataService, BitstampStreamingMarketDataService, CexioStreamingMarketDataService, CoinbaseProStreamingMarketDataService, CoincheckStreamingMarketDataService, CoinmateStreamingMarketDataService, dydxStreamingMarketDataService, dydxStreamingMarketDataService, FtxStreamingMarketDataService, GateioStreamingMarketDataService, GeminiStreamingMarketDataService, HitbtcStreamingMarketDataService, HuobiStreamingMarketDataService, KrakenFuturesStreamingMarketDataService, KrakenStreamingMarketDataService, KucoinStreamingMarketDataService, LgoStreamingMarketDataService, OkCoinStreamingMarketDataService, OkexStreamingMarketDataService, PoloniexStreamingMarketDataService

public interface StreamingMarketDataService
  • Method Details

    • getOrderBook

      default io.reactivex.Observable<OrderBook> getOrderBook(CurrencyPair currencyPair, Object... args)
      Get an order book representing the current offered exchange rates (market depth).

      Warning: The library will attempt to keep the snapshots returned in sync with the exchange using the approaches published by that exchange. However, there are currently no guarantees that messages will not be skipped, or that any initial state message will be sent on connection. Emits NotConnectedException when not connected to the WebSocket API.

      Parameters:
      currencyPair - Currency pair of the order book
      Returns:
      Observable that emits OrderBook when exchange sends the update.
    • getOrderBook

      default io.reactivex.Observable<OrderBook> getOrderBook(Instrument instrument, Object... args)
    • getTicker

      default io.reactivex.Observable<Ticker> getTicker(CurrencyPair currencyPair, Object... args)
      Get a ticker representing the current exchange rate. Emits NotConnectedException When 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.

      Parameters:
      currencyPair - Currency pair of the ticker
      Returns:
      Observable that emits Ticker when exchange sends the update.
    • getTicker

      default io.reactivex.Observable<Ticker> getTicker(Instrument instrument, Object... args)
    • getTrades

      default io.reactivex.Observable<Trade> getTrades(CurrencyPair currencyPair, Object... args)
      Get the trades performed by the exchange. Emits NotConnectedException When not connected to the WebSocket API.

      Warning: There are currently no guarantees that messages will not be skipped.

      Parameters:
      currencyPair - Currency pair of the trades
      Returns:
      Observable that emits Trade when exchange sends the update.
    • getTrades

      default io.reactivex.Observable<Trade> getTrades(Instrument instrument, Object... args)
    • getFundingRate

      default io.reactivex.Observable<FundingRate> getFundingRate(Instrument instrument, Object... args)
      Get funding rate of specific instrument.
      Parameters:
      instrument - Instrument to get the funding rate for
      Returns:
      Observable that emits FundingRate when exchange sends the update.
    • getFundingRates

      default io.reactivex.Observable<FundingRates> getFundingRates()
      Get funding rates for all instruments of the platform.
      Returns:
      Observable that emits FundingRates when exchange sends the update.