Package org.knowm.xchange.ripple.service
Class RippleTradeServiceRaw
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.ripple.service.RippleBaseService
org.knowm.xchange.ripple.service.RippleTradeServiceRaw
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
RippleTradeService
-
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cancelOrder
(String orderId, boolean validate) void
Clear any stored order details to allow memory to be released.static BigDecimal
getExpectedTransferFee
(ITransferFeeSource transferFeeSource, String counterparty, String currency, BigDecimal quantity, Order.OrderType type) The expected counterparty transfer fee for an order that results in a transfer of the supplied amount of currency.getNotifications
(String account, Boolean excludeFailed, Boolean earliestFirst, Integer resultsPerPage, Integer page, Long startLedger, Long endLedger) getTrade
(String account, RippleNotifications.RippleNotification notification) Retrieve order details from local store if they have been previously stored otherwise query external server.getTradesForAccount
(TradeHistoryParams params, String account) The Ripple network transaction fee varies depending on how busy the network is as described here.placeOrder
(RippleLimitOrder order, boolean validate) Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Constructor Details
-
RippleTradeServiceRaw
-
-
Method Details
-
getExpectedTransferFee
public static BigDecimal getExpectedTransferFee(ITransferFeeSource transferFeeSource, String counterparty, String currency, BigDecimal quantity, Order.OrderType type) throws IOException The expected counterparty transfer fee for an order that results in a transfer of the supplied amount of currency. The fee rate is payable when sending the currency (not receiving it) and it set by the issuing counterparty. The rate may be zero. Transfer fees are not applicable to sending XRP. More details can be found here.- Returns:
- transfer fee of the supplied currency
- Throws:
IOException
-
placeOrder
public String placeOrder(RippleLimitOrder order, boolean validate) throws RippleException, IOException - Throws:
RippleException
IOException
-
cancelOrder
- Throws:
RippleException
IOException
-
getOpenAccountOrders
- Throws:
RippleException
IOException
-
getNotifications
public RippleNotifications getNotifications(String account, Boolean excludeFailed, Boolean earliestFirst, Integer resultsPerPage, Integer page, Long startLedger, Long endLedger) throws RippleException, IOException - Throws:
RippleException
IOException
-
getTrade
public IRippleTradeTransaction getTrade(String account, RippleNotifications.RippleNotification notification) throws RippleException, IOException Retrieve order details from local store if they have been previously stored otherwise query external server.- Throws:
RippleException
IOException
-
getTradesForAccount
public List<IRippleTradeTransaction> getTradesForAccount(TradeHistoryParams params, String account) throws RippleException, IOException - Throws:
RippleException
IOException
-
getTransactionFee
The Ripple network transaction fee varies depending on how busy the network is as described here.- Returns:
- current network transaction fee in units of XRP
-
getExpectedBaseTransferFee
- Returns:
- transfer fee for the base leg of the order in the base currency
- Throws:
IOException
-
getExpectedCounterTransferFee
- Returns:
- transfer fee for the counter leg of the order in the counter currency
- Throws:
IOException
-
clearOrderDetailsStore
public void clearOrderDetailsStore()Clear any stored order details to allow memory to be released.
-