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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > wallet_address
 User's prediction wallet address.
common::Required< std::string > wallet_id
 Wallet ID.
common::Required< std::string > quote_id
 Quote ID obtained from Get Quote.
common::Required< std::string > time_in_force
 Must match orderType: FOK for MARKET, GTC for LIMIT.
common::Required< PlaceOrderAccountTypeEnum > account_type
 Payment account type.
common::Required< PlaceOrderOrderTypeEnum > order_type
 Order type.
common::Required< std::int64_t > slippage_bps
 Slippage tolerance in basis points. Range 1–10000.
std::optional< std::string > price_limit = std::nullopt
 Limit price.
std::optional< PlaceOrderFundingSourceEnum > funding_source = std::nullopt
 Funding source.
std::optional< std::string > fund_transfer_amount = std::nullopt
 Auto-transfer amount before order (wei). Must be > 0 if provided.

Member Data Documentation

◆ wallet_address

common::Required<std::string> binance::w3w_prediction::rest_api::PlaceOrderParams::wallet_address

User's prediction wallet address.

Must be a valid address owned by the calling UID — a well-formed address not owned by the UID and a malformed (non-address) value both return the same generic -3026. An empty string instead returns -1102 naming the field.

◆ wallet_id

common::Required<std::string> binance::w3w_prediction::rest_api::PlaceOrderParams::wallet_id

Wallet ID.

◆ quote_id

common::Required<std::string> binance::w3w_prediction::rest_api::PlaceOrderParams::quote_id

Quote ID obtained from Get Quote.

◆ time_in_force

common::Required<std::string> binance::w3w_prediction::rest_api::PlaceOrderParams::time_in_force

Must match orderType: FOK for MARKET, GTC for LIMIT.

◆ account_type

common::Required<PlaceOrderAccountTypeEnum> binance::w3w_prediction::rest_api::PlaceOrderParams::account_type

Payment account type.

Enum: SPOT, FUNDING. This only determines the settlement/reference account — it does not control which balance is debited. See fundingSource below for that.

◆ order_type

common::Required<PlaceOrderOrderTypeEnum> binance::w3w_prediction::rest_api::PlaceOrderParams::order_type

Order type.

Enum: MARKET, LIMIT only. Do not combine with timeInForce (e.g. LIMIT_GTC is not a valid value) — set timeInForce separately per the Validation Rules table below.

◆ slippage_bps

common::Required<std::int64_t> binance::w3w_prediction::rest_api::PlaceOrderParams::slippage_bps

Slippage tolerance in basis points. Range 1–10000.

◆ price_limit

std::optional<std::string> binance::w3w_prediction::rest_api::PlaceOrderParams::price_limit = std::nullopt

Limit price.

Required when orderType=LIMIT, must be > 0. Omitting it when orderType=LIMIT returns a generic -3026 (no field name in the message).

◆ funding_source

std::optional<PlaceOrderFundingSourceEnum> binance::w3w_prediction::rest_api::PlaceOrderParams::funding_source = std::nullopt

Funding source.

Enum: MPC, CEX. Default MPC. This determines which balance is actually debited, independent of accountType.

◆ fund_transfer_amount

std::optional<std::string> binance::w3w_prediction::rest_api::PlaceOrderParams::fund_transfer_amount = std::nullopt

Auto-transfer amount before order (wei). Must be > 0 if provided.