public class ANXMarketDataService extends ANXMarketDataServiceRaw implements PollingMarketDataService
Implementation of the market data service for ANX V2
exchange
Constructor and Description |
---|
ANXMarketDataService(Exchange exchange)
Constructor
|
Modifier and Type | Method and Description |
---|---|
OrderBook |
getOrderBook(CurrencyPair currencyPair,
Object... args)
Get market depth from exchange
|
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
|
getANXFullOrderBook, getANXFullOrderBooks, getANXPartialOrderBook, getANXTicker, getANXTickers, getANXTrades
handleError, handleHttpError
getExchangeSymbols, verifyOrder, verifyOrder, verifyOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExchangeSymbols
public ANXMarketDataService(Exchange exchange)
exchange
- public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException
PollingMarketDataService
Get a ticker representing the current exchange rate
getTicker
in interface PollingMarketDataService
IOException
- - Indication that a networking error occurred while fetching JSON datapublic OrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws IOException
getOrderBook
in interface PollingMarketDataService
args
- Optional arguments. Exchange-specific. This implementation assumes: absent or "full" -> get full OrderBook "partial" -> get partial
OrderBookIOException
public Trades getTrades(CurrencyPair currencyPair, Object... args) throws IOException
PollingMarketDataService
Get the trades recently performed by the exchange
getTrades
in interface PollingMarketDataService
args
- Optional arguments. Exchange-specificIOException
- - Indication that a networking error occurred while fetching JSON dataCopyright © 2012–2017 Xeiam, LLC. All rights reserved.