pub struct TradeData {
pub executed_at: Option<String>,
pub maker_side: Option<String>,
pub price: Option<String>,
pub quantity: Option<String>,
pub quantity_raw: Option<String>,
pub trade_id: Option<Uuid>,
}Expand description
Core fields of a single executed trade, nested under data in the public trade event envelope.
JSON schema
{
"description": "Core fields of a single executed trade, nested under `data` in the public trade event envelope.",
"type": "object",
"properties": {
"executedAt": {
"description": "Trade execution timestamp (ISO 8601). Omitted when the trade has no execution time.",
"examples": [
"2023-11-13T10:30:00Z"
],
"type": [
"string",
"null"
]
},
"makerSide": {
"description": "Maker order side: BUY or SELL",
"examples": [
"BUY"
],
"type": [
"string",
"null"
]
},
"price": {
"description": "Execution price",
"examples": [
"35000.00"
],
"type": [
"string",
"null"
]
},
"quantity": {
"description": "Traded quantity in base token (normalized)",
"examples": [
"0.5"
],
"type": [
"string",
"null"
]
},
"quantityRaw": {
"description": "Traded quantity in raw base-token units",
"examples": [
"50000000"
],
"type": [
"string",
"null"
]
},
"tradeId": {
"description": "Trade UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
}
}
}Fields§
§executed_at: Option<String>Trade execution timestamp (ISO 8601). Omitted when the trade has no execution time.
maker_side: Option<String>Maker order side: BUY or SELL
price: Option<String>Execution price
quantity: Option<String>Traded quantity in base token (normalized)
quantity_raw: Option<String>Traded quantity in raw base-token units
trade_id: Option<Uuid>Trade UUID
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TradeData
impl<'de> Deserialize<'de> for TradeData
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 TradeData
impl RefUnwindSafe for TradeData
impl Send for TradeData
impl Sync for TradeData
impl Unpin for TradeData
impl UnsafeUnpin for TradeData
impl UnwindSafe for TradeData
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