#[repr(C)]pub enum OrderStatus {
Show 14 variants
Initialized = 1,
Denied = 2,
Emulated = 3,
Released = 4,
Submitted = 5,
Accepted = 6,
Rejected = 7,
Canceled = 8,
Expired = 9,
Triggered = 10,
PendingUpdate = 11,
PendingCancel = 12,
PartiallyFilled = 13,
Filled = 14,
}
Expand description
The status for a specific order.
An order is considered open for the following status:
ACCEPTED
TRIGGERED
PENDING_UPDATE
PENDING_CANCEL
PARTIALLY_FILLED
An order is considered in-flight for the following status:
SUBMITTED
PENDING_UPDATE
PENDING_CANCEL
An order is considered closed for the following status:
DENIED
REJECTED
CANCELED
EXPIRED
FILLED
Variants§
Initialized = 1
The order is initialized (instantiated) within the Nautilus system.
Denied = 2
The order was denied by the Nautilus system, either for being invalid, unprocessable or exceeding a risk limit.
Emulated = 3
The order became emulated by the Nautilus system in the OrderEmulator
component.
Released = 4
The order was released by the Nautilus system from the OrderEmulator
component.
Submitted = 5
The order was submitted by the Nautilus system to the external service or trading venue (awaiting acknowledgement).
Accepted = 6
The order was acknowledged by the trading venue as being received and valid (may now be working).
Rejected = 7
The order was rejected by the trading venue.
Canceled = 8
The order was canceled (closed/done).
Expired = 9
The order reached a GTD expiration (closed/done).
Triggered = 10
The order STOP price was triggered on a trading venue.
PendingUpdate = 11
The order is currently pending a request to modify on a trading venue.
PendingCancel = 12
The order is currently pending a request to cancel on a trading venue.
PartiallyFilled = 13
The order has been partially filled on a trading venue.
Filled = 14
The order has been completely filled on a trading venue (closed/done).
Implementations§
Source§impl OrderStatus
impl OrderStatus
Source§impl OrderStatus
impl OrderStatus
pub fn transition(&mut self, event: &OrderEventAny) -> Result<Self, OrderError>
Trait Implementations§
Source§impl AsRef<str> for OrderStatus
impl AsRef<str> for OrderStatus
Source§impl Clone for OrderStatus
impl Clone for OrderStatus
Source§fn clone(&self) -> OrderStatus
fn clone(&self) -> OrderStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OrderStatus
impl Debug for OrderStatus
Source§impl<'de> Deserialize<'de> for OrderStatus
impl<'de> Deserialize<'de> for OrderStatus
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 Display for OrderStatus
impl Display for OrderStatus
Source§impl FromStr for OrderStatus
impl FromStr for OrderStatus
Source§impl Hash for OrderStatus
impl Hash for OrderStatus
Source§impl IntoEnumIterator for OrderStatus
impl IntoEnumIterator for OrderStatus
type Iterator = OrderStatusIter
fn iter() -> OrderStatusIter ⓘ
Source§impl IntoPy<Py<PyAny>> for OrderStatus
impl IntoPy<Py<PyAny>> for OrderStatus
Source§impl Ord for OrderStatus
impl Ord for OrderStatus
Source§fn cmp(&self, other: &OrderStatus) -> Ordering
fn cmp(&self, other: &OrderStatus) -> 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 OrderStatus
impl PartialEq for OrderStatus
Source§impl PartialOrd for OrderStatus
impl PartialOrd for OrderStatus
Source§impl PyClass for OrderStatus
impl PyClass for OrderStatus
Source§impl PyClassImpl for OrderStatus
impl PyClassImpl for OrderStatus
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§type ThreadChecker = SendablePyClass<OrderStatus>
type ThreadChecker = SendablePyClass<OrderStatus>
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature<OrderStatus> for PyClassImplCollector<OrderStatus>
impl PyClassNewTextSignature<OrderStatus> for PyClassImplCollector<OrderStatus>
fn new_text_signature(self) -> Option<&'static str>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a OrderStatus
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a OrderStatus
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut OrderStatus
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut OrderStatus
Source§impl PyMethods<OrderStatus> for PyClassImplCollector<OrderStatus>
impl PyMethods<OrderStatus> for PyClassImplCollector<OrderStatus>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for OrderStatus
impl PyTypeInfo for OrderStatus
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
object
is an instance of this type or a subclass of this type.§fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
object
is an instance of this type.Source§impl Serialize for OrderStatus
impl Serialize for OrderStatus
Source§impl TryFrom<&str> for OrderStatus
impl TryFrom<&str> for OrderStatus
impl Copy for OrderStatus
impl Eq for OrderStatus
impl StructuralPartialEq for OrderStatus
Auto Trait Implementations§
impl Freeze for OrderStatus
impl RefUnwindSafe for OrderStatus
impl Send for OrderStatus
impl Sync for OrderStatus
impl Unpin for OrderStatus
impl UnwindSafe for OrderStatus
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> FromPyObject<'_> for Twhere
T: PyClass + Clone,
impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
§fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
§fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Source§impl<T> Separable for Twhere
T: Display,
impl<T> Separable for Twhere
T: Display,
Source§fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
SeparatorPolicy
. Read more