Class BTCMarketsStreamingAdapters

java.lang.Object
info.bitrich.xchangestream.btcmarkets.BTCMarketsStreamingAdapters

public class BTCMarketsStreamingAdapters extends Object
  • Constructor Details

    • BTCMarketsStreamingAdapters

      public BTCMarketsStreamingAdapters()
  • Method Details

    • adaptCurrencyPairToMarketId

      public static String adaptCurrencyPairToMarketId(CurrencyPair currencyPair)
    • adaptMarketIdToCurrencyPair

      public static CurrencyPair adaptMarketIdToCurrencyPair(String marketId)
    • adaptOrderbookMessageToOrderbook

      public static OrderBook adaptOrderbookMessageToOrderbook(BTCMarketsWebSocketOrderbookMessage message) throws com.fasterxml.jackson.databind.exc.InvalidFormatException
      Throws:
      com.fasterxml.jackson.databind.exc.InvalidFormatException
    • adaptTickerMessageToTicker

      public static Ticker adaptTickerMessageToTicker(BTCMarketsWebSocketTickerMessage message) throws com.fasterxml.jackson.databind.exc.InvalidFormatException
      Throws:
      com.fasterxml.jackson.databind.exc.InvalidFormatException
    • adaptTradeMessageToTrade

      public static Trade adaptTradeMessageToTrade(BTCMarketsWebSocketTradeMessage message) throws com.fasterxml.jackson.databind.exc.InvalidFormatException
      Throws:
      com.fasterxml.jackson.databind.exc.InvalidFormatException