Package info.bitrich.xchangestream.bybit
Class BybitStreamAdapters
java.lang.Object
info.bitrich.xchangestream.bybit.BybitStreamAdapters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<BybitComplexPositionChanges>
static OrderBook
adaptOrderBook
(BybitOrderbook bybitOrderbooks, Instrument instrument) static LimitOrder
adaptOrderBookOrder
(BybitPublicOrder bybitPublicOrder, Instrument instrument, Order.OrderType orderType, Date timestamp) adaptOrdersChanges
(List<BybitOrderChangesResponse.BybitOrderChanges> bybitOrderChanges) static OpenPositions
adaptPositionChanges
(List<BybitPositionChangesResponse.BybitPositionChanges> bybitPositionChanges) static Trades
adaptTrades
(List<BybitTrade> bybitTrades, Instrument instrument)
-
Constructor Details
-
BybitStreamAdapters
public BybitStreamAdapters()
-
-
Method Details
-
adaptOrderBook
-
adaptTrades
-
adaptOrderBookOrder
public static LimitOrder adaptOrderBookOrder(BybitPublicOrder bybitPublicOrder, Instrument instrument, Order.OrderType orderType, Date timestamp) -
adaptOrdersChanges
public static List<Order> adaptOrdersChanges(List<BybitOrderChangesResponse.BybitOrderChanges> bybitOrderChanges) -
adaptPositionChanges
public static OpenPositions adaptPositionChanges(List<BybitPositionChangesResponse.BybitPositionChanges> bybitPositionChanges) -
adaptComplexPositionChanges
public static List<BybitComplexPositionChanges> adaptComplexPositionChanges(List<BybitPositionChangesResponse.BybitPositionChanges> data)
-