Package org.knowm.xchange.itbit
Class ItBitAdapters
java.lang.Object
org.knowm.xchange.itbit.ItBitAdapters
-
Method Summary
Modifier and TypeMethodDescriptionstatic FundingRecord
adapt
(ItBitFunding itBitFunding) static AccountInfo
static Currency
static CurrencyPair
adaptCcyPair
(String instrument) static CurrencyPair
adaptCurrencyPairToExchange
(CurrencyPair currencyPair) static Currency
adaptCurrencyToExchange
(Currency currency) static List<LimitOrder>
adaptOrders
(List<BigDecimal[]> orders, CurrencyPair currencyPair, Order.OrderType orderType) static OpenOrders
adaptPrivateOrders
(ItBitOrder[] orders) static Ticker
adaptTicker
(CurrencyPair currencyPair, ItBitTicker itBitTicker) static Trade
adaptTrade
(ItBitTrade trade, CurrencyPair currencyPair) static UserTrades
adaptTradeHistory
(ItBitTradeHistory history) static Trades
adaptTrades
(ItBitTrades trades, CurrencyPair currencyPair) static String
formatCryptoAmount
(BigDecimal amount) static String
formatFiatAmount
(BigDecimal amount)
-
Method Details
-
adaptTrades
public static Trades adaptTrades(ItBitTrades trades, CurrencyPair currencyPair) throws com.fasterxml.jackson.databind.exc.InvalidFormatException - Throws:
com.fasterxml.jackson.databind.exc.InvalidFormatException
-
adaptTrade
public static Trade adaptTrade(ItBitTrade trade, CurrencyPair currencyPair) throws com.fasterxml.jackson.databind.exc.InvalidFormatException - Throws:
com.fasterxml.jackson.databind.exc.InvalidFormatException
-
adaptOrders
public static List<LimitOrder> adaptOrders(List<BigDecimal[]> orders, CurrencyPair currencyPair, Order.OrderType orderType) -
adaptAccountInfo
-
adaptPrivateOrders
-
adaptTradeHistory
-
adaptCcyPair
-
adaptCcy
-
adaptTicker
-
formatFiatAmount
-
formatCryptoAmount
-
adaptCurrencyPairToExchange
-
adaptCurrencyToExchange
-
adapt
-