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

#include <api.hpp>

Public Member Functions

 Api (std::shared_ptr< common::RestClient > client)
common::RestApiResponse< GetC2CTradeHistoryResponse > get_c2c_trade_history (const GetC2CTradeHistoryParams &params={}) const
 Get C2C Trade History (USER_DATA).
template<class CompletionToken>
auto async_get_c2c_trade_history (const GetC2CTradeHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_c2c_trade_history().

Constructor & Destructor Documentation

◆ Api()

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

Member Function Documentation

◆ get_c2c_trade_history()

common::RestApiResponse< GetC2CTradeHistoryResponse > binance::c2c::rest_api::Api::get_c2c_trade_history ( const GetC2CTradeHistoryParams & params = {}) const
nodiscard

Get C2C Trade History (USER_DATA).

GET /sapi/v1/c2c/orderMatch/listUserOrderHistory.

Get C2C (also known as P2P) trade history, including both buy and sell orders.

Weight(IP): 1

Security Type: USER_DATA

Notes:

  • The max interval between startTimestamp and endTimestamp is 30 days.
  • If startTimestamp and endTimestamp are not sent, the recent 30 days' data is returned.
  • You can only view data from the past 6 months. For all C2C orders, check https://c2c.binance.com/en/fiatOrder.

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

◆ async_get_c2c_trade_history()

template<class CompletionToken>
auto binance::c2c::rest_api::Api::async_get_c2c_trade_history ( const GetC2CTradeHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_c2c_trade_history().

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