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

#include <api_management_api.hpp>

Public Attributes

common::Required< std::string > email
 Sub-account email.
common::Required< std::string > api_name
 API Key name.
common::Required< std::int64_t > status
 IP restriction status.
std::optional< bool > can_trade = std::nullopt
 Spot & Margin trading permission, default false.
std::optional< bool > can_margin_loan_repay = std::nullopt
 Margin borrow/repay permission, default false.
std::optional< bool > can_futures_trade = std::nullopt
 Futures trading permission, default false.
std::optional< bool > can_universal_transfer = std::nullopt
 Universal transfer permission, default false.
std::optional< bool > can_vanilla_options = std::nullopt
 Vanilla options permission, default false.
std::optional< bool > can_fix_api_trading = std::nullopt
 FIX API Trading permission.
std::optional< bool > can_fix_api_reading = std::nullopt
 FIX API Reading permission.
std::optional< std::string > ip_address = std::nullopt
 Required when status=2. IP address list, max 500 chars.
std::optional< std::string > third_party_name = std::nullopt
 Required when status=3. Third-party name.
std::optional< std::string > public_key = std::nullopt
 Ed25519 public key (optional, for Ed25519 type API Key).
std::optional< std::int64_t > recv_window = std::nullopt

Member Data Documentation

◆ email

common::Required<std::string> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::email

Sub-account email.

◆ api_name

common::Required<std::string> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::api_name

API Key name.

◆ status

common::Required<std::int64_t> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::status

IP restriction status.

1 = unrestricted, 2 = restricted to trusted IPs, 3 = third-party IP restriction

◆ can_trade

std::optional<bool> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::can_trade = std::nullopt

Spot & Margin trading permission, default false.

◆ can_margin_loan_repay

std::optional<bool> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::can_margin_loan_repay = std::nullopt

Margin borrow/repay permission, default false.

◆ can_futures_trade

std::optional<bool> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::can_futures_trade = std::nullopt

Futures trading permission, default false.

◆ can_universal_transfer

std::optional<bool> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::can_universal_transfer = std::nullopt

Universal transfer permission, default false.

◆ can_vanilla_options

std::optional<bool> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::can_vanilla_options = std::nullopt

Vanilla options permission, default false.

◆ can_fix_api_trading

std::optional<bool> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::can_fix_api_trading = std::nullopt

FIX API Trading permission.

Only supported for API Keys using an Ed25519 public key. Setting it to true for any other key type returns -9000 Unsupported operation

◆ can_fix_api_reading

std::optional<bool> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::can_fix_api_reading = std::nullopt

FIX API Reading permission.

Only supported for API Keys using an Ed25519 public key. Setting it to true for any other key type returns -9000 Unsupported operation

◆ ip_address

std::optional<std::string> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::ip_address = std::nullopt

Required when status=2. IP address list, max 500 chars.

◆ third_party_name

std::optional<std::string> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::third_party_name = std::nullopt

Required when status=3. Third-party name.

◆ public_key

std::optional<std::string> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::public_key = std::nullopt

Ed25519 public key (optional, for Ed25519 type API Key).

◆ recv_window

std::optional<std::int64_t> binance::sub_account::rest_api::CreateSubAccountApiKeyParams::recv_window = std::nullopt