Skip to main content

SingleOrderSubmissionRequest

Struct SingleOrderSubmissionRequest 

Source
pub struct SingleOrderSubmissionRequest {
Show 29 fields pub acct_id: Option<String>, pub all_or_none: Option<bool>, pub aux_price: Option<f64>, pub c_oid: Option<String>, pub cash_qty: Option<f64>, pub conid: i32, pub conidex: Option<String>, pub ext_operator: Option<String>, pub is_ccy_conv: Option<bool>, pub is_single_group: Option<bool>, pub json_payload: Option<SingleOrderSubmissionRequestJsonPayload>, pub listing_exchange: Option<String>, pub manual_indicator: Option<bool>, pub order_type: String, pub outside_rth: Option<bool>, pub parent_id: Option<String>, pub price: Option<f64>, pub quantity: f64, pub referrer: Option<String>, pub sec_type: Option<String>, pub side: Side, pub strategy: Option<String>, pub strategy_parameters: Option<SingleOrderSubmissionRequestStrategyParameters>, pub tax_optimizer_id: Option<String>, pub ticker: Option<String>, pub tif: OrderStatusTif, pub trailing_amt: Option<f64>, pub trailing_type: Option<SingleOrderSubmissionRequestTrailingType>, pub use_adaptive: Option<bool>,
}
Expand description

A single order ticket.

Fields§

§acct_id: Option<String>

Receiving account of the order ticket.

§all_or_none: Option<bool>

Instructs IB to execute the order entirely or not execute at all.

§aux_price: Option<f64>

Additional price value used in certain order types, such as stop orders.

§c_oid: Option<String>

Client-configurable order identifier.

§cash_qty: Option<f64>

Quantity of currency used with cash quantity orders.

§conid: i32

IB contract ID of the instrument.

§conidex: Option<String>

Contract ID and routing destination together in format 123456@EXCHANGE.

§ext_operator: Option<String>

ExtOperator is used to identify external operator

§is_ccy_conv: Option<bool>

Indicates that a forex order is for currency conversion and should not entail a virtual forex position in the account, where applicable.

§is_single_group: Option<bool>

Indicates that all orders in the containing array are to be treated as an OCA group.

§json_payload: Option<SingleOrderSubmissionRequestJsonPayload>§listing_exchange: Option<String>

The listing exchange of the instrument.

§manual_indicator: Option<bool>

For all orders for US Futures products, clients must submit this flag to indicate whether the order was originated manually (by a natural person) or automatically (by an automated trading system transmitting orders without human intervention). Submit a True value to indicate a manually originated order, and submit a False value to indicate an automated order. Orders for USFUT products that do not include this field will be rejected.

§order_type: String

IB order type identifier.

§outside_rth: Option<bool>

Instructs IB to permit the order to execute outside of regular trading hours.

§parent_id: Option<String>

If the order ticket is a child order in a bracket, the parentId field must be set equal to the cOID provided for the parent order.

§price: Option<f64>

Price of the order ticket, where applicable.

§quantity: f64

Quantity of the order ticket in units of the instrument.

§referrer: Option<String>

IB internal identifier for order entry UI element.

§sec_type: Option<String>

IB asset class identifier.

§side: Side

Side of the order ticket.

§strategy: Option<String>

The name of an execution algorithm.

§strategy_parameters: Option<SingleOrderSubmissionRequestStrategyParameters>

Parameters governing the selected algorithm, if applicable.

§tax_optimizer_id: Option<String>

Identifies set of tax lots selected, for gains and losses management.

§ticker: Option<String>

Ticker symbol of the instrument.

§tif: OrderStatusTif

Time in force of the order ticket.

§trailing_amt: Option<f64>

Offset used with Trailing orders.

§trailing_type: Option<SingleOrderSubmissionRequestTrailingType>

Specifies the type of trailing used with a Trailing order.

§use_adaptive: Option<bool>

Instructs IB to apply the Price Management Algo.

Trait Implementations§

Source§

impl Clone for SingleOrderSubmissionRequest

Source§

fn clone(&self) -> SingleOrderSubmissionRequest

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 SingleOrderSubmissionRequest

Source§

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

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

impl Default for SingleOrderSubmissionRequest

Source§

fn default() -> Self

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

impl PartialEq for SingleOrderSubmissionRequest

Source§

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

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 Validate for SingleOrderSubmissionRequest

Source§

fn validate(&self) -> Result<(), ValidationErrors>

Source§

impl<'v_a> ValidateArgs<'v_a> for SingleOrderSubmissionRequest

Source§

type Args = ()

Source§

fn validate_with_args(&self, args: Self::Args) -> Result<(), ValidationErrors>

Source§

impl StructuralPartialEq for SingleOrderSubmissionRequest

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