pub struct AggTrade {
pub a: i64,
pub f: i64,
pub l: i64,
pub m: bool,
pub maker: bool,
pub p: String,
pub q: String,
pub t: bool,
}Expand description
AggTrade
JSON schema
{
"type": "object",
"required": [
"M",
"T",
"a",
"f",
"l",
"maker",
"p",
"q"
],
"properties": {
"M": {
"description": "Was the trade the best price match?",
"type": "boolean"
},
"T": {
"description": "Timestamp",
"examples": [
1498793709153
],
"type": "boolean"
},
"a": {
"description": "Aggregate tradeId",
"examples": [
26129
],
"type": "integer",
"format": "int64"
},
"f": {
"description": "First tradeId",
"examples": [
27781
],
"type": "integer",
"format": "int64"
},
"l": {
"description": "Last tradeId",
"examples": [
27781
],
"type": "integer",
"format": "int64"
},
"maker": {
"description": "Was the buyer the maker?",
"type": "boolean"
},
"p": {
"description": "Price",
"examples": [
"0.01633102"
],
"type": "string"
},
"q": {
"description": "Quantity",
"examples": [
"4.70443515"
],
"type": "string"
}
}
}Fields§
§a: i64Aggregate tradeId
f: i64First tradeId
l: i64Last tradeId
m: boolWas the trade the best price match?
maker: boolWas the buyer the maker?
p: StringPrice
q: StringQuantity
t: boolTimestamp
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AggTrade
impl<'de> Deserialize<'de> for AggTrade
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 AggTrade
impl RefUnwindSafe for AggTrade
impl Send for AggTrade
impl Sync for AggTrade
impl Unpin for AggTrade
impl UnwindSafe for AggTrade
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