#[repr(i32)]pub enum TradeStatus {
Show 38 variants
UNKNOWN = -1,
NO_REGISTER_QUOTE = 0,
CLEAN = 101,
OPEN_BID = 102,
MORNING_CLOSING = 103,
TRADING = 105,
NOON_CLOSING = 106,
CLOSE_BID = 107,
CLOSING = 108,
DARK_WAIT = 110,
DARK_TRADING = 111,
DARK_CLOSING = 112,
AFTER_FIX = 120,
HALF_CLOSING = 121,
NOT_OPENED = 122,
REALTIME_QUOTE = 123,
US_PREV = 201,
US_TRADING = 202,
US_AFTER = 203,
US_CLOSING = 204,
US_STOP = 205,
US_CLEAN = 206,
US_NIGHT = 207,
US_PREV_MARKET_CLEAN = 209,
US_AFTER_MARKET_CLEAN = 210,
REFRESH = 1_000,
DELIST = 1_001,
PREPARE = 1_002,
CODE_CHANGE = 1_003,
STOP = 1_004,
WILL_OPEN = 1_005,
COMMON_SUSPEND = 1_006,
EXPIRE = 1_007,
NO_QUOTE = 1_008,
UNITED = 1_009,
TRADING_HALT = 1_010,
WAIT_LISTING = 1_011,
FUSE = 2_001,
}Expand description
Market trading status code.
Variants§
UNKNOWN = -1
Unknown status
NO_REGISTER_QUOTE = 0
Quote is not registered
CLEAN = 101
Clearing before the market opens.
OPEN_BID = 102
Opening auction.
MORNING_CLOSING = 103
Morning break, currently used by VIX indexes.
TRADING = 105
Regular trading.
NOON_CLOSING = 106
Midday break.
CLOSE_BID = 107
Closing auction.
CLOSING = 108
Market closed.
DARK_WAIT = 110
Dark trading waiting to open.
DARK_TRADING = 111
Dark trading.
DARK_CLOSING = 112
Dark trading closed.
AFTER_FIX = 120
After-hours fixed-price trading.
HALF_CLOSING = 121
Half-day market closed. Defined by the market status table but currently unused.
NOT_OPENED = 122
Not opened because the exchange is waiting to open under special conditions.
REALTIME_QUOTE = 123
Temporary intraday break. The historical variant name is kept for compatibility.
US_PREV = 201
US pre-market.
US_TRADING = 202
US regular trading.
US_AFTER = 203
US post-market.
US_CLOSING = 204
US closed.
US_STOP = 205
US halted.
US_CLEAN = 206
US clearing plus pre-market.
US_NIGHT = 207
US overnight trading.
US_PREV_MARKET_CLEAN = 209
US pre-market clearing alias returned by the quote engine.
US_AFTER_MARKET_CLEAN = 210
US post-market clearing alias returned by the quote engine.
REFRESH = 1_000
Stock refresh. Deprecated in the status definition.
DELIST = 1_001
Delisted.
PREPARE = 1_002
Preparing to list.
CODE_CHANGE = 1_003
Code changed.
STOP = 1_004
Halted.
WILL_OPEN = 1_005
Waiting to open, typically for a US IPO auction.
COMMON_SUSPEND = 1_006
Split or merge suspended.
EXPIRE = 1_007
Expired.
NO_QUOTE = 1_008
No quote data.
UNITED = 1_009
Not listed. The historical variant name is kept for compatibility.
TRADING_HALT = 1_010
Terminated trading, usually for warrants.
WAIT_LISTING = 1_011
Waiting to list, usually for new warrants.
FUSE = 2_001
Fuse.
Implementations§
Source§impl TradeStatus
impl TradeStatus
Source§impl TradeStatus
impl TradeStatus
Sourcepub fn from_isize(value: isize) -> TradeStatus
pub fn from_isize(value: isize) -> TradeStatus
Converts an isize value to a market trading status.
Sourcepub fn is_us_market(self) -> bool
pub fn is_us_market(self) -> bool
Returns whether this is a US market status.
Sourcepub fn is_us_pre_post(self) -> bool
pub fn is_us_pre_post(self) -> bool
Returns whether this is a US pre/post-market status.
Sourcepub fn is_us_night(self) -> bool
pub fn is_us_night(self) -> bool
Returns whether this is a US overnight status.
Sourcepub fn is_us_closing(self) -> bool
pub fn is_us_closing(self) -> bool
Returns whether this is a US closed status.
Sourcepub fn is_closing(self) -> bool
pub fn is_closing(self) -> bool
Returns whether this is a closed status.
Sourcepub fn is_us_prev(self) -> bool
pub fn is_us_prev(self) -> bool
Returns whether this is a US pre-market status.
Sourcepub fn is_us_after(self) -> bool
pub fn is_us_after(self) -> bool
Returns whether this is a US post-market status.
Sourcepub fn is_trading(self) -> bool
pub fn is_trading(self) -> bool
Returns whether this is a trading status.
Sourcepub fn allow_trading(self) -> bool
pub fn allow_trading(self) -> bool
Returns whether this status allows trading.
Sourcepub fn is_special(self) -> bool
pub fn is_special(self) -> bool
Returns whether this is a special non-regular status.
Trait Implementations§
Source§impl Clone for TradeStatus
impl Clone for TradeStatus
Source§fn clone(&self) -> TradeStatus
fn clone(&self) -> TradeStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TradeStatus
impl Debug for TradeStatus
Source§impl Default for TradeStatus
impl Default for TradeStatus
Source§fn default() -> TradeStatus
fn default() -> TradeStatus
Source§impl<'de> Deserialize<'de> for TradeStatus
impl<'de> Deserialize<'de> for TradeStatus
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>,
Source§impl<'_derivative_strum> From<&'_derivative_strum TradeStatus> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum TradeStatus> for &'static str
Source§fn from(x: &'_derivative_strum TradeStatus) -> &'static str
fn from(x: &'_derivative_strum TradeStatus) -> &'static str
Source§impl From<TradeStatus> for &'static str
impl From<TradeStatus> for &'static str
Source§fn from(x: TradeStatus) -> &'static str
fn from(x: TradeStatus) -> &'static str
Source§impl From<i32> for TradeStatus
impl From<i32> for TradeStatus
Source§impl Hash for TradeStatus
impl Hash for TradeStatus
Source§impl Ord for TradeStatus
impl Ord for TradeStatus
Source§fn cmp(&self, other: &TradeStatus) -> Ordering
fn cmp(&self, other: &TradeStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TradeStatus
impl PartialEq for TradeStatus
Source§impl PartialOrd for TradeStatus
impl PartialOrd for TradeStatus
Source§impl Serialize for TradeStatus
impl Serialize for TradeStatus
impl Copy for TradeStatus
impl Eq for TradeStatus
impl StructuralPartialEq for TradeStatus
Auto Trait Implementations§
impl Freeze for TradeStatus
impl RefUnwindSafe for TradeStatus
impl Send for TradeStatus
impl Sync for TradeStatus
impl Unpin for TradeStatus
impl UnsafeUnpin for TradeStatus
impl UnwindSafe for TradeStatus
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more