public class BittrexMarketDataService extends BittrexMarketDataServiceRaw implements PollingMarketDataService
Implementation of the market data service for Bittrex
apiKey, bittrexAuthenticated, signatureCreator
exchange
Constructor and Description |
---|
BittrexMarketDataService(Exchange exchange)
Constructor
|
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
|
getBittrexCurrencies, getBittrexOrderBook, getBittrexSymbols, getBittrexTicker, getBittrexTickers, getBittrexTrades
getExchangeSymbols
verifyOrder, verifyOrder, verifyOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExchangeSymbols
public BittrexMarketDataService(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
PollingMarketDataService
Get an order book representing the current offered exchange rates (market depth)
getOrderBook
in interface PollingMarketDataService
args
- If an integer is provided, then it used as depth of order bookIOException
- - Indication that a networking error occurred while fetching JSON datapublic Trades getTrades(CurrencyPair currencyPair, Object... args) throws IOException
PollingMarketDataService
Get the trades recently performed by the exchange
getTrades
in interface PollingMarketDataService
currencyPair
- The CurrencyPair for which to query trades.args
- One argument may be supplied which is the timestamp after which trades should be collected. Trades before this time are not reported.
The argument may be of type java.util.Date or Number (milliseconds since Jan 1, 1970)IOException
- - Indication that a networking error occurred while fetching JSON dataCopyright © 2012–2018 Xeiam, LLC. All rights reserved.