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

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

#include <user_streams_api.hpp>

Public Member Functions

 UserStreamsApi (std::shared_ptr< common::WebsocketStreams > client)
common::WebsocketStream< OrderReportStreamResponse > order_report_stream (const OrderReportStreamParams &params) const
 Order Report Stream.

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

◆ UserStreamsApi()

binance::stocks::websocket_streams::UserStreamsApi::UserStreamsApi ( std::shared_ptr< common::WebsocketStreams > client)
explicit

Member Function Documentation

◆ order_report_stream()

common::WebsocketStream< OrderReportStreamResponse > binance::stocks::websocket_streams::UserStreamsApi::order_report_stream ( const OrderReportStreamParams & params) const
nodiscard

Order Report Stream.

<listenKey>@orderReport.

Real-time push of the authenticated user's order state transitions — both open-state updates (ORDER_UPDATE) and terminal-state notifications (ORDER_TERMINAL). Prerequisite: obtain a listenKey via the Listen Key endpoint first.

See https://developers.binance.com/en/docs/catalog/advanced-trading-stocks-trading/api/ws-streams/user-streams#order-report-stream