public class RippleTradeServiceRaw extends RippleBasePollingService
rippleAuthenticated, ripplePublic
exchange
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() |
RippleOrderDetails |
getOrderDetails(String account,
String hash)
Retrieve order details from local store if they have been previously stored otherwise query external server.
|
List<RippleOrderDetails> |
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) |
getExchangeSymbols, verifyOrder, verifyOrder, verifyOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExchangeSymbols
public RippleTradeServiceRaw(Exchange exchange)
public String placeOrder(RippleLimitOrder order, boolean validate) throws RippleException, IOException
RippleException
IOException
public boolean cancelOrder(String orderId, boolean validate) throws RippleException, IOException
RippleException
IOException
public RippleAccountOrders getOpenAccountOrders() throws RippleException, IOException
RippleException
IOException
public RippleNotifications getNotifications(String account, Boolean excludeFailed, Boolean earliestFirst, Integer resultsPerPage, Integer page, Long startLedger, Long endLedger) throws RippleException, IOException
RippleException
IOException
public RippleOrderDetails getOrderDetails(String account, String hash) throws RippleException, IOException
RippleException
IOException
public List<RippleOrderDetails> getTradesForAccount(TradeHistoryParams params, String account) throws RippleException, IOException
RippleException
IOException
public BigDecimal getTransactionFee()
public BigDecimal getExpectedBaseTransferFee(RippleLimitOrder order) throws IOException
IOException
public BigDecimal getExpectedCounterTransferFee(RippleLimitOrder order) throws IOException
IOException
public static BigDecimal getExpectedTransferFee(ITransferFeeSource transferFeeSource, String counterparty, String currency, BigDecimal quantity, Order.OrderType type) throws IOException
IOException
public void clearOrderDetailsStore()
Copyright © 2012–2017 Xeiam, LLC. All rights reserved.