Class BybitMarketDataService

All Implemented Interfaces:
BaseService, MarketDataService

public class BybitMarketDataService extends BybitMarketDataServiceRaw implements MarketDataService
  • Constructor Details

    • BybitMarketDataService

      public BybitMarketDataService(BybitExchange exchange)
  • Method Details

    • getTicker

      public Ticker getTicker(Instrument instrument, Object... args) throws IOException
      Description copied from interface: MarketDataService
      Get a ticker representing the current exchange rate
      Specified by:
      getTicker in interface MarketDataService
      Returns:
      The Ticker, null if some sort of error occurred. Implementers should log the error.
      Throws:
      IOException - - Indication that a networking error occurred while fetching JSON data
    • getTicker

      public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException
      Description copied from interface: MarketDataService
      Get a ticker representing the current exchange rate
      Specified by:
      getTicker in interface MarketDataService
      Returns:
      The Ticker, null if some sort of error occurred. Implementers should log the error.
      Throws:
      IOException - - Indication that a networking error occurred while fetching JSON data