pub struct MyTrade {}Expand description
MyTrade
JSON schema
{
"type": "object",
"required": [
"commission",
"commissionAsset",
"id",
"isBestMatch",
"isBuyer",
"isMaker",
"orderId",
"orderListId",
"price",
"qty",
"quoteQty",
"symbol",
"time"
],
"properties": {
"commission": {
"examples": [
"10.10000000"
],
"type": "string"
},
"commissionAsset": {
"examples": [
"BNB"
],
"type": "string"
},
"id": {
"description": "Trade id",
"examples": [
28457
],
"type": "integer",
"format": "int64"
},
"isBestMatch": {
"type": "boolean"
},
"isBuyer": {
"examples": [
false
],
"type": "boolean"
},
"isMaker": {
"examples": [
false
],
"type": "boolean"
},
"orderId": {
"examples": [
100234
],
"type": "integer",
"format": "int64"
},
"orderListId": {
"examples": [
-1
],
"type": "integer",
"format": "int64"
},
"price": {
"description": "Price",
"examples": [
"4.00000100"
],
"type": "string"
},
"qty": {
"description": "Amount of base asset",
"examples": [
"12.00000000"
],
"type": "string"
},
"quoteQty": {
"description": "Amount of quote asset",
"examples": [
"48.000012"
],
"type": "string"
},
"symbol": {
"examples": [
"BNBBTC"
],
"type": "string"
},
"time": {
"description": "Trade timestamp",
"examples": [
1499865549590
],
"type": "integer",
"format": "int64"
}
}
}Fields§
§commission: String§commission_asset: String§id: i64Trade id
is_best_match: bool§is_buyer: bool§is_maker: bool§order_id: i64§order_list_id: i64§price: StringPrice
qty: StringAmount of base asset
quote_qty: StringAmount of quote asset
symbol: String§time: i64Trade timestamp
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MyTrade
impl<'de> Deserialize<'de> for MyTrade
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 MyTrade
impl RefUnwindSafe for MyTrade
impl Send for MyTrade
impl Sync for MyTrade
impl Unpin for MyTrade
impl UnwindSafe for MyTrade
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