Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::fiat::rest_api::Api Class Reference

#include <api.hpp>

Public Member Functions

 Api (std::shared_ptr< common::RestClient > client)
common::RestApiResponse< DepositResponse > deposit (const DepositParams &params) const
 Deposit (TRADE).
template<class CompletionToken>
auto async_deposit (const DepositParams &params, CompletionToken &&token) const
 Asynchronous deposit().
common::RestApiResponse< FiatWithdrawResponse > fiat_withdraw (const FiatWithdrawParams &params) const
 Fiat Withdraw (TRADE).
template<class CompletionToken>
auto async_fiat_withdraw (const FiatWithdrawParams &params, CompletionToken &&token) const
 Asynchronous fiat_withdraw().
common::RestApiResponse< GetFiatDepositWithdrawHistoryResponse > get_fiat_deposit_withdraw_history (const GetFiatDepositWithdrawHistoryParams &params) const
 Get Fiat Deposit/Withdraw History (USER_DATA).
template<class CompletionToken>
auto async_get_fiat_deposit_withdraw_history (const GetFiatDepositWithdrawHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_fiat_deposit_withdraw_history().
common::RestApiResponse< GetFiatPaymentsHistoryResponse > get_fiat_payments_history (const GetFiatPaymentsHistoryParams &params) const
 Get Fiat Payments History (USER_DATA).
template<class CompletionToken>
auto async_get_fiat_payments_history (const GetFiatPaymentsHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_fiat_payments_history().
common::RestApiResponse< GetOrderDetailResponse > get_order_detail (const GetOrderDetailParams &params) const
 Get Order Detail (USER_DATA).
template<class CompletionToken>
auto async_get_order_detail (const GetOrderDetailParams &params, CompletionToken &&token) const
 Asynchronous get_order_detail().

Constructor & Destructor Documentation

◆ Api()

binance::fiat::rest_api::Api::Api ( std::shared_ptr< common::RestClient > client)
explicit

Member Function Documentation

◆ deposit()

common::RestApiResponse< DepositResponse > binance::fiat::rest_api::Api::deposit ( const DepositParams & params) const
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:

  • timestamp, signature and recvWindow are sent as query-string parameters, while the business fields (currency, apiPaymentMethod, amount, ext) are sent in the JSON request body with Content-Type: application/json.

See https://developers.binance.com/en/docs/catalog/investment-and-services-fiat/api/rest-api/~#deposit

◆ async_deposit()

template<class CompletionToken>
auto binance::fiat::rest_api::Api::async_deposit ( const DepositParams & params,
CompletionToken && token ) const
inline

Asynchronous deposit().

Completes with void(std::exception_ptr, common::RestApiResponse<DepositResponse>).

◆ fiat_withdraw()

common::RestApiResponse< FiatWithdrawResponse > binance::fiat::rest_api::Api::fiat_withdraw ( const FiatWithdrawParams & params) const
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

See https://developers.binance.com/en/docs/catalog/investment-and-services-fiat/api/rest-api/~#fiat-withdraw

◆ async_fiat_withdraw()

template<class CompletionToken>
auto binance::fiat::rest_api::Api::async_fiat_withdraw ( const FiatWithdrawParams & params,
CompletionToken && token ) const
inline

Asynchronous fiat_withdraw().

Completes with void(std::exception_ptr, common::RestApiResponse<FiatWithdrawResponse>).

◆ get_fiat_deposit_withdraw_history()

common::RestApiResponse< GetFiatDepositWithdrawHistoryResponse > binance::fiat::rest_api::Api::get_fiat_deposit_withdraw_history ( const GetFiatDepositWithdrawHistoryParams & params) const
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:

  • If beginTime and endTime are not sent, recent 30-day data is returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-fiat/api/rest-api/~#get-fiat-deposit-withdraw-history

◆ async_get_fiat_deposit_withdraw_history()

template<class CompletionToken>
auto binance::fiat::rest_api::Api::async_get_fiat_deposit_withdraw_history ( const GetFiatDepositWithdrawHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_fiat_payments_history()

common::RestApiResponse< GetFiatPaymentsHistoryResponse > binance::fiat::rest_api::Api::get_fiat_payments_history ( const GetFiatPaymentsHistoryParams & params) const
nodiscard

Get Fiat Payments History (USER_DATA).

GET /sapi/v1/fiat/payments.

Get Fiat Payments History

Weight(IP): 1

Security Type: USER_DATA

Notes:

  • If beginTime and endTime are not sent, recent 30-day data is returned.
  • paymentMethod is returned only when querying buy history (transactionType=0).
  • Supported payment methods: Cash Balance, Credit Card, Online Banking, Bank Transfer.

See https://developers.binance.com/en/docs/catalog/investment-and-services-fiat/api/rest-api/~#get-fiat-payments-history

◆ async_get_fiat_payments_history()

template<class CompletionToken>
auto binance::fiat::rest_api::Api::async_get_fiat_payments_history ( const GetFiatPaymentsHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_fiat_payments_history().

Completes with void(std::exception_ptr, common::RestApiResponse<GetFiatPaymentsHistoryResponse>).

◆ get_order_detail()

common::RestApiResponse< GetOrderDetailResponse > binance::fiat::rest_api::Api::get_order_detail ( const GetOrderDetailParams & params) const
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

See https://developers.binance.com/en/docs/catalog/investment-and-services-fiat/api/rest-api/~#get-order-detail

◆ async_get_order_detail()

template<class CompletionToken>
auto binance::fiat::rest_api::Api::async_get_order_detail ( const GetOrderDetailParams & params,
CompletionToken && token ) const
inline

Asynchronous get_order_detail().

Completes with void(std::exception_ptr, common::RestApiResponse<GetOrderDetailResponse>).