pub struct CloseOrder {Show 21 fields
pub web: Option<bool>,
pub time_in_force: Option<String>,
pub replaced: Option<bool>,
pub reduce_only: Option<bool>,
pub price: Option<f64>,
pub post_only: Option<bool>,
pub order_type: Option<String>,
pub order_state: Option<String>,
pub order_id: Option<String>,
pub max_show: Option<f64>,
pub last_update_timestamp: Option<u64>,
pub label: Option<String>,
pub is_rebalance: Option<bool>,
pub is_liquidation: Option<bool>,
pub instrument_name: Option<String>,
pub filled_amount: Option<f64>,
pub direction: Option<String>,
pub creation_timestamp: Option<u64>,
pub average_price: Option<f64>,
pub api: Option<bool>,
pub amount: Option<f64>,
}Expand description
Order information from a close_position response
Fields§
§web: Option<bool>Whether the order was created via web
time_in_force: Option<String>Time in force
replaced: Option<bool>Whether the order was replaced
reduce_only: Option<bool>Whether this is a reduce-only order
price: Option<f64>Order price
post_only: Option<bool>Whether this is a post-only order
order_type: Option<String>Order type (limit, market)
order_state: Option<String>Order state (open, filled, cancelled)
order_id: Option<String>Order ID
max_show: Option<f64>Maximum display amount
last_update_timestamp: Option<u64>Last update timestamp
label: Option<String>Order label
is_rebalance: Option<bool>Whether this is a rebalance order
is_liquidation: Option<bool>Whether this is a liquidation order
instrument_name: Option<String>Instrument name
filled_amount: Option<f64>Filled amount
direction: Option<String>Order direction (buy/sell)
creation_timestamp: Option<u64>Creation timestamp
average_price: Option<f64>Average fill price
api: Option<bool>Whether created via API
amount: Option<f64>Order amount
Trait Implementations§
Source§impl Clone for CloseOrder
impl Clone for CloseOrder
Source§fn clone(&self) -> CloseOrder
fn clone(&self) -> CloseOrder
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 CloseOrder
impl Debug for CloseOrder
Source§impl<'de> Deserialize<'de> for CloseOrder
impl<'de> Deserialize<'de> for CloseOrder
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 CloseOrder
impl RefUnwindSafe for CloseOrder
impl Send for CloseOrder
impl Sync for CloseOrder
impl Unpin for CloseOrder
impl UnsafeUnpin for CloseOrder
impl UnwindSafe for CloseOrder
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