pub struct OrderListPlaceOpocoParamsBuilder { /* private fields */ }Expand description
Builder for OrderListPlaceOpocoParams.
Implementations§
Source§impl OrderListPlaceOpocoParamsBuilder
impl OrderListPlaceOpocoParamsBuilder
Sourcepub fn symbol<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn symbol<VALUE: Into<String>>(self, value: VALUE) -> Self
The symbol parameter.
This field is **required.
Sourcepub fn working_type<VALUE: Into<OrderListPlaceOpocoWorkingTypeEnum>>(
self,
value: VALUE,
) -> Self
pub fn working_type<VALUE: Into<OrderListPlaceOpocoWorkingTypeEnum>>( self, value: VALUE, ) -> Self
The working_type parameter.
This field is **required.
Sourcepub fn working_side<VALUE: Into<OrderListPlaceOpocoWorkingSideEnum>>(
self,
value: VALUE,
) -> Self
pub fn working_side<VALUE: Into<OrderListPlaceOpocoWorkingSideEnum>>( self, value: VALUE, ) -> Self
The working_side parameter.
This field is **required.
Sourcepub fn working_price<VALUE: Into<Decimal>>(self, value: VALUE) -> Self
pub fn working_price<VALUE: Into<Decimal>>(self, value: VALUE) -> Self
The working_price parameter.
This field is **required.
Sourcepub fn working_quantity<VALUE: Into<Decimal>>(self, value: VALUE) -> Self
pub fn working_quantity<VALUE: Into<Decimal>>(self, value: VALUE) -> Self
Sets the quantity for the working order.
This field is **required.
Sourcepub fn pending_side<VALUE: Into<OrderListPlaceOpocoPendingSideEnum>>(
self,
value: VALUE,
) -> Self
pub fn pending_side<VALUE: Into<OrderListPlaceOpocoPendingSideEnum>>( self, value: VALUE, ) -> Self
The pending_side parameter.
This field is **required.
Sourcepub fn pending_above_type<VALUE: Into<OrderListPlaceOpocoPendingAboveTypeEnum>>(
self,
value: VALUE,
) -> Self
pub fn pending_above_type<VALUE: Into<OrderListPlaceOpocoPendingAboveTypeEnum>>( self, value: VALUE, ) -> Self
The pending_above_type parameter.
This field is **required.
Sourcepub fn id<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn id<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
Unique WebSocket request ID.
This field is **optional.
Sourcepub fn list_client_order_id<VALUE: Into<Option<String>>>(
self,
value: VALUE,
) -> Self
pub fn list_client_order_id<VALUE: Into<Option<String>>>( self, value: VALUE, ) -> Self
The list_client_order_id parameter.
This field is **optional.
Sourcepub fn new_order_resp_type<VALUE: Into<Option<OrderListPlaceOpocoNewOrderRespTypeEnum>>>(
self,
value: VALUE,
) -> Self
pub fn new_order_resp_type<VALUE: Into<Option<OrderListPlaceOpocoNewOrderRespTypeEnum>>>( self, value: VALUE, ) -> Self
The new_order_resp_type parameter.
This field is **optional.
Sourcepub fn self_trade_prevention_mode<VALUE: Into<Option<OrderListPlaceOpocoSelfTradePreventionModeEnum>>>(
self,
value: VALUE,
) -> Self
pub fn self_trade_prevention_mode<VALUE: Into<Option<OrderListPlaceOpocoSelfTradePreventionModeEnum>>>( self, value: VALUE, ) -> Self
The self_trade_prevention_mode parameter.
This field is **optional.
Sourcepub fn working_client_order_id<VALUE: Into<Option<String>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn working_iceberg_qty<VALUE: Into<Option<Decimal>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn working_time_in_force<VALUE: Into<Option<OrderListPlaceOpocoWorkingTimeInForceEnum>>>(
self,
value: VALUE,
) -> Self
pub fn working_time_in_force<VALUE: Into<Option<OrderListPlaceOpocoWorkingTimeInForceEnum>>>( self, value: VALUE, ) -> Self
The working_time_in_force parameter.
This field is **optional.
Sourcepub fn working_strategy_id<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
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.
Sourcepub fn working_strategy_type<VALUE: Into<Option<i32>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn working_peg_price_type<VALUE: Into<Option<OrderListPlaceOpocoWorkingPegPriceTypeEnum>>>(
self,
value: VALUE,
) -> Self
pub fn working_peg_price_type<VALUE: Into<Option<OrderListPlaceOpocoWorkingPegPriceTypeEnum>>>( self, value: VALUE, ) -> Self
The working_peg_price_type parameter.
This field is **optional.
Sourcepub fn working_peg_offset_type<VALUE: Into<Option<OrderListPlaceOpocoWorkingPegOffsetTypeEnum>>>(
self,
value: VALUE,
) -> Self
pub fn working_peg_offset_type<VALUE: Into<Option<OrderListPlaceOpocoWorkingPegOffsetTypeEnum>>>( self, value: VALUE, ) -> Self
The working_peg_offset_type parameter.
This field is **optional.
Sourcepub fn working_peg_offset_value<VALUE: Into<Option<i32>>>(
self,
value: VALUE,
) -> Self
pub fn working_peg_offset_value<VALUE: Into<Option<i32>>>( self, value: VALUE, ) -> Self
The working_peg_offset_value parameter.
This field is **optional.
Sourcepub fn pending_above_client_order_id<VALUE: Into<Option<String>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn pending_above_price<VALUE: Into<Option<Decimal>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn pending_above_stop_price<VALUE: Into<Option<Decimal>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn pending_above_trailing_delta<VALUE: Into<Option<Decimal>>>(
self,
value: VALUE,
) -> Self
pub fn pending_above_trailing_delta<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self
This field is **optional.
Sourcepub fn pending_above_iceberg_qty<VALUE: Into<Option<Decimal>>>(
self,
value: VALUE,
) -> Self
pub fn pending_above_iceberg_qty<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self
This can only be used if pendingAboveTimeInForce is GTC or if pendingAboveType is LIMIT_MAKER.
This field is **optional.
Sourcepub fn pending_above_time_in_force<VALUE: Into<Option<OrderListPlaceOpocoPendingAboveTimeInForceEnum>>>(
self,
value: VALUE,
) -> Self
pub fn pending_above_time_in_force<VALUE: Into<Option<OrderListPlaceOpocoPendingAboveTimeInForceEnum>>>( self, value: VALUE, ) -> Self
The pending_above_time_in_force parameter.
This field is **optional.
Sourcepub fn pending_above_strategy_id<VALUE: Into<Option<i64>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn pending_above_strategy_type<VALUE: Into<Option<i32>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn pending_above_peg_price_type<VALUE: Into<Option<OrderListPlaceOpocoPendingAbovePegPriceTypeEnum>>>(
self,
value: VALUE,
) -> Self
pub fn pending_above_peg_price_type<VALUE: Into<Option<OrderListPlaceOpocoPendingAbovePegPriceTypeEnum>>>( self, value: VALUE, ) -> Self
The pending_above_peg_price_type parameter.
This field is **optional.
Sourcepub fn pending_above_peg_offset_type<VALUE: Into<Option<OrderListPlaceOpocoPendingAbovePegOffsetTypeEnum>>>(
self,
value: VALUE,
) -> Self
pub fn pending_above_peg_offset_type<VALUE: Into<Option<OrderListPlaceOpocoPendingAbovePegOffsetTypeEnum>>>( self, value: VALUE, ) -> Self
The pending_above_peg_offset_type parameter.
This field is **optional.
Sourcepub fn pending_above_peg_offset_value<VALUE: Into<Option<i32>>>(
self,
value: VALUE,
) -> Self
pub fn pending_above_peg_offset_value<VALUE: Into<Option<i32>>>( self, value: VALUE, ) -> Self
The pending_above_peg_offset_value parameter.
This field is **optional.
Sourcepub fn pending_below_type<VALUE: Into<Option<OrderListPlaceOpocoPendingBelowTypeEnum>>>(
self,
value: VALUE,
) -> Self
pub fn pending_below_type<VALUE: Into<Option<OrderListPlaceOpocoPendingBelowTypeEnum>>>( self, value: VALUE, ) -> Self
The pending_below_type parameter.
This field is **optional.
Sourcepub fn pending_below_client_order_id<VALUE: Into<Option<String>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn pending_below_price<VALUE: Into<Option<Decimal>>>(
self,
value: VALUE,
) -> Self
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 limit price
This field is **optional.
Sourcepub fn pending_below_stop_price<VALUE: Into<Option<Decimal>>>(
self,
value: VALUE,
) -> Self
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 or TAKE_PROFIT_LIMIT. Either pendingBelowStopPrice or pendingBelowTrailingDelta or both, must be specified.
This field is **optional.
Sourcepub fn pending_below_trailing_delta<VALUE: Into<Option<Decimal>>>(
self,
value: VALUE,
) -> Self
pub fn pending_below_trailing_delta<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self
The pending_below_trailing_delta parameter.
This field is **optional.
Sourcepub fn pending_below_iceberg_qty<VALUE: Into<Option<Decimal>>>(
self,
value: VALUE,
) -> Self
pub fn pending_below_iceberg_qty<VALUE: Into<Option<Decimal>>>( self, value: VALUE, ) -> Self
This can only be used if pendingBelowTimeInForce is GTC, or if pendingBelowType is LIMIT_MAKER.
This field is **optional.
Sourcepub fn pending_below_time_in_force<VALUE: Into<Option<OrderListPlaceOpocoPendingBelowTimeInForceEnum>>>(
self,
value: VALUE,
) -> Self
pub fn pending_below_time_in_force<VALUE: Into<Option<OrderListPlaceOpocoPendingBelowTimeInForceEnum>>>( self, value: VALUE, ) -> Self
The pending_below_time_in_force parameter.
This field is **optional.
Sourcepub fn pending_below_strategy_id<VALUE: Into<Option<i64>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn pending_below_strategy_type<VALUE: Into<Option<i32>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn pending_below_peg_price_type<VALUE: Into<Option<OrderListPlaceOpocoPendingBelowPegPriceTypeEnum>>>(
self,
value: VALUE,
) -> Self
pub fn pending_below_peg_price_type<VALUE: Into<Option<OrderListPlaceOpocoPendingBelowPegPriceTypeEnum>>>( self, value: VALUE, ) -> Self
The pending_below_peg_price_type parameter.
This field is **optional.
Sourcepub fn pending_below_peg_offset_type<VALUE: Into<Option<OrderListPlaceOpocoPendingBelowPegOffsetTypeEnum>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn pending_below_peg_offset_value<VALUE: Into<Option<i32>>>(
self,
value: VALUE,
) -> Self
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.
Sourcepub fn recv_window<VALUE: Into<Option<Decimal>>>(self, value: VALUE) -> Self
pub fn recv_window<VALUE: Into<Option<Decimal>>>(self, value: VALUE) -> Self
The value cannot be greater than 60000.
Supports up to three decimal places of precision (e.g., 6000.346) so that microseconds may be specified.
This field is **optional.