#[repr(C)]pub struct CloseAllPositionsCommand {
pub instrument_id: InstrumentId,
pub position_side: Option<PositionSide>,
pub client_id: Option<ClientId>,
pub tags: Option<Vec<Ustr>>,
pub time_in_force: Option<TimeInForce>,
pub reduce_only: Option<bool>,
pub quote_quantity: Option<bool>,
}Expand description
Close-all-positions command. Mirrors the arguments to Strategy::close_all_positions.
Fields§
§instrument_id: InstrumentIdThe instrument identifier filtering which positions to close.
position_side: Option<PositionSide>Optional position side filter.
client_id: Option<ClientId>Optional client routing identifier.
Optional tags to attach to the closing orders.
time_in_force: Option<TimeInForce>Optional time-in-force override.
reduce_only: Option<bool>Optional reduce-only flag override.
quote_quantity: Option<bool>Optional quote-quantity flag override.
Implementations§
Source§impl CloseAllPositionsCommand
impl CloseAllPositionsCommand
Sourcepub const fn new(
instrument_id: InstrumentId,
position_side: Option<PositionSide>,
client_id: Option<ClientId>,
tags: Option<Vec<Ustr>>,
time_in_force: Option<TimeInForce>,
reduce_only: Option<bool>,
quote_quantity: Option<bool>,
) -> Self
pub const fn new( instrument_id: InstrumentId, position_side: Option<PositionSide>, client_id: Option<ClientId>, tags: Option<Vec<Ustr>>, time_in_force: Option<TimeInForce>, reduce_only: Option<bool>, quote_quantity: Option<bool>, ) -> Self
Creates a new CloseAllPositionsCommand instance.
Trait Implementations§
Source§impl Clone for CloseAllPositionsCommand
impl Clone for CloseAllPositionsCommand
Source§fn clone(&self) -> CloseAllPositionsCommand
fn clone(&self) -> CloseAllPositionsCommand
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 CloseAllPositionsCommand
impl Debug for CloseAllPositionsCommand
impl Eq for CloseAllPositionsCommand
Source§impl PartialEq for CloseAllPositionsCommand
impl PartialEq for CloseAllPositionsCommand
Source§fn eq(&self, other: &CloseAllPositionsCommand) -> bool
fn eq(&self, other: &CloseAllPositionsCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CloseAllPositionsCommand
Auto Trait Implementations§
impl Freeze for CloseAllPositionsCommand
impl RefUnwindSafe for CloseAllPositionsCommand
impl Send for CloseAllPositionsCommand
impl Sync for CloseAllPositionsCommand
impl Unpin for CloseAllPositionsCommand
impl UnsafeUnpin for CloseAllPositionsCommand
impl UnwindSafe for CloseAllPositionsCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.