public class CexIOAdapters extends Object
Constructor and Description |
---|
CexIOAdapters() |
Modifier and Type | Method and Description |
---|---|
static AccountInfo |
adaptAccountInfo(CexIOBalanceInfo balance,
String userName)
Adapts CexIOBalanceInfo to AccountInfo
|
static OpenOrders |
adaptOpenOrders(List<CexIOOrder> cexIOOrderList) |
static OrderBook |
adaptOrderBook(CexIODepth depth,
CurrencyPair currencyPair)
Adapts Cex.IO Depth to OrderBook Object
|
static Ticker |
adaptTicker(CexIOTicker ticker,
CurrencyPair currencyPair)
Adapts a CexIOTicker to a Ticker Object
|
static Trade |
adaptTrade(CexIOTrade trade,
CurrencyPair currencyPair)
Adapts a CexIOTrade to a Trade Object
|
static Trades |
adaptTrades(CexIOTrade[] cexioTrades,
CurrencyPair currencyPair)
Adapts a CexIOTrade[] to a Trades Object
|
static Wallet |
adaptWallet(String currency,
CexIOBalance balance) |
static void |
checkArgument(boolean argument,
String msgPattern,
Object... msgArgs) |
static LimitOrder |
createOrder(CurrencyPair currencyPair,
List<BigDecimal> priceAndAmount,
Order.OrderType orderType) |
static List<LimitOrder> |
createOrders(CurrencyPair currencyPair,
Order.OrderType orderType,
List<List<BigDecimal>> orders) |
public static Trade adaptTrade(CexIOTrade trade, CurrencyPair currencyPair)
trade
- CexIO trade objecttradableIdentifier
- First currency in the paircurrency
- Second currency in the pairpublic static Trades adaptTrades(CexIOTrade[] cexioTrades, CurrencyPair currencyPair)
cexioTrades
- The CexIO trade data returned by APItradableIdentifier
- First currency of the paircurrency
- Second currency of the pairpublic static Ticker adaptTicker(CexIOTicker ticker, CurrencyPair currencyPair)
ticker
- The exchange specific tickertradableIdentifier
- The tradeable identifier (e.g. BTC in BTC/USD)currency
- The currency (e.g. USD in BTC/USD)public static OrderBook adaptOrderBook(CexIODepth depth, CurrencyPair currencyPair)
depth
- Cex.IO order booktradableIdentifier
- The tradable identifier (e.g. BTC in BTC/USD)currency
- The currency (e.g. USD in BTC/USD)public static AccountInfo adaptAccountInfo(CexIOBalanceInfo balance, String userName)
balance
- CexIOBalanceInfo balanceuserName
- The user namepublic static Wallet adaptWallet(String currency, CexIOBalance balance)
public static List<LimitOrder> createOrders(CurrencyPair currencyPair, Order.OrderType orderType, List<List<BigDecimal>> orders)
public static LimitOrder createOrder(CurrencyPair currencyPair, List<BigDecimal> priceAndAmount, Order.OrderType orderType)
public static void checkArgument(boolean argument, String msgPattern, Object... msgArgs)
public static OpenOrders adaptOpenOrders(List<CexIOOrder> cexIOOrderList)
Copyright © 2012–2017 Xeiam, LLC. All rights reserved.