pub struct Trade {
pub id: i64,
pub is_best_match: bool,
pub is_buyer_maker: bool,
pub price: String,
pub qty: String,
pub quote_qty: String,
pub time: i64,
}
Expand description
Trade
JSON schema
{
"type": "object",
"required": [
"id",
"isBestMatch",
"isBuyerMaker",
"price",
"qty",
"quoteQty",
"time"
],
"properties": {
"id": {
"description": "trade id",
"examples": [
345196462
],
"type": "integer",
"format": "int64"
},
"isBestMatch": {
"type": "boolean"
},
"isBuyerMaker": {
"type": "boolean"
},
"price": {
"description": "price",
"examples": [
"9638.99000000"
],
"type": "string"
},
"qty": {
"description": "amount of base asset",
"examples": [
"0.02077200"
],
"type": "string"
},
"quoteQty": {
"description": "amount of quote asset",
"examples": [
"0.02077200"
],
"type": "string"
},
"time": {
"description": "Trade executed timestamp, as same as `T` in the stream",
"examples": [
1592887772684
],
"type": "integer",
"format": "int64"
}
}
}
Fields§
§id: i64
trade id
is_best_match: bool
§is_buyer_maker: bool
§price: String
price
qty: String
amount of base asset
quote_qty: String
amount of quote asset
time: i64
Trade executed timestamp, as same as T
in the stream
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trade
impl<'de> Deserialize<'de> for Trade
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 Trade
impl RefUnwindSafe for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnwindSafe for Trade
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