|
kalshi-cpp 0.6.2
C++23 client for Kalshi's Predictions API
|
Options for subscribe; the client sets the channel. More...
#include <kalshi/ws_models.hpp>
Public Attributes | |
| std::optional< std::string > | market_ticker |
| Subscribe to a single market. | |
| std::vector< std::string > | market_tickers |
| Subscribe to multiple markets. | |
| std::optional< std::string > | market_id |
| Subscribe to a single market by UUID (ticker only; mutually exclusive with market_ids and market_ticker(s)) | |
| std::vector< std::string > | market_ids |
| Subscribe to multiple markets by UUID (ticker only; mutually exclusive with market_id and market_ticker(s)) | |
| std::optional< bool > | send_initial_snapshot |
| If true, receive an initial snapshot for requested market tickers on the ticker channel. | |
| std::optional< bool > | skip_ticker_ack |
| If true, OK responses omit the market_tickers/market_ids lists for this subscription. | |
| std::optional< bool > | use_yes_price |
| Orderbook channel only. | |
| std::optional< UserFilter > | user_filter |
| Communications channel only. | |
| std::optional< std::int64_t > | shard_factor |
| Number of shards for communications channel fanout (optional) | |
| std::optional< std::int64_t > | shard_key |
| Shard key for communications channel fanout (requires shard_factor) | |
| std::vector< std::string > | index_ids |
| cfbenchmarks_value and cfbenchmarks_value_5hz channels only. | |
| std::vector< std::string > | underlying_tickers |
| pyth_value channel only. | |
Options for subscribe; the client sets the channel.
| std::optional<std::string> kalshi::ws::SubscribeParams::market_ticker |
Subscribe to a single market.
| std::vector<std::string> kalshi::ws::SubscribeParams::market_tickers |
Subscribe to multiple markets.
| std::optional<std::string> kalshi::ws::SubscribeParams::market_id |
Subscribe to a single market by UUID (ticker only; mutually exclusive with market_ids and market_ticker(s))
| std::vector<std::string> kalshi::ws::SubscribeParams::market_ids |
Subscribe to multiple markets by UUID (ticker only; mutually exclusive with market_id and market_ticker(s))
| std::optional<bool> kalshi::ws::SubscribeParams::send_initial_snapshot |
If true, receive an initial snapshot for requested market tickers on the ticker channel.
| std::optional<bool> kalshi::ws::SubscribeParams::skip_ticker_ack |
If true, OK responses omit the market_tickers/market_ids lists for this subscription.
| std::optional<bool> kalshi::ws::SubscribeParams::use_yes_price |
Orderbook channel only.
| std::optional<UserFilter> kalshi::ws::SubscribeParams::user_filter |
Communications channel only.
| std::optional<std::int64_t> kalshi::ws::SubscribeParams::shard_factor |
Number of shards for communications channel fanout (optional)
| std::optional<std::int64_t> kalshi::ws::SubscribeParams::shard_key |
Shard key for communications channel fanout (requires shard_factor)
| std::vector<std::string> kalshi::ws::SubscribeParams::index_ids |
cfbenchmarks_value and cfbenchmarks_value_5hz channels only.
| std::vector<std::string> kalshi::ws::SubscribeParams::underlying_tickers |
pyth_value channel only.