pub struct BinanceOrder {Show 24 fields
pub avg_price: Decimal,
pub client_order_id: Option<String>,
pub close_position: bool,
pub cum_qty: Decimal,
pub cum_quote: Decimal,
pub executed_qty: Decimal,
pub good_till_date: u64,
pub order_id: u64,
pub order_type: String,
pub orig_qty: Decimal,
pub orig_type: String,
pub position_side: String,
pub price: Decimal,
pub price_match: String,
pub price_protect: bool,
pub reduce_only: bool,
pub self_trade_prevention_mode: String,
pub side: String,
pub status: String,
pub stop_price: Option<Decimal>,
pub symbol: String,
pub time_in_force: String,
pub update_time: i64,
pub working_type: String,
}Expand description
BinanceOrder
JSON schema
{
"type": "object",
"required": [
"avgPrice",
"closePosition",
"cumQty",
"cumQuote",
"executedQty",
"goodTillDate",
"orderId",
"orderType",
"origQty",
"origType",
"positionSide",
"price",
"priceMatch",
"priceProtect",
"reduceOnly",
"selfTradePreventionMode",
"side",
"status",
"symbol",
"timeInForce",
"updateTime",
"workingType"
],
"properties": {
"avgPrice": {
"type": "string",
"format": "decimal"
},
"clientOrderId": {
"type": [
"string",
"null"
]
},
"closePosition": {
"type": "boolean"
},
"cumQty": {
"type": "string",
"format": "decimal"
},
"cumQuote": {
"type": "string",
"format": "decimal"
},
"executedQty": {
"type": "string",
"format": "decimal"
},
"goodTillDate": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"orderId": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"orderType": {
"type": "string"
},
"origQty": {
"type": "string",
"format": "decimal"
},
"origType": {
"type": "string"
},
"positionSide": {
"type": "string"
},
"price": {
"type": "string",
"format": "decimal"
},
"priceMatch": {
"type": "string"
},
"priceProtect": {
"type": "boolean"
},
"reduceOnly": {
"type": "boolean"
},
"selfTradePreventionMode": {
"type": "string"
},
"side": {
"type": "string"
},
"status": {
"type": "string"
},
"stopPrice": {
"type": [
"string",
"null"
],
"format": "decimal"
},
"symbol": {
"type": "string"
},
"timeInForce": {
"type": "string"
},
"updateTime": {
"type": "integer",
"format": "int64"
},
"workingType": {
"type": "string"
}
}
}Fields§
§avg_price: Decimal§client_order_id: Option<String>§close_position: bool§cum_qty: Decimal§cum_quote: Decimal§executed_qty: Decimal§good_till_date: u64§order_id: u64§order_type: String§orig_qty: Decimal§orig_type: String§position_side: String§price: Decimal§price_match: String§price_protect: bool§reduce_only: bool§self_trade_prevention_mode: String§side: String§status: String§stop_price: Option<Decimal>§symbol: String§time_in_force: String§update_time: i64§working_type: StringTrait Implementations§
Source§impl Clone for BinanceOrder
impl Clone for BinanceOrder
Source§fn clone(&self) -> BinanceOrder
fn clone(&self) -> BinanceOrder
Returns a duplicate of the value. Read more
1.0.0 · 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 BinanceOrder
impl Debug for BinanceOrder
Source§impl<'de> Deserialize<'de> for BinanceOrder
impl<'de> Deserialize<'de> for BinanceOrder
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 BinanceOrder
impl RefUnwindSafe for BinanceOrder
impl Send for BinanceOrder
impl Sync for BinanceOrder
impl Unpin for BinanceOrder
impl UnsafeUnpin for BinanceOrder
impl UnwindSafe for BinanceOrder
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