Package org.knowm.xchange.ripple.service
Class RippleMarketDataService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.ripple.service.RippleBaseService
org.knowm.xchange.ripple.service.RippleMarketDataServiceRaw
org.knowm.xchange.ripple.service.RippleMarketDataService
- All Implemented Interfaces:
BaseService
,MarketDataService
public class RippleMarketDataService extends RippleMarketDataServiceRaw implements MarketDataService
-
Field Summary
Fields inherited from class org.knowm.xchange.ripple.service.RippleBaseService
rippleAuthenticated, ripplePublic
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Constructor Description RippleMarketDataService(Exchange exchange)
-
Method Summary
Modifier and Type Method Description OrderBook
getOrderBook(CurrencyPair currencyPair, Object... args)
If the base currency is not XRP then the returned orders' additional data map contains a value forRippleExchange.DATA_BASE_COUNTERPARTY
, similarly if the counter currency is not XRP thenRippleExchange.DATA_COUNTER_COUNTERPARTY
is populated.Methods inherited from class org.knowm.xchange.ripple.service.RippleMarketDataServiceRaw
getRippleOrderBook
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.knowm.xchange.service.marketdata.MarketDataService
getCandleStickData, getFundingRate, getFundingRates, getOrderBook, getOrderBook, getTicker, getTicker, getTickers, getTrades, getTrades, getTrades
-
Constructor Details
-
RippleMarketDataService
-
-
Method Details
-
getOrderBook
If the base currency is not XRP then the returned orders' additional data map contains a value forRippleExchange.DATA_BASE_COUNTERPARTY
, similarly if the counter currency is not XRP thenRippleExchange.DATA_COUNTER_COUNTERPARTY
is populated.- Specified by:
getOrderBook
in interfaceMarketDataService
- Parameters:
currencyPair
- the base/counter currency pairargs
- a RippleMarketDataParams object needs to be supplied- Returns:
- The OrderBook, null if some sort of error occurred. Implementers should log the error.
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-