dbn::enums

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

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

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

Available on non-crate feature gil-refs only.
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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn extract( obj: &'a Bound<'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

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_bound(py: Python<'_>) -> Bound<'_, PyType>

Returns the safe abstraction over the type object.
Source§

fn is_type_of_bound(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_bound(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 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> CloneToUninit for T
where T: Clone,

Source§

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

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>

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

impl<'py, T> FromPyObjectBound<'_, 'py> for T
where T: FromPyObject<'py>,

Source§

fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>

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<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> PyTypeCheck for T
where T: PyTypeInfo,

Source§

const NAME: &'static str = <T as PyTypeInfo>::NAME

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§

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