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, ripplePublicFields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOrderBook(CurrencyPair currencyPair, Object... args) If the base currency is not XRP then the returned orders' additional data map contains a value for, similarly if the counter currency is not XRP theninvalid @link
RippleExchange.DATA_BASE_COUNTERPARTYis populated.invalid @link
RippleExchange.DATA_COUNTER_COUNTERPARTYMethods inherited from class org.knowm.xchange.ripple.service.RippleMarketDataServiceRaw
getRippleOrderBookMethods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 for, similarly if the counter currency is not XRP theninvalid @link
RippleExchange.DATA_BASE_COUNTERPARTYis populated.invalid @link
RippleExchange.DATA_COUNTER_COUNTERPARTY- Specified by:
getOrderBookin 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
-