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

#include <trade_api.hpp>

Public Attributes

common::Required< std::string > api_name
std::optional< std::string > symbol = std::nullopt
std::optional< std::string > ip = std::nullopt
 Can be added in batches, separated by commas. Max 30 for an API key.
std::optional< std::string > public_key = std::nullopt
std::optional< CreateSpecialKeyPermissionModeEnum > permission_mode = std::nullopt
 This parameter is only for the Ed25519 API key, and does not effact for other encryption methods.
std::optional< std::int64_t > recv_window = std::nullopt

Member Data Documentation

◆ api_name

common::Required<std::string> binance::margin_trading::rest_api::CreateSpecialKeyParams::api_name

◆ symbol

std::optional<std::string> binance::margin_trading::rest_api::CreateSpecialKeyParams::symbol = std::nullopt

◆ ip

std::optional<std::string> binance::margin_trading::rest_api::CreateSpecialKeyParams::ip = std::nullopt

Can be added in batches, separated by commas. Max 30 for an API key.

◆ public_key

std::optional<std::string> binance::margin_trading::rest_api::CreateSpecialKeyParams::public_key = std::nullopt
  1. If publicKey is inputted it will create an RSA or Ed25519 key. 2. Need to be encoded to URL-encoded format

◆ permission_mode

std::optional<CreateSpecialKeyPermissionModeEnum> binance::margin_trading::rest_api::CreateSpecialKeyParams::permission_mode = std::nullopt

This parameter is only for the Ed25519 API key, and does not effact for other encryption methods.

The value can be TRADE (TRADE for all permissions) or READ (READ for USER_DATA, FIX_API_READ_ONLY). The default value is TRADE.

◆ recv_window

std::optional<std::int64_t> binance::margin_trading::rest_api::CreateSpecialKeyParams::recv_window = std::nullopt