Skip to main content

OrderListPlaceOpocoParamsBuilder

Struct OrderListPlaceOpocoParamsBuilder 

Source
pub struct OrderListPlaceOpocoParamsBuilder { /* private fields */ }
Expand description

Implementations§

Source§

impl OrderListPlaceOpocoParamsBuilder

Source

pub fn symbol<VALUE: Into<String>>(self, value: VALUE) -> Self

The symbol parameter.

This field is **required.

Source

pub fn working_type<VALUE: Into<OrderListPlaceOpocoWorkingTypeEnum>>( self, value: VALUE, ) -> Self

The working_type parameter.

This field is **required.

Source

pub fn working_side<VALUE: Into<OrderListPlaceOpocoWorkingSideEnum>>( self, value: VALUE, ) -> Self

Supported values: Order Side

This field is **required.

Source

pub fn working_price<VALUE: Into<Decimal>>(self, value: VALUE) -> Self

Price for the working order.

This field is **required.

Source

pub fn working_quantity<VALUE: Into<Decimal>>(self, value: VALUE) -> Self

Sets the quantity for the working order.

This field is **required.

Source

pub fn pending_side<VALUE: Into<OrderListPlaceOpocoPendingSideEnum>>( self, value: VALUE, ) -> Self

Supported values: Order Side

This field is **required.

Source

pub fn pending_above_type<VALUE: Into<OrderListPlaceOpocoPendingAboveTypeEnum>>( self, value: VALUE, ) -> Self

Supported values: STOP_LOSS_LIMIT, STOP_LOSS, LIMIT_MAKER, TAKE_PROFIT, TAKE_PROFIT_LIMIT

This field is **required.

Source

pub fn id<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self

Client-generated request identifier.

This field is **optional.

Source

pub fn list_client_order_id<VALUE: Into<Option<String>>>( self, value: VALUE, ) -> Self

Arbitrary unique ID among open order lists. Automatically generated if not sent. A new order list with the same listClientOrderId is accepted only when the previous one is filled or completely expired. listClientOrderId is distinct from the workingClientOrderId and the pendingClientOrderId.

This field is **optional.

Source

pub fn new_order_resp_type<VALUE: Into<Option<OrderListPlaceOpocoNewOrderRespTypeEnum>>>( self, value: VALUE, ) -> Self

Format of the JSON response. Supported values: Order Response Type

This field is **optional.

Source

pub fn self_trade_prevention_mode<VALUE: Into<Option<OrderListPlaceOpocoSelfTradePreventionModeEnum>>>( self, value: VALUE, ) -> Self

The allowed enums is dependent on what is configured on the symbol. Supported values: STP Modes

This field is **optional.

Source

pub fn working_client_order_id<VALUE: Into<Option<String>>>( self, value: VALUE, ) -> Self

Arbitrary unique ID among open orders for the working order. Automatically generated if not sent.

This field is **optional.

Source

pub fn working_iceberg_qty<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self

This can only be used if workingTimeInForce is GTC, or if workingType is LIMIT_MAKER.

This field is **optional.

Source

pub fn working_time_in_force<VALUE: Into<Option<OrderListPlaceOpocoWorkingTimeInForceEnum>>>( self, value: VALUE, ) -> Self

Supported values: Time In Force

This field is **optional.

Source

pub fn working_strategy_id<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self

Arbitrary numeric value identifying the working order within an order strategy.

This field is **optional.

Source

pub fn working_strategy_type<VALUE: Into<Option<i32>>>( self, value: VALUE, ) -> Self

Arbitrary numeric value identifying the working order strategy. Values smaller than 1000000 are reserved and cannot be used.

This field is **optional.

Source

pub fn working_peg_price_type<VALUE: Into<Option<OrderListPlaceOpocoWorkingPegPriceTypeEnum>>>( self, value: VALUE, ) -> Self

See Pegged Orders

This field is **optional.

Source

pub fn working_peg_offset_type<VALUE: Into<Option<OrderListPlaceOpocoWorkingPegOffsetTypeEnum>>>( self, value: VALUE, ) -> Self

See Pegged Orders

This field is **optional.

Source

pub fn working_peg_offset_value<VALUE: Into<Option<i32>>>( self, value: VALUE, ) -> Self

Price level for pegging (max: 100). See Pegged Orders

This field is **optional.

Source

pub fn pending_above_client_order_id<VALUE: Into<Option<String>>>( self, value: VALUE, ) -> Self

Arbitrary unique ID among open orders for the pending above order. Automatically generated if not sent.

This field is **optional.

Source

pub fn pending_above_price<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self

Can be used if pendingAboveType is STOP_LOSS_LIMIT, LIMIT_MAKER, or TAKE_PROFIT_LIMIT to specify the limit price.

This field is **optional.

Source

pub fn pending_above_stop_price<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self

