Class CoinbaseProWebSocketTransaction
java.lang.Object
info.bitrich.xchangestream.coinbasepro.dto.CoinbaseProWebSocketTransaction
Domain object mapping a CoinbasePro web socket message.
-
Constructor Summary
ConstructorDescriptionCoinbaseProWebSocketTransaction
(String type, String orderId, String orderType, BigDecimal size, BigDecimal remainingSize, BigDecimal price, BigDecimal bestBid, BigDecimal bestAsk, BigDecimal lastSize, BigDecimal volume24h, BigDecimal open24h, BigDecimal low24h, BigDecimal high24h, String side, String[][] bids, String[][] asks, String[][] changes, String clientOid, String productId, long sequence, String time, String reason, long tradeId, String makerOrderId, String takerOrderId, String takerUserId, String userId, String takerProfileId, String profileId) -
Method Summary
Modifier and TypeMethodDescriptiongetPrice()
getSide()
getSize()
Deprecated.getTime()
long
getType()
toOrderBook
(SortedMap<BigDecimal, LimitOrder> bids, SortedMap<BigDecimal, LimitOrder> asks, int maxDepth, CurrencyPair currencyPair) toString()
-
Constructor Details
-
CoinbaseProWebSocketTransaction
public CoinbaseProWebSocketTransaction(String type, String orderId, String orderType, BigDecimal size, BigDecimal remainingSize, BigDecimal price, BigDecimal bestBid, BigDecimal bestAsk, BigDecimal lastSize, BigDecimal volume24h, BigDecimal open24h, BigDecimal low24h, BigDecimal high24h, String side, String[][] bids, String[][] asks, String[][] changes, String clientOid, String productId, long sequence, String time, String reason, long tradeId, String makerOrderId, String takerOrderId, String takerUserId, String userId, String takerProfileId, String profileId)
-
-
Method Details
-
toOrderBook
public OrderBook toOrderBook(SortedMap<BigDecimal, LimitOrder> bids, SortedMap<BigDecimal, LimitOrder> asks, int maxDepth, CurrencyPair currencyPair) -
toCoinbaseProProductTicker
-
toCoinbaseProProductStats
-
toCoinbaseProTrade
-
toCoinbaseProFill
-
getType
-
getOrderId
-
getOrderType
-
getSize
-
getPrice
-
getBestBid
-
getBestAsk
-
getLastSize
-
getVolume24h
-
getOpen24h
-
getLow24h
-
getHigh24h
-
getSide
-
getClientOid
-
getProductId
-
getSequence
-
getTime
-
getRemainingSize
-
getReason
-
getTradeId
public long getTradeId() -
getMakerOrderId
-
getTakenOrderId
Deprecated. -
getTakerOrderId
-
getTakerUserId
-
getUserId
-
getTakerProfileId
-
getProfileId
-
toString
-
getTakerOrderId()