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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > symbol
 OCC contract symbol.
common::Required< PlaceOptionOrderSideEnum > side
 BUY / SELL.
common::Required< std::string > quantity
 Number of contracts. Must be a whole number, minimum 1.
common::Required< std::string > price
 Limit price (premium) per share, minimum 0.01, must be a multiple of tickSize.
std::optional< std::string > quote_asset = std::nullopt
 Quote asset. Only USDC (default) is supported; other values return 497104.
std::optional< PlaceOptionOrderPositionIntentEnum > position_intent = std::nullopt
 May be omitted and derived from side (BUY → BUY_TO_OPEN, SELL → SELL_TO_CLOSE); always pass it for the short side (SELL_TO_OPEN / BUY_TO_CLOSE).
std::optional< PlaceOptionOrderTimeInForceEnum > time_in_force = std::nullopt
 Only DAY (default) is supported. Other values return a parameter error.
std::optional< PlaceOptionOrderWalletTypeEnum > wallet_type = std::nullopt
 Payment wallet: CARD (default) / MAIN.
std::optional< std::string > client_order_id = std::nullopt
 Client order ID. Format ^[a-zA-Z0-9-_]{32,36}$. Generated by the server when omitted.
std::optional< std::int64_t > recv_window = std::nullopt
 The value cannot be greater than 60000.

Member Data Documentation

◆ symbol

common::Required<std::string> binance::stock_options::rest_api::PlaceOptionOrderParams::symbol

OCC contract symbol.

◆ side

common::Required<PlaceOptionOrderSideEnum> binance::stock_options::rest_api::PlaceOptionOrderParams::side

BUY / SELL.

◆ quantity

common::Required<std::string> binance::stock_options::rest_api::PlaceOptionOrderParams::quantity

Number of contracts. Must be a whole number, minimum 1.

◆ price

common::Required<std::string> binance::stock_options::rest_api::PlaceOptionOrderParams::price

Limit price (premium) per share, minimum 0.01, must be a multiple of tickSize.

For a put SELL order it cannot exceed the strike price (497438).

◆ quote_asset

std::optional<std::string> binance::stock_options::rest_api::PlaceOptionOrderParams::quote_asset = std::nullopt

Quote asset. Only USDC (default) is supported; other values return 497104.

◆ position_intent

std::optional<PlaceOptionOrderPositionIntentEnum> binance::stock_options::rest_api::PlaceOptionOrderParams::position_intent = std::nullopt

May be omitted and derived from side (BUY → BUY_TO_OPEN, SELL → SELL_TO_CLOSE); always pass it for the short side (SELL_TO_OPEN / BUY_TO_CLOSE).

Must match side when passed.

◆ time_in_force

std::optional<PlaceOptionOrderTimeInForceEnum> binance::stock_options::rest_api::PlaceOptionOrderParams::time_in_force = std::nullopt

Only DAY (default) is supported. Other values return a parameter error.

◆ wallet_type

std::optional<PlaceOptionOrderWalletTypeEnum> binance::stock_options::rest_api::PlaceOptionOrderParams::wallet_type = std::nullopt

Payment wallet: CARD (default) / MAIN.

◆ client_order_id

std::optional<std::string> binance::stock_options::rest_api::PlaceOptionOrderParams::client_order_id = std::nullopt

Client order ID. Format ^[a-zA-Z0-9-_]{32,36}$. Generated by the server when omitted.

◆ recv_window

std::optional<std::int64_t> binance::stock_options::rest_api::PlaceOptionOrderParams::recv_window = std::nullopt

The value cannot be greater than 60000.