Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::sub_account::rest_api::MovePositionForSubAccountParams Struct Reference

#include <asset_management_api.hpp>

Public Attributes

common::Required< std::string > from_user_email
common::Required< std::string > to_user_email
common::Required< MovePositionForSubAccountProductTypeEnum > product_type
 A single request cannot mix UM and OPTION positions.
common::Required< std::vector< MovePositionForSubAccountOrderArgsParameterInner > > order_args
 Max 10 positions supported.
std::optional< std::int64_t > recv_window = std::nullopt

Member Data Documentation

◆ from_user_email

common::Required<std::string> binance::sub_account::rest_api::MovePositionForSubAccountParams::from_user_email

◆ to_user_email

common::Required<std::string> binance::sub_account::rest_api::MovePositionForSubAccountParams::to_user_email

◆ product_type

common::Required<MovePositionForSubAccountProductTypeEnum> binance::sub_account::rest_api::MovePositionForSubAccountParams::product_type

A single request cannot mix UM and OPTION positions.

◆ order_args

common::Required<std::vector<MovePositionForSubAccountOrderArgsParameterInner> > binance::sub_account::rest_api::MovePositionForSubAccountParams::order_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

◆ recv_window

std::optional<std::int64_t> binance::sub_account::rest_api::MovePositionForSubAccountParams::recv_window = std::nullopt