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

#include <user_data_streams_api.hpp>

Public Member Functions

 UserDataStreamsApi (std::shared_ptr< common::RestClient > client)
common::RestApiResponse< CreateRenewListenKeyResponse > create_renew_listen_key (const CreateRenewListenKeyParams &params={}) const
 Create / Renew Listen Key (USER_STREAM).
template<class CompletionToken>
auto async_create_renew_listen_key (const CreateRenewListenKeyParams &params, CompletionToken &&token) const
 Asynchronous create_renew_listen_key().

Constructor & Destructor Documentation

◆ UserDataStreamsApi()

binance::stocks::rest_api::UserDataStreamsApi::UserDataStreamsApi ( std::shared_ptr< common::RestClient > client)
explicit

Member Function Documentation

◆ create_renew_listen_key()

common::RestApiResponse< CreateRenewListenKeyResponse > binance::stocks::rest_api::UserDataStreamsApi::create_renew_listen_key ( const CreateRenewListenKeyParams & params = {}) const
nodiscard

Create / Renew Listen Key (USER_STREAM).

POST /sapi/v1/equity/listenKey.

Create a new stock user-data-stream listenKey, or renew an existing one. Calling this endpoint for the same user with an active listenKey extends its validity; if there is no active key, a new one is issued. Use the returned listenKey to subscribe to the stock user data stream.

Weight: 1

Security Type: USER_STREAM

See https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/rest-api/user-data-streams#create-renew-listen-key

◆ async_create_renew_listen_key()

template<class CompletionToken>
auto binance::stocks::rest_api::UserDataStreamsApi::async_create_renew_listen_key ( const CreateRenewListenKeyParams & params,
CompletionToken && token ) const
inline

Asynchronous create_renew_listen_key().

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