pub enum TimeInForce {
Day,
Gtc,
Ioc,
Fok,
Opg,
Cls,
Gtd,
}Expand description
Time in force for orders.
Specifies how long an order remains active before it is executed or expires.
Variants§
Day
Day order - valid for the trading day.
Gtc
Good Till Canceled - remains active until filled or canceled.
Ioc
Immediate Or Cancel - executes immediately, cancels unfilled portion.
Fok
Fill Or Kill - must be filled entirely immediately or canceled.
Opg
Market On Open - executes at market open.
Cls
Market On Close - executes at market close.
Gtd
Good Till Date - remains active until specified date.
Trait Implementations§
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 · 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 TimeInForce
impl Debug for TimeInForce
Source§impl Default for TimeInForce
impl Default for TimeInForce
Source§fn default() -> TimeInForce
fn default() -> TimeInForce
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeInForce
impl<'de> Deserialize<'de> for TimeInForce
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeInForce, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeInForce, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TimeInForce
impl PartialEq for TimeInForce
Source§impl Serialize for TimeInForce
impl Serialize for TimeInForce
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq 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 UnwindSafe for TimeInForce
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