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 AccountInfo object.
|
static OpenOrders |
adaptOpenOrders(RippleAccountOrders rippleOrders,
int scale)
Adapts a Ripple Account Orders object to an XChange OpenOrders object
|
static OrderBook |
adaptOrderBook(RippleOrderBook rippleOrderBook,
RippleMarketDataParams params,
CurrencyPair currencyPair)
Adapts a Ripple OrderBook to an XChange OrderBook object.
|
static UserTrade |
adaptTrade(RippleOrderDetails info,
TradeHistoryParams params,
ITransferFeeSource transferFeeSource,
int scale) |
static UserTrades |
adaptTrades(Collection<RippleOrderDetails> 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)
Counterparties are added to symbol since there is no other way of the application receiving this information.
public static OrderBook adaptOrderBook(RippleOrderBook rippleOrderBook, RippleMarketDataParams params, CurrencyPair currencyPair)
Counterparties are not mapped since the application calling this should know and keep track of the counterparties it is using in the polling thread.
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)
Counterparties set in additional data since there is no other way of the application receiving this information.
public static UserTrade adaptTrade(RippleOrderDetails info, TradeHistoryParams params, ITransferFeeSource transferFeeSource, int scale) throws IOException
IOException
public static UserTrades adaptTrades(Collection<RippleOrderDetails> tradesForAccount, TradeHistoryParams params, RippleAccountService accountService, int roundingScale) throws IOException
IOException
Copyright © 2012–2018 Xeiam, LLC. All rights reserved.