public class RippleMarketDataService extends RippleMarketDataServiceRaw implements PollingMarketDataService
rippleAuthenticated, ripplePublic
exchange
Constructor and Description |
---|
RippleMarketDataService(Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
OrderBook |
getOrderBook(CurrencyPair currencyPair,
Object... args)
If the base currency is not XRP then the returned orders' additional data map contains a value for
RippleExchange.DATA_BASE_COUNTERPARTY ,
similarly if the counter currency is not XRP then RippleExchange.DATA_COUNTER_COUNTERPARTY is populated. |
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
|
getRippleOrderBook
getExchangeSymbols, verifyOrder, verifyOrder, verifyOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExchangeSymbols
public RippleMarketDataService(Exchange exchange)
public OrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws IOException
RippleExchange.DATA_BASE_COUNTERPARTY
,
similarly if the counter currency is not XRP then RippleExchange.DATA_COUNTER_COUNTERPARTY
is populated.getOrderBook
in interface PollingMarketDataService
currencyPair
- the base/counter currency pairargs
- a RippleMarketDataParams object needs to be suppliedIOException
- - Indication that a networking error occurred while fetching JSON datapublic Ticker getTicker(CurrencyPair currencyPair, Object... args) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException
PollingMarketDataService
Get a ticker representing the current exchange rate
getTicker
in interface PollingMarketDataService
ExchangeException
- - Indication that the exchange reported some kind of error with the request or responseNotAvailableFromExchangeException
- - Indication that the exchange does not support the requested function or dataNotYetImplementedForExchangeException
- - Indication that the exchange supports the requested function or data, but it has not yet been
implementedIOException
- - Indication that a networking error occurred while fetching JSON datapublic Trades getTrades(CurrencyPair currencyPair, Object... args) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException
PollingMarketDataService
Get the trades recently performed by the exchange
getTrades
in interface PollingMarketDataService
args
- Optional arguments. Exchange-specificExchangeException
- - Indication that the exchange reported some kind of error with the request or responseNotAvailableFromExchangeException
- - Indication that the exchange does not support the requested function or dataNotYetImplementedForExchangeException
- - Indication that the exchange supports the requested function or data, but it has not yet been
implementedIOException
- - Indication that a networking error occurred while fetching JSON dataCopyright © 2012–2016 Xeiam, LLC. All rights reserved.