#[non_exhaustive]pub enum OrderType {
Show 16 variants
Market,
Limit,
Stop,
StopLimit,
TrailingStop,
Cabinet,
NonMarketable,
MarketOnClose,
Exercise,
TrailingStopLimit,
NetDebit,
NetCredit,
NetZero,
LimitOnClose,
UnknownSchwab,
Unknown(String),
}Expand description
How the order’s fill price is determined.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Market
Fill at the best available market price.
Limit
Fill at the specified price or better.
Stop
Becomes a market order once the stop is touched.
StopLimit
Becomes a limit order once the stop is touched.
TrailingStop
Stop that follows the market at a fixed offset.
Cabinet
Cabinet (zero-premium) options trade.
NonMarketable
Limit order priced away from the inside market.
MarketOnClose
Market order executed in the closing auction.
Exercise
Exercise of a long option.
TrailingStopLimit
Trailing stop that becomes a limit order once triggered.
NetDebit
Multi-leg order with a net debit price.
NetCredit
Multi-leg order with a net credit price.
NetZero
Multi-leg order with a net price of zero.
LimitOnClose
Limit order executed in the closing auction.
UnknownSchwab
Schwab sent the literal string "UNKNOWN".
Unknown(String)
A wire value Schwab sent that this crate does not recognize. The raw string is preserved so callers can still route on it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OrderType
impl<'de> Deserialize<'de> for OrderType
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>,
impl Eq for OrderType
impl StructuralPartialEq for OrderType
Auto Trait Implementations§
impl Freeze for OrderType
impl RefUnwindSafe for OrderType
impl Send for OrderType
impl Sync for OrderType
impl Unpin for OrderType
impl UnsafeUnpin for OrderType
impl UnwindSafe for OrderType
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
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
key and return true if they are equal.