Class BitcoindeAdapters


  • public final class BitcoindeAdapters
    extends Object
    Author:
    matthewdowney & frank kaiser
    • Method Detail

      • adaptOrderBook

        public static OrderBook adaptOrderBook​(BitcoindeOrderbookWrapper bitcoindeOrderbookWrapper,
                                               CurrencyPair currencyPair)
        Adapt a org.knowm.xchange.bitcoinde.dto.marketdata.BitcoindeOrderBook object to an OrderBook object.
        Parameters:
        bitcoindeOrderbookWrapper - the exchange specific OrderBook object
        currencyPair - (e.g. BTC/USD)
        Returns:
        The XChange OrderBook
      • adaptAccountInfo

        public static AccountInfo adaptAccountInfo​(BitcoindeAccountWrapper bitcoindeAccount)
        Adapt a org.knowm.xchange.bitcoinde.dto.marketdata.BitcoindeAccount object to an AccountInfo object.
        Parameters:
        bitcoindeAccount -
        Returns:
      • adaptTrades

        public static Trades adaptTrades​(BitcoindeTradesWrapper bitcoindeTradesWrapper,
                                         CurrencyPair currencyPair)
        Adapt a org.knowm.xchange.bitcoinde.dto.marketdata.BitcoindeTrade[] object to a Trades object.
        Parameters:
        bitcoindeTradesWrapper - Exchange specific trades
        currencyPair - (e.g. BTC/USD)
        Returns:
        The XChange Trades