pub struct MovePositionForSubAccountParams {
pub from_user_email: String,
pub to_user_email: String,
pub product_type: String,
pub order_args: Vec<MovePositionForSubAccountOrderArgsParameterInner>,
pub recv_window: Option<i64>,
}Expand description
Request parameters for the [move_position_for_sub_account] operation.
This struct holds all of the inputs you can pass when calling
move_position_for_sub_account.
Fields§
§from_user_email: StringThe from_user_email parameter.
This field is **required.
to_user_email: StringThe to_user_email parameter.
This field is **required.
product_type: StringOnly support UM
This field is **required.
order_args: Vec<MovePositionForSubAccountOrderArgsParameterInner>Max 10 positions supported. When input request parameter,orderArgs.symbol should be STRING, orderArgs.quantity should be BIGDECIMAL, and orderArgs.positionSide should be STRING, positionSide support BOTH,LONG and SHORT. Each entry should be like orderArgs[0].symbol=BTCUSDT,orderArgs[0].quantity=0.001,orderArgs[0].positionSide=BOTH. Example of the request parameter array: orderArgs[0].symbol=BTCUSDT orderArgs[0].quantity=0.001 orderArgs[0].positionSide=BOTH orderArgs[1].symbol=ETHUSDT orderArgs[1].quantity=0.01 orderArgs[1].positionSide=BOTH
This field is **required.
recv_window: Option<i64>The recv_window parameter.
This field is **optional.
Implementations§
Source§impl MovePositionForSubAccountParams
impl MovePositionForSubAccountParams
Sourcepub fn builder(
from_user_email: String,
to_user_email: String,
product_type: String,
order_args: Vec<MovePositionForSubAccountOrderArgsParameterInner>,
) -> MovePositionForSubAccountParamsBuilder
pub fn builder( from_user_email: String, to_user_email: String, product_type: String, order_args: Vec<MovePositionForSubAccountOrderArgsParameterInner>, ) -> MovePositionForSubAccountParamsBuilder
Create a builder for [move_position_for_sub_account].
Required parameters:
from_user_email— Stringto_user_email— Stringproduct_type— Only support UMorder_args— Max 10 positions supported. When input request parameter,orderArgs.symbol should be STRING, orderArgs.quantity should be BIGDECIMAL, and orderArgs.positionSide should be STRING, positionSide support BOTH,LONG and SHORT. Each entry should be like orderArgs[0].symbol=BTCUSDT,orderArgs[0].quantity=0.001,orderArgs[0].positionSide=BOTH. Example of the request parameter array: orderArgs[0].symbol=BTCUSDT orderArgs[0].quantity=0.001 orderArgs[0].positionSide=BOTH orderArgs[1].symbol=ETHUSDT orderArgs[1].quantity=0.01 orderArgs[1].positionSide=BOTH
Trait Implementations§
Source§impl Clone for MovePositionForSubAccountParams
impl Clone for MovePositionForSubAccountParams
Source§fn clone(&self) -> MovePositionForSubAccountParams
fn clone(&self) -> MovePositionForSubAccountParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more