public class RippleTradeServiceRaw extends RippleBaseService
rippleAuthenticated, ripplePublicexchange| Constructor and Description |
|---|
RippleTradeServiceRaw(Exchange exchange) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelOrder(String orderId,
boolean validate) |
void |
clearOrderDetailsStore()
Clear any stored order details to allow memory to be released.
|
BigDecimal |
getExpectedBaseTransferFee(RippleLimitOrder order) |
BigDecimal |
getExpectedCounterTransferFee(RippleLimitOrder order) |
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.
|
RippleNotifications |
getNotifications(String account,
Boolean excludeFailed,
Boolean earliestFirst,
Integer resultsPerPage,
Integer page,
Long startLedger,
Long endLedger) |
RippleAccountOrders |
getOpenAccountOrders() |
IRippleTradeTransaction |
getTrade(String account,
RippleNotifications.RippleNotification notification)
Retrieve order details from local store if they have been previously stored otherwise query
external server.
|
List<IRippleTradeTransaction> |
getTradesForAccount(TradeHistoryParams params,
String account) |
BigDecimal |
getTransactionFee()
The Ripple network transaction fee varies depending on how busy the network is as described here.
|
String |
placeOrder(RippleLimitOrder order,
boolean validate) |
getClientConfig, verifyOrder, verifyOrder, verifyOrderpublic RippleTradeServiceRaw(Exchange exchange)
public static BigDecimal getExpectedTransferFee(ITransferFeeSource transferFeeSource, String counterparty, String currency, BigDecimal quantity, Order.OrderType type) throws IOException
IOExceptionpublic String placeOrder(RippleLimitOrder order, boolean validate) throws RippleException, IOException
RippleExceptionIOExceptionpublic boolean cancelOrder(String orderId, boolean validate) throws RippleException, IOException
RippleExceptionIOExceptionpublic RippleAccountOrders getOpenAccountOrders() throws RippleException, IOException
RippleExceptionIOExceptionpublic RippleNotifications getNotifications(String account, Boolean excludeFailed, Boolean earliestFirst, Integer resultsPerPage, Integer page, Long startLedger, Long endLedger) throws RippleException, IOException
RippleExceptionIOExceptionpublic IRippleTradeTransaction getTrade(String account, RippleNotifications.RippleNotification notification) throws RippleException, IOException
RippleExceptionIOExceptionpublic List<IRippleTradeTransaction> getTradesForAccount(TradeHistoryParams params, String account) throws RippleException, IOException
RippleExceptionIOExceptionpublic BigDecimal getTransactionFee()
public BigDecimal getExpectedBaseTransferFee(RippleLimitOrder order) throws IOException
IOExceptionpublic BigDecimal getExpectedCounterTransferFee(RippleLimitOrder order) throws IOException
IOExceptionpublic void clearOrderDetailsStore()
Copyright © 2012–2019 Knowm Inc.. All rights reserved.