public class BTCEMarketDataService extends BTCEMarketDataServiceRaw implements PollingMarketDataService
FULL_SIZEapiKey, btce, signatureCreatorexchange| 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, getBTCETradescheckResultgetExchangeSymbols, verifyOrder, verifyOrder, verifyOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExchangeSymbolspublic BTCEMarketDataService(Exchange exchange)
exchange - public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException
PollingMarketDataServiceGet a ticker representing the current exchange rate
getTicker in interface PollingMarketDataServiceIOException - - Indication that a networking error occurred while fetching JSON datapublic OrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws IOException
getOrderBook in interface PollingMarketDataServicetradableIdentifier - 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 itemsIOExceptionpublic Trades getTrades(CurrencyPair currencyPair, Object... args) throws IOException
getTrades in interface PollingMarketDataServicetradableIdentifier - 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 tradesIOExceptionCopyright © 2012–2017 Xeiam, LLC. All rights reserved.