Skip to main content

StatusReason

Enum StatusReason 

Source
#[non_exhaustive]
#[repr(u16)]
pub enum StatusReason {
Show 34 variants None = 0, Scheduled = 1, SurveillanceIntervention = 2, MarketEvent = 3, InstrumentActivation = 4, InstrumentExpiration = 5, RecoveryInProcess = 6, Regulatory = 10, Administrative = 11, NonCompliance = 12, FilingsNotCurrent = 13, SecTradingSuspension = 14, NewIssue = 15, IssueAvailable = 16, IssuesReviewed = 17, FilingReqsSatisfied = 18, NewsPending = 30, NewsReleased = 31, NewsAndResumptionTimes = 32, NewsNotForthcoming = 33, OrderImbalance = 40, LuldPause = 50, Operational = 60, AdditionalInformationRequested = 70, MergerEffective = 80, Etf = 90, CorporateAction = 100, NewSecurityOffering = 110, MarketWideHaltLevel1 = 120, MarketWideHaltLevel2 = 121, MarketWideHaltLevel3 = 122, MarketWideHaltCarryover = 123, MarketWideHaltResumption = 124, QuotationNotAvailable = 130,
}
Expand description

The secondary enum for a StatusMsg update, explains the cause of a halt or other change in action.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

None = 0

No reason is given.

§

Scheduled = 1

The change in status occurred as scheduled.

§

SurveillanceIntervention = 2

The instrument stopped due to a market surveillance intervention.

§

MarketEvent = 3

The status changed due to activity in the market.

§

InstrumentActivation = 4

The derivative instrument began trading.

§

InstrumentExpiration = 5

The derivative instrument expired.

§

RecoveryInProcess = 6

Recovery in progress.

§

Regulatory = 10

The status change was caused by a regulatory action.

§

Administrative = 11

The status change was caused by an administrative action.

§

NonCompliance = 12

The status change was caused by the issuer not being compliance with regulatory requirements.

§

FilingsNotCurrent = 13

Trading halted because the issuer’s filings are not current.

§

SecTradingSuspension = 14

Trading halted due to an SEC trading suspension.

§

NewIssue = 15

The status changed because a new issue is available.

§

IssueAvailable = 16

The status changed because an issue is available.

§

IssuesReviewed = 17

The status changed because the issue(s) were reviewed.

§

FilingReqsSatisfied = 18

The status changed because the filing requirements were satisfied.

§

NewsPending = 30

Relevant news is pending.

§

NewsReleased = 31

Relevant news was released.

§

NewsAndResumptionTimes = 32

The news has been fully disseminated and times are available for the resumption in quoting and trading.

§

NewsNotForthcoming = 33

The relevant news was not forthcoming.

§

OrderImbalance = 40

Halted for order imbalance.

§

LuldPause = 50

The instrument hit limit up or limit down.

§

Operational = 60

An operational issue occurred with the venue.

§

AdditionalInformationRequested = 70

The status changed until the exchange receives additional information.

§

MergerEffective = 80

Trading halted due to merger becoming effective.

§

Etf = 90

Trading is halted in an ETF due to conditions with the component securities.

§

CorporateAction = 100

Trading is halted for a corporate action.

§

NewSecurityOffering = 110

Trading is halted because the instrument is a new offering.

§

MarketWideHaltLevel1 = 120

Halted due to the market-wide circuit breaker level 1.

§

MarketWideHaltLevel2 = 121

Halted due to the market-wide circuit breaker level 2.

§

MarketWideHaltLevel3 = 122

Halted due to the market-wide circuit breaker level 3.

§

MarketWideHaltCarryover = 123

Halted due to the carryover of a market-wide circuit breaker from the previous trading day.

§

MarketWideHaltResumption = 124

Resumption due to the end of a market-wide circuit breaker halt.

§

QuotationNotAvailable = 130

Halted because quotation is not available.

Trait Implementations§

Source§

impl Clone for StatusReason

Source§

fn clone(&self) -> StatusReason

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StatusReason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for StatusReason

Source§

fn default() -> StatusReason

Returns the “default value” for a type. Read more
Source§

impl From<StatusReason> for u16

Source§

fn from(enum_value: StatusReason) -> Self

Converts to this type from the input type.
Source§

impl Hash for StatusReason

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoEnumIterator for StatusReason

Source§

impl<'py> IntoPyObject<'py> for StatusReason

Source§

type Target = StatusReason

The Python output type
Source§

type Output = Bound<'py, <StatusReason as IntoPyObject<'py>>::Target>

The smart pointer type to use. Read more
Source§

type Error = PyErr

The type returned in the event of a conversion error.
Source§

fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>

Performs the conversion.
Source§

impl Ord for StatusReason

Source§

fn cmp(&self, other: &StatusReason) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for StatusReason

Source§

fn eq(&self, other: &StatusReason) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for StatusReason

Source§

fn partial_cmp(&self, other: &StatusReason) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PyClass for StatusReason

Source§

type Frozen = False

