Enum dbn::enums::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 relevants 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 the 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 copy 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 IntoPy<Py<PyAny>> for StatusReason

source§

fn into_py(self, py: Python<'_>) -> PyObject

Performs the conversion.
source§

impl PartialEq for StatusReason

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PyClass for StatusReason

§

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)]
§

type BaseType = PyAny

Base class
§

type ThreadChecker = SendablePyClass<StatusReason>

This handles following two situations: Read more
§

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

Immutable or mutable
§

type Dict = PyClassDummySlot

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

type WeakRef = PyClassDummySlot

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

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 doc(py: Python<'_>) -> PyResult<&'static CStr>

Rendered class doc
source§

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

source§

fn dict_offset() -> Option<isize>

source§

fn weaklist_offset() -> Option<isize>

source§

impl PyClassNewTextSignature<StatusReason> for PyClassImplCollector<StatusReason>

Available on crate feature python only.
source§

fn new_text_signature(self) -> Option<&'static str>

source§

impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a StatusReason

§

type Holder = Option<PyRef<'py, StatusReason>>

source§

fn extract(obj: &'py PyAny, holder: &'a mut Self::Holder) -> PyResult<Self>

source§

impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut StatusReason

§

type Holder = Option<PyRefMut<'py, StatusReason>>

source§

fn extract(obj: &'py PyAny, holder: &'a mut Self::Holder) -> PyResult<Self>

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

§

type AsRefTarget = PyCell<StatusReason>

Utility type to make Py::as_ref work.
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<'_>) -> &PyType

Returns the safe abstraction over the type object.
source§

fn is_type_of(object: &PyAny) -> bool

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

fn is_exact_type_of(object: &PyAny) -> bool

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

impl TryFrom<u16> for StatusReason

§

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

§

type Primitive = u16

§

type Error = TryFromPrimitiveError<StatusReason>

source§

const NAME: &'static str = "StatusReason"

source§

fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>

source§

impl Copy for StatusReason

source§

impl Eq 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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn extract(obj: &'a PyAny) -> Result<T, PyErr>

Extracts Self from the source PyObject.
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<T> PyErrArguments for T
where T: IntoPy<Py<PyAny>> + Send + Sync,

source§

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

Arguments for exception
source§

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

§

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>,

§

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>,

§

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<T> Ungil for T
where T: Send,