|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <account_api.hpp>
|
explicit |
|
nodiscard |
Account Balance (USER_DATA).
GET /papi/v1/balance.
Query account balance
Weight(IP): 20
Security Type: USER_DATA
|
inline |
Asynchronous account_balance().
Completes with void(std::exception_ptr, common::RestApiResponse<AccountBalanceResponse>).
|
nodiscard |
Account Information (USER_DATA).
GET /papi/v1/account.
Query account information
Weight(IP): 20
Security Type: USER_DATA
|
inline |
Asynchronous account_information().
Completes with void(std::exception_ptr, common::RestApiResponse<AccountInformationResponse>).
|
nodiscard |
BNB transfer (TRADE).
POST /papi/v1/bnb-transfer.
Transfer BNB in and out of UM
Weight(IP): 750
Security Type: TRADE
Notes:
|
inline |
Asynchronous bnb_transfer().
Completes with void(std::exception_ptr, common::RestApiResponse<BnbTransferResponse>).
|
nodiscard |
Change Auto-repay-futures Status (TRADE).
POST /papi/v1/repay-futures-switch.
Change Auto-repay-futures Status
Weight(IP): 750
Security Type: TRADE
|
inline |
Asynchronous change_auto_repay_futures_status().
Completes with void(std::exception_ptr, common::RestApiResponse<ChangeAutoRepayFuturesStatusResponse>).
|
nodiscard |
Get Auto-repay-futures Status (USER_DATA).
GET /papi/v1/repay-futures-switch.
Query Auto-repay-futures Status
Weight(IP): 30
Security Type: USER_DATA
|
inline |
Asynchronous get_auto_repay_futures_status().
Completes with void(std::exception_ptr, common::RestApiResponse<GetAutoRepayFuturesStatusResponse>).
|
nodiscard |
Change CM Initial Leverage (TRADE).
POST /papi/v1/cm/leverage.
Change user's initial leverage of specific symbol in CM.
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous change_cm_initial_leverage().
Completes with void(std::exception_ptr, common::RestApiResponse<ChangeCmInitialLeverageResponse>).
|
nodiscard |
Change CM Position Mode (TRADE).
POST /papi/v1/cm/positionSide/dual.
Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous change_cm_position_mode().
Completes with void(std::exception_ptr, common::RestApiResponse<ChangeCmPositionModeResponse>).
|
nodiscard |
Get CM Current Position Mode (USER_DATA).
GET /papi/v1/cm/positionSide/dual.
Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
Weight(IP): 30
Security Type: USER_DATA
|
inline |
Asynchronous get_cm_current_position_mode().
Completes with void(std::exception_ptr, common::RestApiResponse<GetCmCurrentPositionModeResponse>).
|
nodiscard |
Change UM Initial Leverage (TRADE).
POST /papi/v1/um/leverage.
Change user's initial leverage of specific symbol in UM.
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous change_um_initial_leverage().
Completes with void(std::exception_ptr, common::RestApiResponse<ChangeUmInitialLeverageResponse>).
|
nodiscard |
Change UM Position Mode (TRADE).
POST /papi/v1/um/positionSide/dual.
Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous change_um_position_mode().
Completes with void(std::exception_ptr, common::RestApiResponse<ChangeUmPositionModeResponse>).
|
nodiscard |
Get UM Current Position Mode (USER_DATA).
GET /papi/v1/um/positionSide/dual.
Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
Weight(IP): 30
Security Type: USER_DATA
|
inline |
Asynchronous get_um_current_position_mode().
Completes with void(std::exception_ptr, common::RestApiResponse<GetUmCurrentPositionModeResponse>).
|
nodiscard |
CM Notional and Leverage Brackets (USER_DATA).
GET /papi/v1/cm/leverageBracket.
Query CM notional and leverage brackets
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous cm_notional_and_leverage_brackets().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<CmNotionalAndLeverageBracketsResponseInner>>).
|
nodiscard |
Fund Auto-collection (TRADE).
POST /papi/v1/auto-collection.
Fund collection for Portfolio Margin
Weight(IP): 750
Security Type: TRADE
Notes:
|
inline |
Asynchronous fund_auto_collection().
Completes with void(std::exception_ptr, common::RestApiResponse<FundAutoCollectionResponse>).
|
nodiscard |
Fund Collection by Asset (TRADE).
POST /papi/v1/asset-collection.
Transfers specific asset from Futures Account to Margin account
Weight(IP): 30
Security Type: TRADE
Notes:
|
inline |
Asynchronous fund_collection_by_asset().
Completes with void(std::exception_ptr, common::RestApiResponse<FundCollectionByAssetResponse>).
|
nodiscard |
Get CM Account Detail (USER_DATA).
GET /papi/v1/cm/account.
Get current CM account asset and position information.
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous get_cm_account_detail().
Completes with void(std::exception_ptr, common::RestApiResponse<GetCmAccountDetailResponse>).
|
nodiscard |
Get CM Futures Order Download Link by Id (USER_DATA).
GET /papi/v1/cm/order/asyn/id.
Get CM futures order download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_cm_futures_order_download_link_by_id().
Completes with void(std::exception_ptr, common::RestApiResponse<GetCmFuturesOrderDownloadLinkByIdResponse>).
|
nodiscard |
Get CM Futures Trade Download Link by Id (USER_DATA).
GET /papi/v1/cm/trade/asyn/id.
Get CM futures trade download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_cm_futures_trade_download_link_by_id().
Completes with void(std::exception_ptr, common::RestApiResponse<GetCmFuturesTradeDownloadLinkByIdResponse>).
|
nodiscard |
Get CM Futures Transaction Download Link by Id (USER_DATA).
GET /papi/v1/cm/income/asyn/id.
Get CM futures Transaction download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_cm_futures_transaction_download_link_by_id().
Completes with void(std::exception_ptr, common::RestApiResponse<GetCmFuturesTransactionDownloadLinkByIdResponse>).
|
nodiscard |
Get CM Income History (USER_DATA).
GET /papi/v1/cm/income.
Get CM Income History.
Weight(IP): 30
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_cm_income_history().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<GetCmIncomeHistoryResponseInner>>).
|
nodiscard |
Get Download Id For CM Futures Order History (USER_DATA).
GET /papi/v1/cm/order/asyn.
Get download id for CM futures order history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_download_id_for_cm_futures_order_history().
Completes with void(std::exception_ptr, common::RestApiResponse<GetDownloadIdForCmFuturesOrderHistoryResponse>).
|
nodiscard |
Get Download Id For CM Futures Trade History (USER_DATA).
GET /papi/v1/cm/trade/asyn.
Get download id for CM futures trade history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_download_id_for_cm_futures_trade_history().
Completes with void(std::exception_ptr, common::RestApiResponse<GetDownloadIdForCmFuturesTradeHistoryResponse>).
|
nodiscard |
Get Download Id For CM Futures Transaction History (USER_DATA).
GET /papi/v1/cm/income/asyn.
Get download id for CM futures transaction history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_download_id_for_cm_futures_transaction_history().
Completes with void(std::exception_ptr, common::RestApiResponse<GetDownloadIdForCmFuturesTransactionHistoryResponse>).
|
nodiscard |
Get Download Id For UM Futures Order History (USER_DATA).
GET /papi/v1/um/order/asyn.
Get download id for UM futures order history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_download_id_for_um_futures_order_history().
Completes with void(std::exception_ptr, common::RestApiResponse<GetDownloadIdForUmFuturesOrderHistoryResponse>).
|
nodiscard |
Get Download Id For UM Futures Trade History (USER_DATA).
GET /papi/v1/um/trade/asyn.
Get download id for UM futures trade history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_download_id_for_um_futures_trade_history().
Completes with void(std::exception_ptr, common::RestApiResponse<GetDownloadIdForUmFuturesTradeHistoryResponse>).
|
nodiscard |
Get Download Id For UM Futures Transaction History (USER_DATA).
GET /papi/v1/um/income/asyn.
Get download id for UM futures transaction history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_download_id_for_um_futures_transaction_history().
Completes with void(std::exception_ptr, common::RestApiResponse<GetDownloadIdForUmFuturesTransactionHistoryResponse>).
|
nodiscard |
Get Margin Borrow/Loan Interest History (USER_DATA).
GET /papi/v1/margin/marginInterestHistory.
Get Margin Borrow/Loan Interest History
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_margin_borrow_loan_interest_history().
Completes with void(std::exception_ptr, common::RestApiResponse<GetMarginBorrowLoanInterestHistoryResponse>).
|
nodiscard |
Get UM Account Detail (USER_DATA).
GET /papi/v1/um/account.
Get current UM account asset and position information.
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous get_um_account_detail().
Completes with void(std::exception_ptr, common::RestApiResponse<GetUmAccountDetailResponse>).
|
nodiscard |
Get UM Account Detail V2 (USER_DATA).
GET /papi/v2/um/account.
Get current UM account asset and position information.
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous get_um_account_detail_v2().
Completes with void(std::exception_ptr, common::RestApiResponse<GetUmAccountDetailV2Response>).
|
nodiscard |
Get UM Futures Order Download Link by Id (USER_DATA).
GET /papi/v1/um/order/asyn/id.
Get UM futures order download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_um_futures_order_download_link_by_id().
Completes with void(std::exception_ptr, common::RestApiResponse<GetUmFuturesOrderDownloadLinkByIdResponse>).
|
nodiscard |
Get UM Futures Trade Download Link by Id (USER_DATA).
GET /papi/v1/um/trade/asyn/id.
Get UM futures trade download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_um_futures_trade_download_link_by_id().
Completes with void(std::exception_ptr, common::RestApiResponse<GetUmFuturesTradeDownloadLinkByIdResponse>).
|
nodiscard |
Get UM Futures Transaction Download Link by Id (USER_DATA).
GET /papi/v1/um/income/asyn/id.
Get UM futures Transaction download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_um_futures_transaction_download_link_by_id().
Completes with void(std::exception_ptr, common::RestApiResponse<GetUmFuturesTransactionDownloadLinkByIdResponse>).
|
nodiscard |
Get UM Income History (USER_DATA).
GET /papi/v1/um/income.
Get UM Income History.
Weight(IP): 30
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_um_income_history().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<GetUmIncomeHistoryResponseInner>>).
|
nodiscard |
Get User Commission Rate for CM (USER_DATA).
GET /papi/v1/cm/commissionRate.
Get User Commission Rate for CM
Weight(IP): 20
Security Type: USER_DATA
|
inline |
Asynchronous get_user_commission_rate_for_cm().
Completes with void(std::exception_ptr, common::RestApiResponse<GetUserCommissionRateForCmResponse>).
|
nodiscard |
Get User Commission Rate for UM (USER_DATA).
GET /papi/v1/um/commissionRate.
Get User Commission Rate for UM
Weight(IP): 20
Security Type: USER_DATA
|
inline |
Asynchronous get_user_commission_rate_for_um().
Completes with void(std::exception_ptr, common::RestApiResponse<GetUserCommissionRateForUmResponse>).
|
nodiscard |
Margin Max Borrow (USER_DATA).
GET /papi/v1/margin/maxBorrowable.
Query margin max borrow
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous margin_max_borrow().
Completes with void(std::exception_ptr, common::RestApiResponse<MarginMaxBorrowResponse>).
|
nodiscard |
Portfolio Margin UM Trading Quantitative Rules Indicators (USER_DATA).
GET /papi/v1/um/apiTradingStatus.
Portfolio Margin UM Trading Quantitative Rules Indicators
Weight: - 1 for a single symbol
Security Type: USER_DATA
|
inline |
Asynchronous portfolio_margin_um_trading_quantitative_rules_indicators().
Completes with void(std::exception_ptr, common::RestApiResponse<PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse>).
|
nodiscard |
Query CM Position Information (USER_DATA).
GET /papi/v1/cm/positionRisk.
Get current CM position information.
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_cm_position_information().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<QueryCmPositionInformationResponseInner>>).
|
nodiscard |
Query Margin Loan Record (USER_DATA).
GET /papi/v1/margin/marginLoan.
Query margin loan record
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_margin_loan_record().
Completes with void(std::exception_ptr, common::RestApiResponse<QueryMarginLoanRecordResponse>).
|
nodiscard |
Query Margin Max Withdraw (USER_DATA).
GET /papi/v1/margin/maxWithdraw.
Query Margin Max Withdraw
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous query_margin_max_withdraw().
Completes with void(std::exception_ptr, common::RestApiResponse<QueryMarginMaxWithdrawResponse>).
|
nodiscard |
Query Margin repay Record (USER_DATA).
GET /papi/v1/margin/repayLoan.
Query margin repay record.
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_margin_repay_record().
Completes with void(std::exception_ptr, common::RestApiResponse<QueryMarginRepayRecordResponse>).
|
nodiscard |
Query Portfolio Margin Negative Balance Interest History (USER_DATA).
GET /papi/v1/portfolio/interest-history.
Query interest history of negative balance for portfolio margin.
Weight(IP): 50
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_portfolio_margin_negative_balance_interest_history().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<QueryPortfolioMarginNegativeBalanceInterestHistoryResponseInner>>).
|
nodiscard |
Query UM Position Information (USER_DATA).
GET /papi/v1/um/positionRisk.
Get current UM position information.
Weight(IP): 5
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_um_position_information().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<QueryUmPositionInformationResponseInner>>).
|
nodiscard |
Query User Negative Balance Auto Exchange Record (USER_DATA).
GET /papi/v1/portfolio/negative-balance-exchange-record.
Query user negative balance auto exchange record
Weight(IP): 100
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_user_negative_balance_auto_exchange_record().
Completes with void(std::exception_ptr, common::RestApiResponse<QueryUserNegativeBalanceAutoExchangeRecordResponse>).
|
nodiscard |
Query User Rate Limit (USER_DATA).
GET /papi/v1/rateLimit/order.
Query User Rate Limit
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous query_user_rate_limit().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<QueryUserRateLimitResponseInner>>).
|
nodiscard |
Repay futures Negative Balance (USER_DATA).
POST /papi/v1/repay-futures-negative-balance.
Repay futures Negative Balance
Weight(IP): 750
Security Type: USER_DATA
|
inline |
Asynchronous repay_futures_negative_balance().
Completes with void(std::exception_ptr, common::RestApiResponse<RepayFuturesNegativeBalanceResponse>).
|
nodiscard |
UM Futures Account Configuration (USER_DATA).
GET /papi/v1/um/accountConfig.
Query UM Futures account configuration
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous um_futures_account_configuration().
Completes with void(std::exception_ptr, common::RestApiResponse<UmFuturesAccountConfigurationResponse>).
|
nodiscard |
UM Futures Symbol Configuration (USER_DATA).
GET /papi/v1/um/symbolConfig.
Get current UM account symbol configuration.
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous um_futures_symbol_configuration().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<UmFuturesSymbolConfigurationResponseInner>>).
|
nodiscard |
UM Notional and Leverage Brackets (USER_DATA).
GET /papi/v1/um/leverageBracket.
Query UM notional and leverage brackets
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous um_notional_and_leverage_brackets().
Completes with void(std::exception_ptr, common::RestApiResponse<std::vector<UmNotionalAndLeverageBracketsResponseInner>>).