public final class BitcurexAdapters extends Object
Modifier and Type | Method and Description |
---|---|
static AccountInfo |
adaptAccountInfo(BitcurexFunds funds,
String userName)
Adapts a BitcurexFunds to an AccountInfo Object
|
static LimitOrder |
adaptOrder(BigDecimal amount,
BigDecimal price,
CurrencyPair currencyPair,
Order.OrderType orderType,
String id)
Adapts a BitcurexOrder to a LimitOrder
|
static List<LimitOrder> |
adaptOrders(List<BigDecimal[]> bitcurexOrders,
CurrencyPair currencyPair,
Order.OrderType orderType,
String id)
Adapts a List of bitcurexOrders to a List of LimitOrders
|
static Ticker |
adaptTicker(BitcurexTicker bitcurexTicker,
CurrencyPair currencyPair)
Adapts a BitcurexTicker to a Ticker Object
|
static Trade |
adaptTrade(BitcurexTrade bitcurexTrade,
CurrencyPair currencyPair)
Adapts a BitcurexTrade to a Trade Object
|
static Trades |
adaptTrades(BitcurexTrade[] bitcurexTrades,
CurrencyPair currencyPair)
Adapts a BitcurexTrade[] to a Trades Object
|
public static List<LimitOrder> adaptOrders(List<BigDecimal[]> bitcurexOrders, CurrencyPair currencyPair, Order.OrderType orderType, String id)
bitcurexOrders
- currency
- orderType
- id
- public static LimitOrder adaptOrder(BigDecimal amount, BigDecimal price, CurrencyPair currencyPair, Order.OrderType orderType, String id)
amount
- price
- currency
- orderTypeString
- id
- public static Trade adaptTrade(BitcurexTrade bitcurexTrade, CurrencyPair currencyPair)
bitcurexTrade
- A Bitcurex tradepublic static Trades adaptTrades(BitcurexTrade[] bitcurexTrades, CurrencyPair currencyPair)
bitcurexTrades
- The Bitcurex trade datapublic static Ticker adaptTicker(BitcurexTicker bitcurexTicker, CurrencyPair currencyPair)
bitcurexTicker
- public static AccountInfo adaptAccountInfo(BitcurexFunds funds, String userName)
bitcurexFunds
- user
- name for the accountInfoCopyright © 2012–2017 Xeiam, LLC. All rights reserved.