public final class PeatioAdapters extends Object
Modifier and Type | Method and Description |
---|---|
static com.xeiam.xchange.currency.CurrencyPair |
adaptCurrencyPair(Market market) |
static com.xeiam.xchange.currency.CurrencyPair |
adaptCurrencyPair(String marketId) |
static List<com.xeiam.xchange.currency.CurrencyPair> |
adaptCurrencyPairs(Market[] markets) |
static com.xeiam.xchange.dto.trade.LimitOrder |
adaptLimitOrder(com.xeiam.xchange.currency.CurrencyPair currencyPair,
Order order) |
static com.xeiam.xchange.dto.trade.LimitOrder |
adaptLimitOrder(Order order) |
static List<com.xeiam.xchange.dto.trade.LimitOrder> |
adaptLimitOrders(com.xeiam.xchange.currency.CurrencyPair currencyPair,
com.xeiam.xchange.dto.Order.OrderType orderType,
BigDecimal[][] items)
Adapt depth items to limit order list.
|
static List<com.xeiam.xchange.dto.trade.LimitOrder> |
adaptLimitOrders(com.xeiam.xchange.currency.CurrencyPair currencyPair,
Order[] orders) |
static List<com.xeiam.xchange.dto.trade.LimitOrder> |
adaptLimitOrders(Market market,
Order[] orders) |
static List<com.xeiam.xchange.dto.trade.LimitOrder> |
adaptLimitOrders(Order[] orders) |
static String |
adaptMarketId(com.xeiam.xchange.currency.CurrencyPair currencyPair) |
static com.xeiam.xchange.dto.account.AccountInfo |
adaptMember(Member member) |
static com.xeiam.xchange.dto.trade.OpenOrders |
adaptOpenOrders(Map<Market,Order[]> ordersMap) |
static com.xeiam.xchange.dto.marketdata.OrderBook |
adaptOrderBook(com.xeiam.xchange.currency.CurrencyPair currencyPair,
Depth depth)
Adapt market depth to generic order book.
|
static com.xeiam.xchange.dto.Order.OrderType |
adaptOrderType(String side) |
static String |
adaptSide(com.xeiam.xchange.dto.Order.OrderType orderType) |
static com.xeiam.xchange.dto.marketdata.Ticker |
adaptTicker(com.xeiam.xchange.currency.CurrencyPair currencyPair,
MarketTicker ticker) |
static com.xeiam.xchange.dto.marketdata.Trade |
adaptTrade(Trade trade) |
static com.xeiam.xchange.dto.marketdata.Trades |
adaptTrades(Trade[] tradeArray) |
static com.xeiam.xchange.dto.trade.UserTrade |
adaptUserTrade(com.xeiam.xchange.currency.CurrencyPair currencyPair,
Trade trade) |
static List<com.xeiam.xchange.dto.trade.UserTrade> |
adaptUserTradeList(com.xeiam.xchange.currency.CurrencyPair currencyPair,
Trade[] trades) |
static List<com.xeiam.xchange.dto.trade.UserTrade> |
adaptUserTradeList(Market market,
Trade[] trade) |
static com.xeiam.xchange.dto.trade.UserTrades |
adaptUserTrades(com.xeiam.xchange.currency.CurrencyPair currencyPair,
Trade[] trades) |
static com.xeiam.xchange.dto.trade.UserTrades |
adaptUserTrades(Map<Market,Trade[]> tradesMap) |
public static List<com.xeiam.xchange.currency.CurrencyPair> adaptCurrencyPairs(Market[] markets)
public static com.xeiam.xchange.currency.CurrencyPair adaptCurrencyPair(Market market)
public static com.xeiam.xchange.currency.CurrencyPair adaptCurrencyPair(String marketId)
public static String adaptMarketId(com.xeiam.xchange.currency.CurrencyPair currencyPair)
public static com.xeiam.xchange.dto.marketdata.Ticker adaptTicker(com.xeiam.xchange.currency.CurrencyPair currencyPair, MarketTicker ticker)
public static com.xeiam.xchange.dto.marketdata.OrderBook adaptOrderBook(com.xeiam.xchange.currency.CurrencyPair currencyPair, Depth depth)
currencyPair
- the currency pair.depth
- the raw depth.public static List<com.xeiam.xchange.dto.trade.LimitOrder> adaptLimitOrders(com.xeiam.xchange.currency.CurrencyPair currencyPair, com.xeiam.xchange.dto.Order.OrderType orderType, BigDecimal[][] items)
currencyPair
- the currency pair.orderType
- the order type, bid or ask.items
- the depth items.public static List<com.xeiam.xchange.dto.trade.LimitOrder> adaptLimitOrders(Order[] orders)
public static List<com.xeiam.xchange.dto.trade.LimitOrder> adaptLimitOrders(Market market, Order[] orders)
public static List<com.xeiam.xchange.dto.trade.LimitOrder> adaptLimitOrders(com.xeiam.xchange.currency.CurrencyPair currencyPair, Order[] orders)
public static com.xeiam.xchange.dto.trade.LimitOrder adaptLimitOrder(Order order)
public static com.xeiam.xchange.dto.trade.LimitOrder adaptLimitOrder(com.xeiam.xchange.currency.CurrencyPair currencyPair, Order order)
public static com.xeiam.xchange.dto.Order.OrderType adaptOrderType(String side)
public static String adaptSide(com.xeiam.xchange.dto.Order.OrderType orderType)
public static com.xeiam.xchange.dto.marketdata.Trades adaptTrades(Trade[] tradeArray)
public static com.xeiam.xchange.dto.marketdata.Trade adaptTrade(Trade trade)
public static com.xeiam.xchange.dto.account.AccountInfo adaptMember(Member member)
public static com.xeiam.xchange.dto.trade.OpenOrders adaptOpenOrders(Map<Market,Order[]> ordersMap)
public static com.xeiam.xchange.dto.trade.UserTrade adaptUserTrade(com.xeiam.xchange.currency.CurrencyPair currencyPair, Trade trade)
public static List<com.xeiam.xchange.dto.trade.UserTrade> adaptUserTradeList(Market market, Trade[] trade)
public static List<com.xeiam.xchange.dto.trade.UserTrade> adaptUserTradeList(com.xeiam.xchange.currency.CurrencyPair currencyPair, Trade[] trades)
public static com.xeiam.xchange.dto.trade.UserTrades adaptUserTrades(com.xeiam.xchange.currency.CurrencyPair currencyPair, Trade[] trades)
Copyright © 2015. All rights reserved.