public class RippleTradeService extends RippleTradeServiceRaw implements TradeService
rippleAuthenticated, ripplePublicexchange| Constructor and Description |
|---|
RippleTradeService(RippleExchange exchange) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelOrder(CancelOrderParams orderParams) |
boolean |
cancelOrder(String orderId) |
OpenOrdersParams |
createOpenOrdersParams() |
RippleTradeHistoryParams |
createTradeHistoryParams() |
OpenOrders |
getOpenOrders()
The additional data map of an order will be populated with
RippleExchange.DATA_BASE_COUNTERPARTY if the base currency is not XRP, similarly if the
counter currency is not XRP then RippleExchange.DATA_COUNTER_COUNTERPARTY will be
populated. |
OpenOrders |
getOpenOrders(OpenOrdersParams params) |
UserTrades |
getTradeHistory(TradeHistoryParams params)
Ripple trade history is a request intensive process.
|
String |
placeLimitOrder(LimitOrder order) |
cancelOrder, clearOrderDetailsStore, getExpectedBaseTransferFee, getExpectedCounterTransferFee, getExpectedTransferFee, getNotifications, getOpenAccountOrders, getTrade, getTradesForAccount, getTransactionFee, placeOrdergetClientConfig, verifyOrder, verifyOrder, verifyOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeOrder, getOrder, getOrder, placeMarketOrder, placeStopOrder, toOrderQueryParams, verifyOrder, verifyOrderpublic RippleTradeService(RippleExchange exchange)
public OpenOrders getOpenOrders() throws IOException
RippleExchange.DATA_BASE_COUNTERPARTY if the base currency is not XRP, similarly if the
counter currency is not XRP then RippleExchange.DATA_COUNTER_COUNTERPARTY will be
populated.getOpenOrders in interface TradeServiceIOExceptionpublic OpenOrders getOpenOrders(OpenOrdersParams params) throws IOException
getOpenOrders in interface TradeServiceIOExceptionpublic String placeLimitOrder(LimitOrder order) throws IOException
placeLimitOrder in interface TradeServiceorder - this should be a RippleLimitOrder object with the base and counter counterparties
populated for any currency other than XRP.IOExceptionpublic boolean cancelOrder(String orderId) throws IOException
cancelOrder in interface TradeServiceIOExceptionpublic boolean cancelOrder(CancelOrderParams orderParams) throws IOException
cancelOrder in interface TradeServiceIOExceptionpublic UserTrades getTradeHistory(TradeHistoryParams params) throws IOException
RippleTradeHistoryCount.DEFAULT_TRADE_COUNT_LIMIT.
RippleTradeHistoryCount.DEFAULT_API_CALL_COUNT.
TradeHistoryParamsTimeSpan.setStartTime(java.util.Date) to limit the number of trades
searched for to those done since the given start time. TradeHistoryParamsTimeSpan
getTradeHistory in interface TradeServiceparams - Can optionally implement ,
, ,
, TradeHistoryParamPaging,
, TradeHistoryParamsTimeSpan. All other
TradeHistoryParams types will be ignored.IOExceptionpublic RippleTradeHistoryParams createTradeHistoryParams()
createTradeHistoryParams in interface TradeServicepublic OpenOrdersParams createOpenOrdersParams()
createOpenOrdersParams in interface TradeServiceCopyright © 2012–2019 Knowm Inc.. All rights reserved.