Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::spot::websocket_api::UserDataStreamUnsubscribeParams Struct Reference

#include <user_data_stream_api.hpp>

Public Attributes

std::optional< std::string > id = std::nullopt
 Client-generated request identifier.
std::optional< std::int64_t > subscription_id = std::nullopt
 When called with no parameter, this will close all subscriptions.

Member Data Documentation

◆ id

std::optional<std::string> binance::spot::websocket_api::UserDataStreamUnsubscribeParams::id = std::nullopt

Client-generated request identifier.

◆ subscription_id

std::optional<std::int64_t> binance::spot::websocket_api::UserDataStreamUnsubscribeParams::subscription_id = std::nullopt

When called with no parameter, this will close all subscriptions.

When called with the subscriptionId parameter, this will attempt to close the subscription with that subscription id, if it exists.