|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#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. | |
| 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.
| common::Required<std::string> binance::w3w_prediction::rest_api::PlaceOrderParams::wallet_id |
Wallet ID.
| common::Required<std::string> binance::w3w_prediction::rest_api::PlaceOrderParams::quote_id |
Quote ID obtained from Get Quote.
| common::Required<std::string> binance::w3w_prediction::rest_api::PlaceOrderParams::time_in_force |
Must match orderType: FOK for MARKET, GTC for LIMIT.
| 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.
| 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.
| common::Required<std::int64_t> binance::w3w_prediction::rest_api::PlaceOrderParams::slippage_bps |
Slippage tolerance in basis points. Range 1–10000.
| 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).
| 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.
| 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.