Class GateioStreamingAdapters
java.lang.Object
info.bitrich.xchangestream.gateio.GateioStreamingAdapters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<OrderBookUpdate> adaptOrderBookFuturesUpdates(Instrument instrument, OrderBookV2FuturesResponse response, BigDecimal contractValue) static List<OrderBookUpdate> adaptOrderBookUpdates(Instrument instrument, OrderBookV2Response response) toBalance(GateioSingleSpotBalanceNotification notification) static FundingRatetoFunding(GateioSingleTickerAndFundingNotification gateioSingleTickerAndFundingNotification, GateioFundingInfo gateioFundingInfo) toOrder(GateioSingleOrderFuturesNotification notification, BigDecimal contractValue) toOrder(GateioSingleOrderNotification notification) toOrderBook(GateioOrderBookNotification notification) static OrderBookTickertoOrderBookV2(GateioOrderBookV2Notification notification) toOrderBookV2Futures(GateioOrderBookV2FuturesNotification notification, BigDecimal contractValue) toTicker(GateioTickerNotification notification) static TickertoTickerFutures(GateioSingleTickerAndFundingNotification notification) toTrade(GateioTradeNotification notification) toTrade(TradePayload tradePayload) static TradetoTradeFutures(TradeFuturesPayload payload) toUserTrade(GateioSingleUserTradeNotification notification)
-
Constructor Details
-
GateioStreamingAdapters
public GateioStreamingAdapters()
-
-
Method Details
-
toTicker
-
toTrade
-
toTrade
-
toTradeFutures
-
toUserTrade
-
toOrder
-
toOrder
-
toBalance
-
toOrderBook
-
toOrderBookV2Futures
public OrderBook toOrderBookV2Futures(GateioOrderBookV2FuturesNotification notification, BigDecimal contractValue) -
toOrderBookV2
-
adaptOrderBookFuturesUpdates
public static List<OrderBookUpdate> adaptOrderBookFuturesUpdates(Instrument instrument, OrderBookV2FuturesResponse response, BigDecimal contractValue) -
adaptOrderBookUpdates
public static List<OrderBookUpdate> adaptOrderBookUpdates(Instrument instrument, OrderBookV2Response response) -
toFunding
public static FundingRate toFunding(GateioSingleTickerAndFundingNotification gateioSingleTickerAndFundingNotification, GateioFundingInfo gateioFundingInfo) -
toTickerFutures
-
toOrderBookTicker
-