public class BTCEMarketDataService extends BTCEMarketDataServiceRaw implements PollingMarketDataService
FULL_SIZE
apiKey, btce, signatureCreator
exchange
Constructor and Description |
---|
BTCEMarketDataService(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 recent trades from exchange
|
getBTCEDepth, getBTCEInfo, getBTCETicker, getBTCETrades
checkResult
getExchangeSymbols, verifyOrder, verifyOrder, verifyOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExchangeSymbols
public BTCEMarketDataService(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
tradableIdentifier
- The identifier to use (e.g. BTC or GOOG). First currency of the paircurrency
- The currency of interest, null if irrelevant. Second currency of the pairargs
- Optional arguments. Exchange-specific. This implementation assumes: Integer value from 1 to 2000 -> get corresponding number of itemsIOException
public Trades getTrades(CurrencyPair currencyPair, Object... args) throws IOException
getTrades
in interface PollingMarketDataService
tradableIdentifier
- The identifier to use (e.g. BTC or GOOG)currency
- The currency of interestargs
- Optional arguments. This implementation assumes args[0] is integer value limiting number of trade items to get. -1 or missing -> use
default 2000 max fetch value int from 1 to 2000 -> use API v.3 to get corresponding number of tradesIOException
Copyright © 2012–2016 Xeiam, LLC. All rights reserved.