Can be used if pendingAboveType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT.

This field is **optional.

Source

pub fn pending_above_trailing_delta<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self

See Trailing Stop order FAQ

This field is **optional.

Source

pub fn pending_above_iceberg_qty<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self

This can only be used if pendingAboveTimeInForce is GTC or pendingAboveType is LIMIT_MAKER.

This field is **optional.

Source

pub fn pending_above_time_in_force<VALUE: Into<Option<OrderListPlaceOpocoPendingAboveTimeInForceEnum>>>( self, value: VALUE, ) -> Self

Required if pendingAboveType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.

This field is **optional.

Source

pub fn pending_above_strategy_id<VALUE: Into<Option<i64>>>( self, value: VALUE, ) -> Self

Arbitrary numeric value identifying the pending above order within an order strategy.

This field is **optional.

Source

pub fn pending_above_strategy_type<VALUE: Into<Option<i32>>>( self, value: VALUE, ) -> Self

Arbitrary numeric value identifying the pending above order strategy. Values smaller than 1000000 are reserved and cannot be used.

This field is **optional.

Source

pub fn pending_above_peg_price_type<VALUE: Into<Option<OrderListPlaceOpocoPendingAbovePegPriceTypeEnum>>>( self, value: VALUE, ) -> Self

See Pegged Orders

This field is **optional.

Source

pub fn pending_above_peg_offset_type<VALUE: Into<Option<OrderListPlaceOpocoPendingAbovePegOffsetTypeEnum>>>( self, value: VALUE, ) -> Self

See Pegged Orders

This field is **optional.

Source

pub fn pending_above_peg_offset_value<VALUE: Into<Option<i32>>>( self, value: VALUE, ) -> Self

Price level for pegging (max: 100). See Pegged Orders

This field is **optional.

Source

pub fn pending_below_type<VALUE: Into<Option<OrderListPlaceOpocoPendingBelowTypeEnum>>>( self, value: VALUE, ) -> Self

Supported values: STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT

This field is **optional.

Source

pub fn pending_below_client_order_id<VALUE: Into<Option<String>>>( self, value: VALUE, ) -> Self

Arbitrary unique ID among open orders for the pending below order. Automatically generated if not sent.

This field is **optional.

Source

pub fn pending_below_price<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self

Can be used if pendingBelowType is STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT to specify the limit price.

This field is **optional.

Source

pub fn pending_below_stop_price<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self

Can be used if pendingBelowType is STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT. Either pendingBelowStopPrice or pendingBelowTrailingDelta or both, must be specified.

This field is **optional.

Source

pub fn pending_below_trailing_delta<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self

See Trailing Stop order FAQ

This field is **optional.

Source

pub fn pending_below_iceberg_qty<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self

This can only be used if pendingBelowTimeInForce is GTC or pendingBelowType is LIMIT_MAKER.

This field is **optional.

Source

pub fn pending_below_time_in_force<VALUE: Into<Option<OrderListPlaceOpocoPendingBelowTimeInForceEnum>>>( self, value: VALUE, ) -> Self

Supported values: Time In Force

This field is **optional.

Source

pub fn pending_below_strategy_id<VALUE: Into<Option<i64>>>( self, value: VALUE, ) -> Self

Arbitrary numeric value identifying the pending below order within an order strategy.

This field is **optional.

Source

pub fn pending_below_strategy_type<VALUE: Into<Option<i32>>>( self, value: VALUE, ) -> Self

Arbitrary numeric value identifying the pending below order strategy. Values smaller than 1000000 are reserved and cannot be used.

This field is **optional.

Source

pub fn pending_below_peg_price_type<VALUE: Into<Option<OrderListPlaceOpocoPendingBelowPegPriceTypeEnum>>>( self, value: VALUE, ) -> Self

See Pegged Orders

This field is **optional.

Source

pub fn pending_below_peg_offset_type<VALUE: Into<Option<OrderListPlaceOpocoPendingBelowPegOffsetTypeEnum>>>( self, value: VALUE, ) -> Self

The pending_below_peg_offset_type parameter.

This field is **optional.

Source

pub fn pending_below_peg_offset_value<VALUE: Into<Option<i32>>>( self, value: VALUE, ) -> Self

The pending_below_peg_offset_value parameter.

This field is **optional.

Source

pub fn recv_window<VALUE: Into<Option<Decimal>>>(self, value: VALUE) -> Self

Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.

This field is **optional.

Source

pub fn build(self) -> Result<OrderListPlaceOpocoParams, ParamBuildError>

Builds a new OrderListPlaceOpocoParams.

§Errors

If a required field has not been initialized.

Trait Implementations§

Source§

impl Default for OrderListPlaceOpocoParamsBuilder

Source§

fn default() -> Self

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

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

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.

Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + 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
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + 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
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

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