pub struct BinanceOrder {Show 27 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 is_trigger: bool,
pub market_id: u16,
pub order_id: u64,
pub order_type: String,
pub orig_qty: Decimal,
pub orig_type: String,
pub pending_tpsl: Option<PendingTpsl>,
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",
"isTrigger",
"marketId",
"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
},
"isTrigger": {
"description": "bullet extension: true when this row is a user trigger order\n(STOP / TAKE_PROFIT). `orderId` for triggers is drawn from the\n`TriggerOrderId` namespace, which is independent of the regular\n`OrderId` counter — use `(orderId, isTrigger)` as the composite key",
"type": "boolean"
},
"marketId": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"orderId": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"orderType": {
"description": "one of: `LIMIT`, `STOP`, `TAKE_PROFIT`",
"type": "string"
},
"origQty": {
"type": "string",
"format": "decimal"
},
"origType": {
"description": "same as `orderType`",
"type": "string"
},
"pendingTpsl": {
"oneOf": [
{
"type": "null"
},
{
"oneOf": [
{
"$ref": "#/components/schemas/PendingTpsl"
}
]
}
]
},
"positionSide": {
"type": "string"
},
"price": {
"type": "string",
"format": "decimal"
},
"priceMatch": {
"type": "string"
},
"priceProtect": {
"type": "boolean"
},
"reduceOnly": {
"type": "boolean"
},
"selfTradePreventionMode": {
"type": "string"
},
"side": {
"type": "string"
},
"status": {
"description": "one of: NEW, PARTIALLY_FILLED, FILLED",
"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§is_trigger: boolbullet extension: true when this row is a user trigger order
(STOP / TAKE_PROFIT). orderId for triggers is drawn from the
TriggerOrderId namespace, which is independent of the regular
OrderId counter — use (orderId, isTrigger) as the composite key
market_id: u16§order_id: u64§order_type: Stringone of: LIMIT, STOP, TAKE_PROFIT
orig_qty: Decimal§orig_type: Stringsame as orderType
pending_tpsl: Option<PendingTpsl>§position_side: String§price: Decimal§price_match: String§price_protect: bool§reduce_only: bool§self_trade_prevention_mode: String§side: String§status: Stringone of: NEW, PARTIALLY_FILLED, FILLED
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 (const: unstable) · 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