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

Each method subscribes to one stream (or queues the subscription while the connection reconnects) and returns its handle. More...

#include <api.hpp>

Public Member Functions

 Api (std::shared_ptr< common::WebsocketStreams > client)
common::WebsocketStream< ComAnnouncementEnResponse > com_announcement_en () const
 com_announcement_en.

Detailed Description

Each method subscribes to one stream (or queues the subscription while the connection reconnects) and returns its handle.

Destroying the handle, or calling unsubscribe() on it, ends the subscription.

Constructor & Destructor Documentation

◆ Api()

binance::cms::websocket_streams::Api::Api ( std::shared_ptr< common::WebsocketStreams > client)
explicit

Member Function Documentation

◆ com_announcement_en()

common::WebsocketStream< ComAnnouncementEnResponse > binance::cms::websocket_streams::Api::com_announcement_en ( ) const
nodiscard

com_announcement_en.

Receive push notifications hen Binance publishes announcements in English (language code: en).

See https://developers.binance.com/en/docs/products/announcements/announcement