Class EXXAdapters


  • public class EXXAdapters
    extends Object
    • Method Detail

      • toSymbol

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

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

        public static Ticker convertTicker​(EXXTickerResponse exxTickerResponse)
        Parameters:
        ticker -
        Returns:
      • 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