Skip to main content

OrderStatus

Struct OrderStatus 

Source
pub struct OrderStatus {
Show 42 fields pub account: Option<String>, pub alert_active: Option<AlertActivationRequestAlertActive>, pub allowed_duplicate_opposite: Option<bool>, pub available_chart_periods: Option<String>, pub average_price: Option<String>, pub bg_color: Option<String>, pub cannot_cancel_order: Option<bool>, pub child_order_type: Option<OrderStatusChildOrderType>, pub company_name: Option<String>, pub conid: Option<i32>, pub conidex: Option<String>, pub contract_description_1: Option<String>, pub cum_fill: Option<String>, pub currency: Option<String>, pub deactivate_order: Option<bool>, pub editable_fields: Option<String>, pub exit_strategy_chart_description: Option<String>, pub exit_strategy_display_price: Option<String>, pub exit_strategy_tool_availability: Option<String>, pub fg_color: Option<String>, pub listing_exchange: Option<String>, pub option_acct: Option<String>, pub order_ccp_status: Option<String>, pub order_clearing_account: Option<String>, pub order_description: Option<String>, pub order_description_with_contract: Option<String>, pub order_id: Option<i32>, pub order_not_editable: Option<bool>, pub order_status: Option<OrderStatusOrderStatus>, pub order_status_description: Option<String>, pub order_time: Option<String>, pub order_type: Option<String>, pub request_id: Option<String>, pub sec_type: Option<OrderStatusSecType>, pub server_id: Option<String>, pub side: Option<Side>, pub size: Option<String>, pub size_and_fills: Option<String>, pub sub_type: Option<String>, pub symbol: Option<String>, pub tif: Option<OrderStatusTif>, pub total_size: Option<String>,
}
Expand description

Object containing information about the status of an order ticket.

Fields§

§account: Option<String>

The account receiving executions against this order ticket.

§alert_active: Option<AlertActivationRequestAlertActive>

Indicates that an alert is active for the order ticket.

§allowed_duplicate_opposite: Option<bool>

Indicates whether an identical order on the opposite side can be placed.

§available_chart_periods: Option<String>

Internal use. Indicates chart periods available for the instrument.

§average_price: Option<String>

Average price of fills against the order, if any.

§bg_color: Option<String>

Internal use. IB’s UI background color in hex.

§cannot_cancel_order: Option<bool>

Indicates whether the order ticket can be cancelled.

§child_order_type: Option<OrderStatusChildOrderType>

Indicates if the order ticket is hedged, and if so, in what way. 0 = No hedge, A = Attached child hedge order, B = Beta/portfolio hedge

§company_name: Option<String>

Name of the company or asset associated with the instrument.

§conid: Option<i32>

Contract ID of the order’s instrument.

§conidex: Option<String>

Contract ID and routing destination in format 123456@EXCHANGE.

§contract_description_1: Option<String>

Human-readable description of the order’s instrument.

§cum_fill: Option<String>

Cumulative filled quantity of the instrument against the order ticket.

§currency: Option<String>

The currency in which the instrument trades and executions are conducted.

§deactivate_order: Option<bool>

Indicates whether the order ticket can be deactivated.

§editable_fields: Option<String>

Indicates which fields of the order ticket can be modified currently.

§exit_strategy_chart_description: Option<String>

Internal use. A string describing an active Client Portal exit strategy, or the result of its execution.

§exit_strategy_display_price: Option<String>

Internal use. The UI-displayed price associated with a Client Portal exist strategy.

§exit_strategy_tool_availability: Option<String>

Internal use. Indicates the availability of Client Portal exit strategy tool for the order.

§fg_color: Option<String>

Internal use. IB’s UI foreground color in hex.

§listing_exchange: Option<String>

Primary listing exchange of the order ticket’s instrument.

§option_acct: Option<String>

Internal use only.

§order_ccp_status: Option<String>

IB internal order status.

§order_clearing_account: Option<String>

The IB account to which the order ticket clears.

§order_description: Option<String>

Human-readable description of the status or current result of the order ticket, meant for UI presentation.

§order_description_with_contract: Option<String>

Human-readable description of the status or current result of the order ticket, meant for UI presentation. Includes instrument name.

§order_id: Option<i32>

The IB-assigned order identifier of the order, as provided in the request path.

§order_not_editable: Option<bool>

Indicates whether the order ticket can be modified.

§order_status: Option<OrderStatusOrderStatus>

Status of the order ticket.

§order_status_description: Option<String>

Human-readable rendering of the order’s status meant for presentation in UI.

§order_time: Option<String>

Time of the order’s submission in format YYMMDDhhmmss.

§order_type: Option<String>

The order’s IB order type.

§request_id: Option<String>

Internal use only. IB-assigned identifier for the status request.

§sec_type: Option<OrderStatusSecType>

IB asset class identifier.

§server_id: Option<String>

IB-assigned meta-identifier used to associate rejected and resubmitted orders following Server Prompts.

§side: Option<Side>

Side of the order ticket.

§size: Option<String>

Remaining unfilled size of the order ticket. Will reflect 0.0 if order is filled in full, cancelled, or otherwise resolved and no longer working.

§size_and_fills: Option<String>

A string reflecting the cumulative fills and total size of the order.

§sub_type: Option<String>

Internal use only.

§symbol: Option<String>

Symbol of the order ticket’s instrument.

§tif: Option<OrderStatusTif>

Time in force of the order ticket.

§total_size: Option<String>

The total size of the order ticket.

Trait Implementations§

Source§

impl Clone for OrderStatus

Source§

fn clone(&self) -> OrderStatus

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 OrderStatus

Source§

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

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

impl Default for OrderStatus

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for OrderStatus

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for OrderStatus

Source§

fn eq(&self, other: &OrderStatus) -> 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 Serialize for OrderStatus

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for OrderStatus

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. 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.

§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
§

impl<T> ServiceExt for T

§

fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>
where Self: Sized,

High level tracing that classifies responses using HTTP status codes. Read more
§

fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>
where Self: Sized,

High level tracing that classifies responses using gRPC headers. Read more
§

fn follow_redirects(self) -> FollowRedirect<Self>
where Self: Sized,

Follow redirect resposes using the Standard policy. Read more
§

fn set_request_id<M>( self, header_name: HeaderName, make_request_id: M, ) -> SetRequestId<Self, M>
where Self: Sized, M: MakeRequestId,

Add request id header and extension. Read more
§

fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>
where Self: Sized, M: MakeRequestId,

Add request id header and extension, using x-request-id as the header name. Read more
§

fn propagate_request_id( self, header_name: HeaderName, ) -> PropagateRequestId<Self>
where Self: Sized,

Propgate request ids from requests to responses. Read more
§

fn propagate_x_request_id(self) -> PropagateRequestId<Self>
where Self: Sized,

Propgate request ids from requests to responses, using x-request-id as the header name. Read more
§

fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>
where Self: Sized,

Intercept requests with over-sized payloads and convert them into 413 Payload Too Large responses. 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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,