pub struct PublicTrade {
pub executed_at: Option<String>,
pub price: Option<String>,
pub quantity: Option<String>,
pub side: Option<String>,
pub trade_id: Option<Uuid>,
pub trading_mode: Option<String>,
pub trading_pair_id: Option<Uuid>,
}Expand description
PublicTrade
JSON schema
{
"type": "object",
"properties": {
"executed_at": {
"description": "Trade execution timestamp (ISO 8601)",
"examples": [
"2023-11-13T10:30:00Z"
],
"type": [
"string",
"null"
]
},
"price": {
"description": "Execution price",
"examples": [
"35000.00"
],
"type": [
"string",
"null"
]
},
"quantity": {
"description": "Traded quantity in base token",
"examples": [
"0.5"
],
"type": [
"string",
"null"
]
},
"side": {
"description": "Taker side: BUY or SELL",
"examples": [
"BUY"
],
"type": [
"string",
"null"
]
},
"trade_id": {
"description": "Trade UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"trading_mode": {
"description": "Trading mode: SPOT or MARGIN",
"examples": [
"SPOT"
],
"type": [
"string",
"null"
]
},
"trading_pair_id": {
"description": "Trading pair UUID",
"examples": [
"456e7890-e12b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
}
}
}Fields§
§executed_at: Option<String>Trade execution timestamp (ISO 8601)
price: Option<String>Execution price
quantity: Option<String>Traded quantity in base token
side: Option<String>Taker side: BUY or SELL
trade_id: Option<Uuid>Trade UUID
trading_mode: Option<String>Trading mode: SPOT or MARGIN
trading_pair_id: Option<Uuid>Trading pair UUID
Trait Implementations§
Source§impl Clone for PublicTrade
impl Clone for PublicTrade
Source§fn clone(&self) -> PublicTrade
fn clone(&self) -> PublicTrade
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublicTrade
impl Debug for PublicTrade
Source§impl Default for PublicTrade
impl Default for PublicTrade
Source§impl<'de> Deserialize<'de> for PublicTrade
impl<'de> Deserialize<'de> for PublicTrade
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 PublicTrade
impl RefUnwindSafe for PublicTrade
impl Send for PublicTrade
impl Sync for PublicTrade
impl Unpin for PublicTrade
impl UnsafeUnpin for PublicTrade
impl UnwindSafe for PublicTrade
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