public final class CryptonitAdapters extends Object
Modifier and Type | Method and Description |
---|---|
static Collection<CurrencyPair> |
adaptCurrencyPairs(List<List<String>> tradingPairs) |
static LimitOrder |
adaptOrder(BigDecimal amount,
BigDecimal price,
CurrencyPair currencyPair,
String orderTypeString,
Date date,
String id)
Adapts a CryptonitOrder to a LimitOrder
|
static List<LimitOrder> |
adaptOrders(CryptonitOrders cryptonitOrders,
CurrencyPair currencyPair,
String orderType,
String id)
Adapts CryptonitOrders to a List of LimitOrders
|
static Ticker |
adaptTicker(CryptonitTicker cryptonitTicker,
CurrencyPair currencyPair)
Adapts a cryptonitTicker to a Ticker Object
|
static Trade |
adaptTrade(String tradeId,
CryptonitOrder cryptonitTrade,
CurrencyPair currencyPair)
Adapts a CryptonitTrade to a Trade Object
|
static Trades |
adaptTrades(CryptonitOrders cryptonitTrades,
CurrencyPair currencyPair)
Adapts a CryptonitTrade[] to a Trades Object
|
public static LimitOrder adaptOrder(BigDecimal amount, BigDecimal price, CurrencyPair currencyPair, String orderTypeString, Date date, String id)
amount
- price
- currency
- orderTypeString
- id
- public static List<LimitOrder> adaptOrders(CryptonitOrders cryptonitOrders, CurrencyPair currencyPair, String orderType, String id)
cryptonitOrders
- currency
- orderType
- id
- public static Trade adaptTrade(String tradeId, CryptonitOrder cryptonitTrade, CurrencyPair currencyPair)
cryptonitTrade
- A Cryptonit tradepublic static Trades adaptTrades(CryptonitOrders cryptonitTrades, CurrencyPair currencyPair)
cryptonitTrades
- The Cryptonit trade datapublic static Ticker adaptTicker(CryptonitTicker cryptonitTicker, CurrencyPair currencyPair)
cryptonitTicker
- public static Collection<CurrencyPair> adaptCurrencyPairs(List<List<String>> tradingPairs)
Copyright © 2012–2018 Xeiam, LLC. All rights reserved.