public class BitfinexMarketDataService extends BitfinexMarketDataServiceRaw implements PollingMarketDataService
Implementation of the market data service for Bitfinex
apiKey, bitfinex, payloadCreator, signatureCreatorexchange| Constructor and Description |
|---|
BitfinexMarketDataService(Exchange exchange)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
LoanOrderBook |
getLendOrderBook(String currency,
Object... args) |
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
|
getBitfinexLendBook, getBitfinexLends, getBitfinexOrderBook, getBitfinexSymbols, getBitfinexTicker, getBitfinexTradesgetExchangeSymbolsverifyOrder, verifyOrder, verifyOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExchangeSymbolspublic BitfinexMarketDataService(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
PollingMarketDataServiceGet an order book representing the current offered exchange rates (market depth)
getOrderBook in interface PollingMarketDataServiceargs - If two integers are provided, then those count as limit bid and limit ask countIOException - - Indication that a networking error occurred while fetching JSON datapublic LoanOrderBook getLendOrderBook(String currency, Object... args) throws IOException
IOExceptionpublic Trades getTrades(CurrencyPair currencyPair, Object... args) throws IOException
PollingMarketDataServiceGet the trades recently performed by the exchange
getTrades in interface PollingMarketDataServicecurrencyPair - 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–2017 Xeiam, LLC. All rights reserved.