Class EXXAdapters

java.lang.Object
org.knowm.xchange.exx.EXXAdapters

public class EXXAdapters
extends Object
  • Method Details

    • toSymbol

      public static String toSymbol​(CurrencyPair pair)
      Parameters:
      pair -
      Returns:
    • toSymbol

      public static String toSymbol​(Currency currency)
      Parameters:
      currency -
      Returns:
    • toMarket

      public static String toMarket​(CurrencyPair currencyPair)
    • convertTicker

      public static Ticker convertTicker​(EXXTickerResponse exxTickerResponse)
      Parameters:
      ticker -
      Returns:
    • convertTickerMap

      public static List<Ticker> convertTickerMap​(Map<String,​EXXTicker> exxTickers)
    • convertTradingPair

      public static CurrencyPair convertTradingPair​(String pair)
    • adaptOrderBook

      public static OrderBook adaptOrderBook​(EXXOrderbook exxOrderbook, CurrencyPair currencyPair)
      Adapts a to a OrderBook Object
      Parameters:
      currencyPair - (e.g. BTC/USD)
      timeScale - polled order books provide a timestamp in seconds, stream in ms
      Returns:
      The XChange OrderBook
    • adaptTrades

      public static Trades adaptTrades​(EXXTransaction[] transactions, CurrencyPair currencyPair)
      Adapts a Transaction[] to a Trades Object
      Parameters:
      transactions - The Bitstamp transactions
      currencyPair - (e.g. BTC/USD)
      Returns:
      The XChange Trades
    • convertBalance

      public static AccountInfo convertBalance​(EXXAccountInformation exxAccountInformation)
      Parameters:
      exxAccountInformation -
      Returns:
    • convertOpenOrders

      public static OpenOrders convertOpenOrders​(List<EXXOrder> exxOpenOrders, CurrencyPair currencyPair)
    • convertType

      public static Order.OrderType convertType​(String side)
    • convertByType

      public static String convertByType​(Order.OrderType orderType)