public interface PollingMarketDataService extends BasePollingService
Interface to provide the following to Exchange:
The implementation of this service is expected to be based on a client polling mechanism of some kind
| Modifier and Type | Method and Description |
|---|---|
OrderBook |
getOrderBook(CurrencyPair currencyPair,
Object... args)
Get an order book representing the current offered exchange rates (market depth)
|
Ticker |
getTicker(CurrencyPair currencyPair,
Object... args)
Get a ticker representing the current exchange rate
|
Trades |
getTrades(CurrencyPair currencyPair,
Object... args)
Get the trades recently performed by the exchange
|
getExchangeSymbolsTicker getTicker(CurrencyPair currencyPair, Object... args) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException
Get a ticker representing the current exchange rate
CurrencyPair - currencyPair (e.g. BTC/USD)ExchangeException - - Indication that the exchange reported some kind of error with the request or responseNotAvailableFromExchangeException - - Indication that the exchange does not support the requested function or dataNotYetImplementedForExchangeException - - Indication that the exchange supports the requested function or data, but it has not yet been
implementedIOException - - Indication that a networking error occurred while fetching JSON dataOrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException
Get an order book representing the current offered exchange rates (market depth)
CurrencyPair - currencyPair (e.g. BTC/USD)args - Optional arguments. Exchange-specificExchangeException - - Indication that the exchange reported some kind of error with the request or responseNotAvailableFromExchangeException - - Indication that the exchange does not support the requested function or dataNotYetImplementedForExchangeException - - Indication that the exchange supports the requested function or data, but it has not yet been
implementedIOException - - Indication that a networking error occurred while fetching JSON dataTrades getTrades(CurrencyPair currencyPair, Object... args) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException
Get the trades recently performed by the exchange
CurrencyPair - currencyPair (e.g. BTC/USD)args - Optional arguments. Exchange-specificExchangeException - - Indication that the exchange reported some kind of error with the request or responseNotAvailableFromExchangeException - - Indication that the exchange does not support the requested function or dataNotYetImplementedForExchangeException - - Indication that the exchange supports the requested function or data, but it has not yet been
implementedIOException - - Indication that a networking error occurred while fetching JSON dataCopyright © 2012–2017 Xeiam, LLC. All rights reserved.