pub enum Duration {
Day,
GoodTillCancel,
FillOrKill,
ImmediateOrCancel,
EndOfWeek,
EndOfMonth,
NextEndOfMonth,
Unknown,
}Expand description
Length of time over which the trade will be active.
Variants§
Day
Cancel the trade at the end of the trading day. Note if the order cannot be filled all at once, you may see partial executions throughout the day.
GoodTillCancel
Keep the trade open for six months, or until the end of the cancel date, whichever is shorter. Note if the order cannot be filled all at once, you may see partial executions over the lifetime of the order.
FillOrKill
Either execute the order immediately at the specified price, or cancel it immediately.
ImmediateOrCancel
EndOfWeek
EndOfMonth
NextEndOfMonth
Unknown
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Duration
impl<'de> Deserialize<'de> for Duration
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
impl Copy for Duration
impl StructuralPartialEq for Duration
Auto Trait Implementations§
impl Freeze for Duration
impl RefUnwindSafe for Duration
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl UnwindSafe for Duration
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