pub struct TradeMessage {
pub message_type: String,
pub trade_id: u64,
pub maker_order_id: String,
pub taker_order_id: String,
pub side: String,
pub size: Decimal,
pub price: Decimal,
pub product_id: String,
pub sequence: u64,
pub time: String,
}Expand description
Coinbase WebSocket match/trade message
Fields§
§message_type: StringMessage type (always “match” or “last_match”)
trade_id: u64Unique trade identifier
maker_order_id: StringOrder ID of the maker
taker_order_id: StringOrder ID of the taker
side: StringSide of the trade (“buy” or “sell”)
size: DecimalQuantity of the trade
price: DecimalPrice of the trade
product_id: StringTrading pair identifier
sequence: u64Sequence number for ordering
time: StringTrade timestamp in ISO 8601 format
Trait Implementations§
Source§impl Clone for TradeMessage
impl Clone for TradeMessage
Source§fn clone(&self) -> TradeMessage
fn clone(&self) -> TradeMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TradeMessage
impl Debug for TradeMessage
Source§impl<'de> Deserialize<'de> for TradeMessage
impl<'de> Deserialize<'de> for TradeMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TradeMessage
impl RefUnwindSafe for TradeMessage
impl Send for TradeMessage
impl Sync for TradeMessage
impl Unpin for TradeMessage
impl UnwindSafe for TradeMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more