Class KrakenFuturesMarketDataService

All Implemented Interfaces:
BaseService, MarketDataService

public class KrakenFuturesMarketDataService extends KrakenFuturesMarketDataServiceRaw implements MarketDataService
Author:
Jean-Christophe Laruelle
  • Constructor Details

    • KrakenFuturesMarketDataService

      public KrakenFuturesMarketDataService(Exchange exchange)
      Constructor
      Parameters:
      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
    • getOrderBook

      public OrderBook getOrderBook(Instrument instrument, Object... args) throws IOException
      Description copied from interface: MarketDataService
      Get an order book representing the current offered exchange rates (market depth)
      Specified by:
      getOrderBook in interface MarketDataService
      Parameters:
      args - Optional arguments. Exchange-specific
      Returns:
      The OrderBook, null if some sort of error occurred. Implementers should log the error.
      Throws:
      IOException - - Indication that a networking error occurred while fetching JSON data
    • getTrades

      public Trades getTrades(Instrument instrument, Object... args) throws IOException
      Description copied from interface: MarketDataService
      Get the trades recently performed by the exchange
      Specified by:
      getTrades in interface MarketDataService
      Parameters:
      args - Optional arguments. Exchange-specific
      Returns:
      The Trades, null if some sort of error occurred. Implementers should log the error.
      Throws:
      IOException - - Indication that a networking error occurred while fetching JSON data
    • getFundingRates

      public FundingRates getFundingRates() throws IOException
      Description copied from interface: MarketDataService
      Get the FundingRates for all perpetual contracts of the platform.
      Specified by:
      getFundingRates in interface MarketDataService
      Returns:
      The FundingRates, null if some sort of error occurred. Implementers should log the error.
      Throws:
      IOException - - Indication that a networking error occurred while fetching JSON data
    • getFundingRate

      public FundingRate getFundingRate(Instrument instrument) throws IOException
      Description copied from interface: MarketDataService
      Get the FundingRate for specific instrument.
      Specified by:
      getFundingRate in interface MarketDataService
      Parameters:
      instrument - Instrument to get the funding rate.
      Returns:
      The FundingRate, null if some sort of error occurred. Implementers should log the error.
      Throws:
      IOException - - Indication that a networking error occurred while fetching JSON data