Interface MarketDataService

    • Method Detail

      • getTicker

        default Ticker getTicker​(CurrencyPair currencyPair,
                                 Object... args)
                          throws IOException
        Get a ticker representing the current exchange rate
        Returns:
        The Ticker, null if some sort of error occurred. Implementers should log the error.
        Throws:
        ExchangeException - - Indication that the exchange reported some kind of error with the request or response
        NotAvailableFromExchangeException - - Indication that the exchange does not support the requested function or data
        NotYetImplementedForExchangeException - - Indication that the exchange supports the requested function or data, but it has not yet been implemented
        IOException - - Indication that a networking error occurred while fetching JSON data
      • getTickers

        default List<Ticker> getTickers​(Params params)
                                 throws IOException
        Get the tickers representing the current exchange rate for the provided parameters
        Returns:
        The Tickers, null if some sort of error occurred. Implementers should log the error.
        Throws:
        ExchangeException - - Indication that the exchange reported some kind of error with the request or response
        NotAvailableFromExchangeException - - Indication that the exchange does not support the requested function or data
        NotYetImplementedForExchangeException - - Indication that the exchange supports the requested function or data, but it has not yet been implemented
        IOException - - Indication that a networking error occurred while fetching JSON data
      • getOrderBook

        default OrderBook getOrderBook​(CurrencyPair currencyPair,
                                       Object... args)
                                throws IOException
        Get an order book representing the current offered exchange rates (market depth)
        Parameters:
        args - Optional arguments. Exchange-specific
        Returns:
        The OrderBook, null if some sort of error occurred. Implementers should log the error.
        Throws:
        ExchangeException - - Indication that the exchange reported some kind of error with the request or response
        NotAvailableFromExchangeException - - Indication that the exchange does not support the requested function or data
        NotYetImplementedForExchangeException - - Indication that the exchange supports the requested function or data, but it has not yet been implemented
        IOException - - Indication that a networking error occurred while fetching JSON data
      • getOrderBook

        default OrderBook getOrderBook​(Params params)
                                throws IOException
        Get an order book representing the current offered exchange rates (market depth)
        Parameters:
        params - Exchange-specific
        Returns:
        The OrderBook, null if some sort of error occurred. Implementers should log the error.
        Throws:
        ExchangeException - - Indication that the exchange reported some kind of error with the request or response
        NotAvailableFromExchangeException - - Indication that the exchange does not support the requested function or data
        NotYetImplementedForExchangeException - - Indication that the exchange supports the requested function or data, but it has not yet been implemented
        IOException - - Indication that a networking error occurred while fetching JSON data
      • getTrades

        default Trades getTrades​(CurrencyPair currencyPair,
                                 Object... args)
                          throws IOException
        Get the trades recently performed by the exchange
        Parameters:
        args - Optional arguments. Exchange-specific
        Returns:
        The Trades, null if some sort of error occurred. Implementers should log the error.
        Throws:
        ExchangeException - - Indication that the exchange reported some kind of error with the request or response
        NotAvailableFromExchangeException - - Indication that the exchange does not support the requested function or data
        NotYetImplementedForExchangeException - - Indication that the exchange supports the requested function or data, but it has not yet been implemented
        IOException - - Indication that a networking error occurred while fetching JSON data
      • getTrades

        default Trades getTrades​(Params params)
                          throws IOException
        Get the trades recently performed by the exchange
        Parameters:
        params - Exchange-specific
        Returns:
        The Trades, null if some sort of error occurred. Implementers should log the error.
        Throws:
        ExchangeException - - Indication that the exchange reported some kind of error with the request or response
        NotAvailableFromExchangeException - - Indication that the exchange does not support the requested function or data
        NotYetImplementedForExchangeException - - Indication that the exchange supports the requested function or data, but it has not yet been implemented
        IOException - - Indication that a networking error occurred while fetching JSON data