Class BTCMarketsStreamingAdapters
java.lang.Object
info.bitrich.xchangestream.btcmarkets.BTCMarketsStreamingAdapters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
adaptCurrencyPairToMarketId
(CurrencyPair currencyPair) static CurrencyPair
adaptMarketIdToCurrencyPair
(String marketId) static OrderBook
static Ticker
static Trade
-
Constructor Details
-
BTCMarketsStreamingAdapters
public BTCMarketsStreamingAdapters()
-
-
Method Details
-
adaptCurrencyPairToMarketId
-
adaptMarketIdToCurrencyPair
-
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
-