|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <api.hpp>
Public Member Functions | |
| Api (std::shared_ptr< common::RestClient > client) | |
| common::RestApiResponse< DepositResponse > | deposit (const DepositParams ¶ms) const |
| Deposit (TRADE). | |
| template<class CompletionToken> | |
| auto | async_deposit (const DepositParams ¶ms, CompletionToken &&token) const |
| Asynchronous deposit(). | |
| common::RestApiResponse< FiatWithdrawResponse > | fiat_withdraw (const FiatWithdrawParams ¶ms) const |
| Fiat Withdraw (TRADE). | |
| template<class CompletionToken> | |
| auto | async_fiat_withdraw (const FiatWithdrawParams ¶ms, CompletionToken &&token) const |
| Asynchronous fiat_withdraw(). | |
| common::RestApiResponse< GetFiatDepositWithdrawHistoryResponse > | get_fiat_deposit_withdraw_history (const GetFiatDepositWithdrawHistoryParams ¶ms) const |
| Get Fiat Deposit/Withdraw History (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_get_fiat_deposit_withdraw_history (const GetFiatDepositWithdrawHistoryParams ¶ms, CompletionToken &&token) const |
| Asynchronous get_fiat_deposit_withdraw_history(). | |
| common::RestApiResponse< GetFiatPaymentsHistoryResponse > | get_fiat_payments_history (const GetFiatPaymentsHistoryParams ¶ms) const |
| Get Fiat Payments History (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_get_fiat_payments_history (const GetFiatPaymentsHistoryParams ¶ms, CompletionToken &&token) const |
| Asynchronous get_fiat_payments_history(). | |
| common::RestApiResponse< GetOrderDetailResponse > | get_order_detail (const GetOrderDetailParams ¶ms) const |
| Get Order Detail (USER_DATA). | |
| template<class CompletionToken> | |
| auto | async_get_order_detail (const GetOrderDetailParams ¶ms, CompletionToken &&token) const |
| Asynchronous get_order_detail(). | |
|
explicit |
|
nodiscard |
Deposit (TRADE).
POST /sapi/v1/fiat/deposit.
Submit deposit request, in this version, we only support BRL deposit via pix.
For BRL deposit via pix, you need to place an order before making a transfer from your bank.
Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
Weight(UID): 45000
Security Type: TRADE
Notes:
See https://developers.binance.com/en/docs/catalog/investment-and-services-fiat/api/rest-api/~#deposit
|
inline |
Asynchronous deposit().
Completes with void(std::exception_ptr, common::RestApiResponse<DepositResponse>).
|
nodiscard |
Fiat Withdraw (TRADE).
POST /sapi/v2/fiat/withdraw.
Submit withdraw request, in this version, we support BRL,ARS,MXN withdrawal via bank_transfer.
You need to call this api first, and call query order detail api in a loop to get the status of the order until this order is successful.
Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
Weight(UID): 45000
Security Type: TRADE
|
inline |
Asynchronous fiat_withdraw().
Completes with void(std::exception_ptr, common::RestApiResponse<FiatWithdrawResponse>).
|
nodiscard |
Get Fiat Deposit/Withdraw History (USER_DATA).
GET /sapi/v1/fiat/orders.
Get Fiat Deposit/Withdraw History
Weight(UID): 45000
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_fiat_deposit_withdraw_history().
Completes with void(std::exception_ptr, common::RestApiResponse<GetFiatDepositWithdrawHistoryResponse>).
|
nodiscard |
Get Fiat Payments History (USER_DATA).
GET /sapi/v1/fiat/payments.
Get Fiat Payments History
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_fiat_payments_history().
Completes with void(std::exception_ptr, common::RestApiResponse<GetFiatPaymentsHistoryResponse>).
|
nodiscard |
Get Order Detail (USER_DATA).
GET /sapi/v1/fiat/get-order-detail.
Get Order Detail
Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous get_order_detail().
Completes with void(std::exception_ptr, common::RestApiResponse<GetOrderDetailResponse>).