Class BTCMarketsWebSocketTradeMessage
java.lang.Object
info.bitrich.xchangestream.btcmarkets.dto.BTCMarketsWebSocketTradeMessage
This Class represents the trade event generated by the websocket
Example Eventinvalid input: '<'/>
tradeId
tradeId The id of the trade
The trade type (BID side or ASK side)
invalid @link
BTCMarketsWebSocketTradeMessage#type
price
The price of the trade
timestamp
The timestamp of the trade according to the
exchange's server, null if not provided
volume
The volume procured in the trade
messageType
All messages published include a
json
attribute called messageType that represents type of event that is being received
Example Eventinvalid input: '<'/>
{ marketId: 'BTC-AUD',
timestamp: '2019-04-08T20:54:27.632Z',
tradeId: 3153171493,
price: '7370.11',
volume: '0.10901605',
side: 'Ask',
messageType: 'trade' }invalid input: '<'/>
{ marketId: 'BTC-AUD',
timestamp: '2019-04-08T20:54:27.632Z',
tradeId: 3153171493,
price: '7370.11',
volume: '0.10901605',
side: 'Ask',
messageType: 'trade' }invalid input: '<'/>
-
Constructor Summary
ConstructorDescriptionBTCMarketsWebSocketTradeMessage
(String marketId, String timestamp, String tradeId, String side, BigDecimal price, BigDecimal volume, String messageType) -
Method Summary
-
Constructor Details
-
BTCMarketsWebSocketTradeMessage
public BTCMarketsWebSocketTradeMessage(String marketId, String timestamp, String tradeId, String side, BigDecimal price, BigDecimal volume, String messageType)
-
-
Method Details
-
getMarketId
-
getTimestamp
-
getMessageType
-
getTradeId
-
getSide
-
getPrice
-
getVolume
-