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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
common::Required< MarginAccountNewOcoSideEnum > side
 See enum definitions: order side.
common::Required< common::Decimal > quantity
common::Required< common::Decimal > price
common::Required< common::Decimal > stop_price
std::optional< std::string > list_client_order_id = std::nullopt
 A unique Id for the entire orderList.
std::optional< std::string > limit_client_order_id = std::nullopt
 A unique Id for the limit order.
std::optional< common::Decimal > limit_iceberg_qty = std::nullopt
std::optional< std::string > stop_client_order_id = std::nullopt
 A unique Id for the stop loss/stop loss limit leg.
std::optional< common::Decimal > stop_limit_price = std::nullopt
 If provided, stopLimitTimeInForce is required.
std::optional< common::Decimal > stop_iceberg_qty = std::nullopt
std::optional< MarginAccountNewOcoStopLimitTimeInForceEnum > stop_limit_time_in_force
 Valid values are GTC/FOK/IOC.
std::optional< MarginAccountNewOcoNewOrderRespTypeEnum > new_order_resp_type = std::nullopt
 Set the response JSON.
std::optional< MarginAccountNewOcoSideEffectTypeEnum > side_effect_type = std::nullopt
 NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; default NO_SIDE_EFFECT.
std::optional< std::int64_t > recv_window = std::nullopt

Member Data Documentation

◆ symbol

common::Required<std::string> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::symbol

◆ side

common::Required<MarginAccountNewOcoSideEnum> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::side

See enum definitions: order side.

◆ quantity

common::Required<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::quantity

◆ price

common::Required<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::price

◆ stop_price

common::Required<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::stop_price

◆ list_client_order_id

std::optional<std::string> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::list_client_order_id = std::nullopt

A unique Id for the entire orderList.

◆ limit_client_order_id

std::optional<std::string> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::limit_client_order_id = std::nullopt

A unique Id for the limit order.

◆ limit_iceberg_qty

std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::limit_iceberg_qty = std::nullopt

◆ stop_client_order_id

std::optional<std::string> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::stop_client_order_id = std::nullopt

A unique Id for the stop loss/stop loss limit leg.

◆ stop_limit_price

std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::stop_limit_price = std::nullopt

If provided, stopLimitTimeInForce is required.

◆ stop_iceberg_qty

std::optional<common::Decimal> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::stop_iceberg_qty = std::nullopt

◆ stop_limit_time_in_force

std::optional<MarginAccountNewOcoStopLimitTimeInForceEnum> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::stop_limit_time_in_force
Initial value:
=
std::nullopt

Valid values are GTC/FOK/IOC.

◆ new_order_resp_type

std::optional<MarginAccountNewOcoNewOrderRespTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::new_order_resp_type = std::nullopt

Set the response JSON.

◆ side_effect_type

std::optional<MarginAccountNewOcoSideEffectTypeEnum> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::side_effect_type = std::nullopt

NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; default NO_SIDE_EFFECT.

◆ recv_window

std::optional<std::int64_t> binance::derivatives_trading_portfolio_margin::rest_api::MarginAccountNewOcoParams::recv_window = std::nullopt