public abstract class RippleAdapters extends Object
| Modifier and Type | Method and Description |
|---|---|
static AccountInfo |
adaptAccountInfo(RippleAccountBalances account,
String username)
Adapts a Ripple Account to an XChange Wallet object.
|
static OpenOrders |
adaptOpenOrders(RippleAccountOrders rippleOrders,
int scale)
Adapts a Ripple Account Orders object to an XChange OpenOrders object Counterparties set in
additional data since there is no other way of the application receiving this information.
|
static OrderBook |
adaptOrderBook(RippleOrderBook rippleOrderBook,
RippleMarketDataParams params,
CurrencyPair currencyPair)
Adapts a Ripple OrderBook to an XChange OrderBook object.
|
static UserTrade |
adaptTrade(IRippleTradeTransaction trade,
TradeHistoryParams params,
ITransferFeeSource transferFeeSource,
int scale) |
static UserTrades |
adaptTrades(Collection<IRippleTradeTransaction> tradesForAccount,
TradeHistoryParams params,
RippleAccountService accountService,
int roundingScale) |
static List<LimitOrder> |
createOrders(CurrencyPair currencyPair,
Order.OrderType orderType,
List<RippleOrder> orders,
String baseCounterparty,
String counterCounterparty) |
public static AccountInfo adaptAccountInfo(RippleAccountBalances account, String username)
public static OrderBook adaptOrderBook(RippleOrderBook rippleOrderBook, RippleMarketDataParams params, CurrencyPair currencyPair)
public static List<LimitOrder> createOrders(CurrencyPair currencyPair, Order.OrderType orderType, List<RippleOrder> orders, String baseCounterparty, String counterCounterparty)
public static OpenOrders adaptOpenOrders(RippleAccountOrders rippleOrders, int scale)
public static UserTrade adaptTrade(IRippleTradeTransaction trade, TradeHistoryParams params, ITransferFeeSource transferFeeSource, int scale) throws IOException
IOExceptionpublic static UserTrades adaptTrades(Collection<IRippleTradeTransaction> tradesForAccount, TradeHistoryParams params, RippleAccountService accountService, int roundingScale) throws IOException
IOExceptionCopyright © 2012–2019 Knowm Inc.. All rights reserved.