Whether the pyclass is frozen. Read more
Source§

impl PyClassImpl for StatusReason

Source§

const IS_BASETYPE: bool = false

#[pyclass(subclass)]
Source§

const IS_SUBCLASS: bool = false

#[pyclass(extends=…)]
Source§

const IS_MAPPING: bool = false

#[pyclass(mapping)]
Source§

const IS_SEQUENCE: bool = false

#[pyclass(sequence)]
Source§

const IS_IMMUTABLE_TYPE: bool = false

#[pyclass(immutable_type)]
Source§

const RAW_DOC: &'static CStr = /// The secondary enum for a [`StatusMsg`](crate::record::StatusMsg) update, explains /// the cause of a halt or other change in `action`.

Docstring for the class provided on the struct or enum. Read more
Source§

const DOC: &'static CStr

Fully rendered class doc, including the text_signature if a constructor is defined. Read more
Source§

type BaseType = PyAny

Base class
Source§

type ThreadChecker = SendablePyClass<StatusReason>

This handles following two situations: Read more
Source§

type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild

Immutable or mutable
Source§

type Dict = PyClassDummySlot

Specify this class has #[pyclass(dict)] or not.
Source§

type WeakRef = PyClassDummySlot

Specify this class has #[pyclass(weakref)] or not.
Source§

type BaseNativeType = PyAny

The closest native ancestor. This is PyAny by default, and when you declare #[pyclass(extends=PyDict)], it’s PyDict.
Source§

fn items_iter() -> PyClassItemsIter

Source§

fn lazy_type_object() -> &'static LazyTypeObject<Self>

Source§

fn dict_offset() -> Option<isize>

Source§

fn weaklist_offset() -> Option<isize>

Source§

impl PyClassNewTextSignature for StatusReason

Available on crate feature python only.
Source§

const TEXT_SIGNATURE: &'static str = "(value)"

Source§

impl PyClass__eq__SlotFragment<StatusReason> for PyClassImplCollector<StatusReason>

Available on crate feature python only.
Source§

unsafe fn __eq__( self, py: Python<'_>, _raw_slf: *mut PyObject, arg0: *mut PyObject, ) -> PyResult<*mut PyObject>

Safety: _slf and _other must be valid non-null Python objects Read more
Source§

impl PyMethods<StatusReason> for PyClassImplCollector<StatusReason>

Available on crate feature python only.
Source§

fn py_methods(self) -> &'static PyClassItems

Source§

impl PyTypeInfo for StatusReason

Source§

const NAME: &'static str = "StatusReason"

Class name.
Source§

const MODULE: Option<&'static str>

Module name, if any.
Source§

fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject

Returns the PyTypeObject instance for this type.
Source§

fn type_object(py: Python<'_>) -> Bound<'_, PyType>

Returns the safe abstraction over the type object.
Source§

fn is_type_of(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of this type or a subclass of this type.
Source§

fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of this type.
Source§

impl TryFrom<u16> for StatusReason

Source§

type Error = TryFromPrimitiveError<StatusReason>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for StatusReason

Source§

impl WritePyRepr for StatusReason

Available on crate feature python only.
Source§

fn write_py_repr(&self, s: &mut String) -> Result

Writes a Python-style string representation to s. Read more
Source§

const SHOULD_FLATTEN: bool = false

Whether this type’s fields should be flattened into the parent repr.
Source§

impl Copy for StatusReason

Source§

impl Eq for StatusReason

Source§

impl ExtractPyClassWithClone for StatusReason

Source§

impl StructuralPartialEq for StatusReason

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'a, 'py, T> FromPyObject<'a, 'py> for T
where T: PyClass + Clone + ExtractPyClassWithClone,

Source§

type Error = PyClassGuardError<'a, 'py>

The type returned in the event of a conversion error. Read more
Source§

fn extract( obj: Borrowed<'a, 'py, PyAny>, ) -> Result<T, <T as FromPyObject<'a, 'py>>::Error>

Extracts Self from the bound smart pointer obj. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'py, T> IntoPyObjectExt<'py> for T
where T: IntoPyObject<'py>,

Source§

fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>

Converts self into an owned Python object, dropping type information.
Source§

fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>

Converts self into an owned Python object, dropping type information and unbinding it from the 'py lifetime.
Source§

fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>

Converts self into a Python object. Read more
Source§

impl<T> PyErrArguments for T
where T: for<'py> IntoPyObject<'py> + Send + Sync,

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Arguments for exception
Source§

impl<T> PyTypeCheck for T
where T: PyTypeInfo,

Source§

const NAME: &'static str = T::NAME

👎Deprecated since 0.27.0:

Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.

Name of self. This is used in error messages, for example.
Source§

fn type_check(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of Self, which may include a subtype. Read more
Source§

fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>

Returns the expected type as a possible argument for the isinstance and issubclass function. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<'py, T> FromPyObjectOwned<'py> for T
where T: for<'a> FromPyObject<'a, 'py>,

Source§

impl<T> Ungil for T
where T: Send,