#[repr(C)]pub enum TimeInForce {
Gtc = 1,
Ioc = 2,
Fok = 3,
Gtd = 4,
Day = 5,
AtTheOpen = 6,
AtTheClose = 7,
}Expand description
The ‘Time in Force’ instruction for an order.
Variants§
Gtc = 1
Good Till Cancel (GTC) - Remains active until canceled.
Ioc = 2
Immediate or Cancel (IOC) - Executes immediately to the extent possible, with any unfilled portion canceled.
Fok = 3
Fill or Kill (FOK) - Executes in its entirety immediately or is canceled if full execution is not possible.
Gtd = 4
Good Till Date (GTD) - Remains active until the specified expiration date or time is reached.
Day = 5
Day - Remains active until the close of the current trading session.
AtTheOpen = 6
At the Opening (ATO) - Executes at the market opening or expires if not filled.
AtTheClose = 7
At the Closing (ATC) - Executes at the market close or expires if not filled.
Implementations§
Source§impl TimeInForce
impl TimeInForce
Trait Implementations§
Source§impl AsRef<str> for TimeInForce
impl AsRef<str> for TimeInForce
Source§impl Clone for TimeInForce
impl Clone for TimeInForce
Source§fn clone(&self) -> TimeInForce
fn clone(&self) -> TimeInForce
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 moreimpl Copy for TimeInForce
Source§impl Debug for TimeInForce
impl Debug for TimeInForce
Source§impl<'de> Deserialize<'de> for TimeInForce
impl<'de> Deserialize<'de> for TimeInForce
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
Source§impl Display for TimeInForce
impl Display for TimeInForce
impl Eq for TimeInForce
Source§impl FromStr for TimeInForce
impl FromStr for TimeInForce
Source§impl Hash for TimeInForce
impl Hash for TimeInForce
Source§impl IntoEnumIterator for TimeInForce
impl IntoEnumIterator for TimeInForce
type Iterator = TimeInForceIter
fn iter() -> TimeInForceIter ⓘ
Source§impl Ord for TimeInForce
impl Ord for TimeInForce
Source§fn cmp(&self, other: &TimeInForce) -> Ordering
fn cmp(&self, other: &TimeInForce) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimeInForce
impl PartialEq for TimeInForce
Source§fn eq(&self, other: &TimeInForce) -> bool
fn eq(&self, other: &TimeInForce) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TimeInForce
impl PartialOrd for TimeInForce
Source§impl Serialize for TimeInForce
impl Serialize for TimeInForce
impl StructuralPartialEq for TimeInForce
Auto Trait Implementations§
impl Freeze for TimeInForce
impl RefUnwindSafe for TimeInForce
impl Send for TimeInForce
impl Sync for TimeInForce
impl Unpin for TimeInForce
impl UnsafeUnpin for TimeInForce
impl UnwindSafe for TimeInForce
Blanket Implementations§
impl<T> Allocation for T
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.