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

#include <api.hpp>

Public Member Functions

 Api (std::shared_ptr< common::RestClient > client)
common::RestApiResponse< GetPayTradeHistoryResponse > get_pay_trade_history (const GetPayTradeHistoryParams &params={}) const
 Get Pay Trade History.
template<class CompletionToken>
auto async_get_pay_trade_history (const GetPayTradeHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_pay_trade_history().

Constructor & Destructor Documentation

◆ Api()

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

Member Function Documentation

◆ get_pay_trade_history()

common::RestApiResponse< GetPayTradeHistoryResponse > binance::pay::rest_api::Api::get_pay_trade_history ( const GetPayTradeHistoryParams & params = {}) const
nodiscard

Get Pay Trade History.

GET /sapi/v1/pay/transactions.

Get Pay Trade History

Weight(UID): 3000

Notes:

  • If startTime and endTime are not sent, the recent 90 days' data will be returned.
  • The max interval between startTime and endTime is 90 days.
  • Support for querying orders within the last 18 months.
  • payerInfo and receiverInfo return different fields in different orderType values:
    • C2C sender: payerInfo=binanceId; receiverInfo=name, binanceId/accountId/email/countryCode/phoneNumber/mobileCode (based on user input).
    • C2C receiver: payerInfo=name; receiverInfo=binanceId.
    • CRYPTO_BOX sender: payerInfo=binanceId; receiverInfo=name (always "Crypto Box").
    • CRYPTO_BOX receiver: payerInfo=name; receiverInfo=binanceId.
    • PAY sender: payerInfo=binanceId; receiverInfo=name.
    • PAY receiver: payerInfo=name; receiverInfo=binanceId, name.
    • PAY_REFUND sender: payerInfo=binanceId, name; receiverInfo=name, accountId.
    • PAY_REFUND receiver: payerInfo=name; receiverInfo=binanceId.
    • PAYOUT sender: payerInfo=binanceId, name; receiverInfo=name, accountId.
    • PAYOUT receiver: payerInfo=name; receiverInfo=binanceId.
    • CRYPTO_BOX_RF receiver: payerInfo=name (always "Crypto Box"); receiverInfo=binanceId.
    • REMITTANCE sender: payerInfo=binanceId; receiverInfo=name, institutionName, cardNumber, digitalWalletId.

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

◆ async_get_pay_trade_history()

template<class CompletionToken>
auto binance::pay::rest_api::Api::async_get_pay_trade_history ( const GetPayTradeHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_pay_trade_history().

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