pub struct OrderInfo {Show 28 fields
pub order_id: String,
pub instrument_name: String,
pub direction: String,
pub amount: f64,
pub filled_amount: f64,
pub price: Option<f64>,
pub average_price: Option<f64>,
pub order_type: String,
pub order_state: String,
pub time_in_force: Option<String>,
pub label: String,
pub creation_timestamp: u64,
pub last_update_timestamp: u64,
pub api: bool,
pub web: bool,
pub post_only: bool,
pub reduce_only: bool,
pub is_liquidation: bool,
pub max_show: Option<f64>,
pub profit_loss: Option<f64>,
pub usd: Option<f64>,
pub implv: Option<f64>,
pub trigger_price: Option<f64>,
pub trigger: Option<String>,
pub triggered: Option<bool>,
pub replaced: bool,
pub mmp: bool,
pub mmp_cancelled: bool,
}Expand description
Order information response
Fields§
§order_id: StringOrder ID
instrument_name: StringInstrument name
direction: StringOrder direction (buy/sell)
amount: f64Order amount
filled_amount: f64Filled amount
price: Option<f64>Order price
average_price: Option<f64>Average fill price
order_type: StringOrder type
order_state: StringOrder state (open, filled, cancelled, etc.)
time_in_force: Option<String>Time in force
label: StringUser label
creation_timestamp: u64Creation timestamp in milliseconds
last_update_timestamp: u64Last update timestamp in milliseconds
api: boolWhether placed via API
web: boolWhether placed via web interface
post_only: boolWhether this is a post-only order
reduce_only: boolWhether this order only reduces position
is_liquidation: boolWhether this is a liquidation order
max_show: Option<f64>Maximum show amount
profit_loss: Option<f64>Profit/loss on this order
usd: Option<f64>USD value
implv: Option<f64>Implied volatility (for options)
trigger_price: Option<f64>Trigger price for conditional orders
trigger: Option<String>Trigger type
triggered: Option<bool>Whether triggered
replaced: boolWhether replaced
mmp: boolMMP flag
mmp_cancelled: boolMMP cancelled flag
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 UnsafeUnpin 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