pub struct UserTrade {
pub executed_at: Option<String>,
pub fee: Option<String>,
pub fee_token: Option<String>,
pub price: Option<String>,
pub quantity: Option<String>,
pub quote_volume: Option<String>,
pub side: Option<String>,
pub trade_id: Option<Uuid>,
pub trading_pair_id: Option<Uuid>,
}Expand description
UserTrade
JSON schema
{
"type": "object",
"properties": {
"executed_at": {
"description": "Trade execution timestamp (ISO 8601)",
"examples": [
"2023-11-13T10:30:00Z"
],
"type": [
"string",
"null"
]
},
"fee": {
"description": "Fee paid by this user for this trade",
"examples": [
"0.875"
],
"type": [
"string",
"null"
]
},
"fee_token": {
"description": "Token address of the fee",
"type": [
"string",
"null"
]
},
"price": {
"description": "Execution price",
"examples": [
"35000.00"
],
"type": [
"string",
"null"
]
},
"quantity": {
"description": "Traded quantity",
"examples": [
"0.5"
],
"type": [
"string",
"null"
]
},
"quote_volume": {
"description": "Quote volume (price * quantity)",
"examples": [
"17500.00"
],
"type": [
"string",
"null"
]
},
"side": {
"description": "User's 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_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)
fee: Option<String>Fee paid by this user for this trade
fee_token: Option<String>Token address of the fee
price: Option<String>Execution price
quantity: Option<String>Traded quantity
quote_volume: Option<String>Quote volume (price * quantity)
side: Option<String>User’s side: Buy or Sell
trade_id: Option<Uuid>Trade UUID
trading_pair_id: Option<Uuid>Trading pair UUID
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserTrade
impl<'de> Deserialize<'de> for UserTrade
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 UserTrade
impl RefUnwindSafe for UserTrade
impl Send for UserTrade
impl Sync for UserTrade
impl Unpin for UserTrade
impl UnsafeUnpin for UserTrade
impl UnwindSafe for UserTrade
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