pub struct OrderInfo {Show 26 fields
pub amount: f64,
pub api: bool,
pub average_price: f64,
pub creation_timestamp: u64,
pub direction: String,
pub filled_amount: f64,
pub instrument_name: String,
pub is_liquidation: bool,
pub label: String,
pub last_update_timestamp: u64,
pub max_show: Option<f64>,
pub order_id: String,
pub order_state: String,
pub order_type: String,
pub original_order_type: Option<String>,
pub post_only: bool,
pub price: f64,
pub profit_loss: Option<f64>,
pub reduce_only: bool,
pub replaced: bool,
pub risk_reducing: bool,
pub time_in_force: String,
pub triggered: Option<bool>,
pub trigger: Option<String>,
pub usd: Option<f64>,
pub web: bool,
}Expand description
Order information
Fields§
§amount: f64Order amount
api: boolWhether order was placed via API
average_price: f64Average execution price
creation_timestamp: u64Order creation timestamp
direction: StringOrder direction (buy/sell)
filled_amount: f64Amount that has been filled
instrument_name: StringInstrument name
is_liquidation: boolWhether this is a liquidation order
label: StringOrder label
last_update_timestamp: u64Last update timestamp
max_show: Option<f64>Maximum amount to show in order book (optional)
order_id: StringUnique order identifier
order_state: StringCurrent order state
order_type: StringType of order
original_order_type: Option<String>Original order type before any modifications
post_only: boolWhether this is a post-only order
price: f64Order price
profit_loss: Option<f64>Current profit/loss on the order
reduce_only: boolWhether this order only reduces position
replaced: boolWhether this order has been replaced
risk_reducing: boolWhether this order reduces risk
time_in_force: StringTime in force specification
triggered: Option<bool>Whether the order has been triggered
trigger: Option<String>Trigger condition for the order
usd: Option<f64>USD value of the order
web: boolWhether order was placed via web interface
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OrderInfo
impl<'de> Deserialize<'de> for OrderInfo
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 OrderInfo
impl RefUnwindSafe for OrderInfo
impl Send for OrderInfo
impl Sync for OrderInfo
impl Unpin for OrderInfo
impl UnwindSafe for OrderInfo
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