Class CoinsuperAdapters

java.lang.Object
org.knowm.xchange.coinsuper.CoinsuperAdapters

public class CoinsuperAdapters
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​(CoinsuperTicker coinsuperTicker)
      Parameters:
      coinsuperTicker -
      Returns:
    • adaptOrderBook

      public static OrderBook adaptOrderBook​(CoinsuperResponse<CoinsuperOrderbook> coinsuperOrderbook, 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
    • convertBalance

      public static AccountInfo convertBalance​(CoinsuperResponse<CoinsuperUserAssetInfo> coinsuperBalances)
      Parameters:
      coinsuperBalances -
      Returns:
    • adaptOrder

      public static CoinsuperGenericOrder adaptOrder​(String orderId, OrderList orderList)
      There is no method to discern market versus limit order type - so this returns a generic GenericOrder as a status
      Returns:
    • adaptTradeHistory

      public static UserTrades adaptTradeHistory​(CoinsuperResponse<List<OrderDetail>> OrderDetails)
      Adapt the user's trades
      Parameters:
      CoinsuperUserTransaction -
      Returns: