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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > wallet_address
 User's prediction wallet address.
common::Required< std::string > token_id
 Prediction outcome token ID.
common::Required< GetQuoteSideEnum > side
 Trade direction. Enum: BUY, SELL.
common::Required< std::string > amount_in
 Input amount in wei (18 decimals).
common::Required< GetQuoteOrderTypeEnum > order_type
 Order type. Enum: MARKET, LIMIT.
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< std::string > chain_id = std::nullopt
 Chain ID. Default 56 (BSC).
std::optional< std::int64_t > fee_rate_bps = std::nullopt
 Fee rate in basis points. Default 200, range 1–10000.
std::optional< GetQuoteFundingSourceEnum > funding_source = std::nullopt
 Funding source. Enum: MPC, CEX. Default MPC.
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::GetQuoteParams::wallet_address

User's prediction wallet address.

◆ token_id

common::Required<std::string> binance::w3w_prediction::rest_api::GetQuoteParams::token_id

Prediction outcome token ID.

◆ side

common::Required<GetQuoteSideEnum> binance::w3w_prediction::rest_api::GetQuoteParams::side

Trade direction. Enum: BUY, SELL.

◆ amount_in

common::Required<std::string> binance::w3w_prediction::rest_api::GetQuoteParams::amount_in

Input amount in wei (18 decimals).

Must be > 0. The minimum is set by the server and may change, see the response notes. Example: 1000000000000000000 = 1 USDT

◆ order_type

common::Required<GetQuoteOrderTypeEnum> binance::w3w_prediction::rest_api::GetQuoteParams::order_type

Order type. Enum: MARKET, LIMIT.

◆ slippage_bps

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

Slippage tolerance in basis points. Range 1–10000.

◆ price_limit

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

Limit price.

Required when orderType=LIMIT. Must be > 0. A price that is not on the price tick of the market (see decimalPrecision in Get Market Detail) is truncated down instead of being rejected, unless the result is 0

◆ chain_id

std::optional<std::string> binance::w3w_prediction::rest_api::GetQuoteParams::chain_id = std::nullopt

Chain ID. Default 56 (BSC).

◆ fee_rate_bps

std::optional<std::int64_t> binance::w3w_prediction::rest_api::GetQuoteParams::fee_rate_bps = std::nullopt

Fee rate in basis points. Default 200, range 1–10000.

◆ funding_source

std::optional<GetQuoteFundingSourceEnum> binance::w3w_prediction::rest_api::GetQuoteParams::funding_source = std::nullopt

Funding source. Enum: MPC, CEX. Default MPC.

◆ fund_transfer_amount

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

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