pub struct MovePositionForSubAccountParamsBuilder { /* private fields */ }Expand description
Builder for MovePositionForSubAccountParams.
Implementations§
Source§impl MovePositionForSubAccountParamsBuilder
impl MovePositionForSubAccountParamsBuilder
Sourcepub fn from_user_email<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn from_user_email<VALUE: Into<String>>(self, value: VALUE) -> Self
The from_user_email parameter.
This field is **required.
Sourcepub fn to_user_email<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn to_user_email<VALUE: Into<String>>(self, value: VALUE) -> Self
The to_user_email parameter.
This field is **required.
Sourcepub fn product_type<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn product_type<VALUE: Into<String>>(self, value: VALUE) -> Self
Only support UM
This field is **required.
Sourcepub fn order_args<VALUE: Into<Vec<MovePositionForSubAccountOrderArgsParameterInner>>>(
self,
value: VALUE,
) -> Self
pub fn order_args<VALUE: Into<Vec<MovePositionForSubAccountOrderArgsParameterInner>>>( self, value: VALUE, ) -> Self
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.
Sourcepub fn recv_window<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn recv_window<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
The recv_window parameter.
This field is **optional.