Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::w3w_prediction::websocket_streams::PredictionOrderBookByMarketIdParams Struct Reference

#include <api.hpp>

Public Attributes

common::Required< std::string > market_id
 Market ID to subscribe to — the marketId inside markets[] returned by market/list or market/detail.

Member Data Documentation

◆ market_id

common::Required<std::string> binance::w3w_prediction::websocket_streams::PredictionOrderBookByMarketIdParams::market_id

Market ID to subscribe to — the marketId inside markets[] returned by market/list or market/detail.

It is not marketTopicId and not externalId. A wrong id is never rejected: subscribing with marketTopicId, externalId, or with a closed or resolved market returns the same successful COMMAND reply as a correct id and then pushes nothing at all, so a stream that stays silent is far more likely a wrong id than a broken connection.