|
| enum class | Environment : std::uint8_t { Production
, Demo
} |
| | Kalshi deployment. More...
|
| |
| enum class | ErrorCode : std::uint8_t {
NetworkError
, AuthenticationError
, InvalidRequest
, NotFound
,
RateLimited
, ServerError
, ParseError
, SigningError
,
InvalidKey
, Unknown
} |
| |
| enum class | HttpMethod : std::uint8_t { GET
, POST
, PUT
, DEL
} |
| | HTTP methods. More...
|
| |
| enum class | Action : std::uint8_t { Unknown
, Buy
, Sell
} |
| | Deprecated. More...
|
| |
| enum class | ApiKeyScope : std::uint8_t {
Unknown
, Read
, Write
, ReadBlockTradeAccept
,
ReadPortfolioBalance
, WriteTrade
, WriteTransfer
, WriteFcmRisk
,
WriteBlockTradeAccept
} |
| | Scope granted to an API key. More...
|
| |
| enum class | ApiKeyType : std::uint8_t { Unknown
, Rsa
, Ed25519
} |
| | Signature algorithm of an API key pair. More...
|
| |
| enum class | BookSide : std::uint8_t { Unknown
, Bid
, Ask
} |
| | Side of the book for an order or trade. More...
|
| |
| enum class | DepositStatus : std::uint8_t {
Unknown
, Pending
, Applied
, Failed
,
Returned
} |
| | Current status of the deposit. More...
|
| |
| enum class | DepositType : std::uint8_t {
Unknown
, Ach
, Wire
, Crypto
,
Debit
, Apm
} |
| | Payment method used for the deposit. More...
|
| |
| enum class | ExchangeInstance : std::uint8_t { Unknown
, EventContract
, Margined
} |
| | The exchange instance type. More...
|
| |
| enum class | FeeType : std::uint8_t {
Unknown
, Quadratic
, QuadraticWithMakerFees
, QuadraticWithComboMakerFees
,
Flat
} |
| | Fee type for a series or scheduled fee override. More...
|
| |
| enum class | GetEventsStatus : std::uint8_t {
Unknown
, Unopened
, Open
, Closed
,
Settled
} |
| | Filter by event status. More...
|
| |
| enum class | GetHistoricalMarketsMveFilter : std::uint8_t { Unknown
, Exclude
} |
| | Filter by multivariate events (combos). More...
|
| |
| enum class | GetIncentiveProgramsStatus : std::uint8_t {
Unknown
, All
, Active
, Upcoming
,
Closed
, PaidOut
} |
| | Status filter. More...
|
| |
| enum class | GetIncentiveProgramsType : std::uint8_t {
Unknown
, All
, Liquidity
, Volume
,
MarginMakerVolume
, MarginTakerVolume
} |
| | Type filter. More...
|
| |
| enum class | GetMarketsMveFilter : std::uint8_t { Unknown
, Only
, Exclude
} |
| | Filter by multivariate events (combos). More...
|
| |
| enum class | GetMarketsStatus : std::uint8_t {
Unknown
, Unopened
, Open
, Paused
,
Closed
, Settled
} |
| | Filter by market status. More...
|
| |
| enum class | GetMultivariateEventCollectionsStatus : std::uint8_t { Unknown
, Unopened
, Open
, Closed
} |
| | Only return collections of a certain status. More...
|
| |
| enum class | IncentiveProgramIncentiveType : std::uint8_t {
Unknown
, Liquidity
, Volume
, MarginMakerVolume
,
MarginTakerVolume
} |
| | Type of incentive program. More...
|
| |
| enum class | IntraExchangeInstanceTransferStatus : std::uint8_t { Unknown
, Pending
, Complete
} |
| | Transfer status. More...
|
| |
| enum class | MarketResult : std::uint8_t {
Unknown
, Yes
, No
, Scalar
,
Unset
} |
| |
| enum class | MarketStatus : std::uint8_t {
Unknown
, Initialized
, Inactive
, Active
,
Closed
, Determined
, Disputed
, Amended
,
Finalized
} |
| | The current status of the market in its lifecycle. More...
|
| |
| enum class | MarketType : std::uint8_t { Unknown
, Binary
, Scalar
} |
| | Identifies the type of market. More...
|
| |
| enum class | OrderStatus : std::uint8_t { Unknown
, Resting
, Canceled
, Executed
} |
| | The status of an order. More...
|
| |
| enum class | OrderType : std::uint8_t { Unknown
, Limit
, Market
} |
| |
| enum class | OutcomeSide : std::uint8_t { Unknown
, Yes
, No
} |
| | Outcome side. More...
|
| |
| enum class | QuoteStatus : std::uint8_t {
Unknown
, Open
, Accepted
, Confirmed
,
Executed
, Cancelled
} |
| | Current status of the quote. More...
|
| |
| enum class | RFQStatus : std::uint8_t { Unknown
, Open
, Closed
} |
| | Current status of the RFQ (open, closed) More...
|
| |
| enum class | RestingMarginReservation : std::uint8_t { Unknown
, None
, Max
, Sum
} |
| | Collateral an automatic rebalance leaves behind for resting orders. More...
|
| |
| enum class | SelfTradePreventionType : std::uint8_t { Unknown
, TakerAtCross
, Maker
} |
| | The self-trade prevention type for orders. More...
|
| |
| enum class | SettlementMarketResult : std::uint8_t { Unknown
, Yes
, No
, Scalar
} |
| | The outcome of the market settlement. More...
|
| |
| enum class | SettlementStatus : std::uint8_t { Unknown
, All
, Unsettled
, Settled
} |
| | Settlement status of the markets to return. More...
|
| |
| enum class | Side : std::uint8_t { Unknown
, Yes
, No
} |
| | Deprecated. More...
|
| |
| enum class | StrikeType : std::uint8_t {
Unknown
, Greater
, GreaterOrEqual
, Less
,
LessOrEqual
, Between
, Functional
, Custom
,
Structured
} |
| | Strike type defines how the market strike is defined and evaluated. More...
|
| |
| enum class | TimeInForce : std::uint8_t { Unknown
, FillOrKill
, GoodTillCanceled
, ImmediateOrCancel
} |
| | Specifies how long the order remains active. More...
|
| |
| enum class | UserFilter : std::uint8_t { Unknown
, Self
} |
| | Omit or leave empty to return all results. More...
|
| |
| enum class | KeyType : std::uint8_t { Rsa
, Ed25519
} |
| | Algorithm of the loaded API key. More...
|
| |
| enum class | WsState : std::uint8_t { Disconnected
, Connecting
, Connected
, Reconnecting
} |
| |
|
| RateLimitConfig | rate_limit_config (const GetAccountApiLimitsResponse &limits, const GetAccountEndpointCostsResponse &costs) |
| | Builds a RateLimitedTransport config from get_account_api_limits() and get_account_endpoint_costs().
|
| |
| constexpr std::string_view | rest_base_url (Environment environment) noexcept |
| | REST base URL, including the /trade-api/v2 prefix that requests sign.
|
| |
| constexpr std::string_view | websocket_url (Environment environment) noexcept |
| | WebSocket URL for streaming market and account data.
|
| |
| Result< std::int64_t > | to_cents (std::string_view dollars) |
| | Converts a dollar string such as "0.5600" to whole cents.
|
| |
| Result< std::int64_t > | to_contracts (std::string_view count) |
| | Converts a fixed-point count such as "10.00" to whole contracts.
|
| |
| Result< Timestamp > | parse_timestamp (std::string_view text) |
| | Parses the RFC 3339 timestamps Kalshi returns, such as "2026-09-25T14:00:00.123Z" or "2026-09-25T10:00:00-04:00".
|
| |
| constexpr OutcomeSide | outcome_side (Side side, Action action) noexcept |
| | The outcome a (side, action) pair is exposed to: buying yes or selling no is yes exposure.
|
| |
| constexpr BookSide | book_side (Side side, Action action) noexcept |
| | The single-book side for a (side, action) pair: yes exposure bids.
|
| |
| constexpr std::string_view | to_string (HttpMethod method) noexcept |
| |
| constexpr std::string_view | to_string (Action value) noexcept |
| |
| constexpr std::string_view | to_string (ApiKeyScope value) noexcept |
| |
| constexpr std::string_view | to_string (ApiKeyType value) noexcept |
| |
| constexpr std::string_view | to_string (BookSide value) noexcept |
| |
| constexpr std::string_view | to_string (DepositStatus value) noexcept |
| |
| constexpr std::string_view | to_string (DepositType value) noexcept |
| |
| constexpr std::string_view | to_string (ExchangeInstance value) noexcept |
| |
| constexpr std::string_view | to_string (FeeType value) noexcept |
| |
| constexpr std::string_view | to_string (GetEventsStatus value) noexcept |
| |
| constexpr std::string_view | to_string (GetHistoricalMarketsMveFilter value) noexcept |
| |
| constexpr std::string_view | to_string (GetIncentiveProgramsStatus value) noexcept |
| |
| constexpr std::string_view | to_string (GetIncentiveProgramsType value) noexcept |
| |
| constexpr std::string_view | to_string (GetMarketsMveFilter value) noexcept |
| |
| constexpr std::string_view | to_string (GetMarketsStatus value) noexcept |
| |
| constexpr std::string_view | to_string (GetMultivariateEventCollectionsStatus value) noexcept |
| |
| constexpr std::string_view | to_string (IncentiveProgramIncentiveType value) noexcept |
| |
| constexpr std::string_view | to_string (IntraExchangeInstanceTransferStatus value) noexcept |
| |
| constexpr std::string_view | to_string (MarketResult value) noexcept |
| |
| constexpr std::string_view | to_string (MarketStatus value) noexcept |
| |
| constexpr std::string_view | to_string (MarketType value) noexcept |
| |
| constexpr std::string_view | to_string (OrderStatus value) noexcept |
| |
| constexpr std::string_view | to_string (OrderType value) noexcept |
| |
| constexpr std::string_view | to_string (OutcomeSide value) noexcept |
| |
| constexpr std::string_view | to_string (QuoteStatus value) noexcept |
| |
| constexpr std::string_view | to_string (RFQStatus value) noexcept |
| |
| constexpr std::string_view | to_string (RestingMarginReservation value) noexcept |
| |
| constexpr std::string_view | to_string (SelfTradePreventionType value) noexcept |
| |
| constexpr std::string_view | to_string (SettlementMarketResult value) noexcept |
| |
| constexpr std::string_view | to_string (SettlementStatus value) noexcept |
| |
| constexpr std::string_view | to_string (Side value) noexcept |
| |
| constexpr std::string_view | to_string (StrikeType value) noexcept |
| |
| constexpr std::string_view | to_string (TimeInForce value) noexcept |
| |
| constexpr std::string_view | to_string (UserFilter value) noexcept |
| |
| template<class Fetch , class Response , class Items > |
| Result< std::vector< typename Items::value_type > > | collect_pages (Fetch &&fetch, Items Response::*items, std::size_t max_pages=std::numeric_limits< std::size_t >::max()) |
| | Follows cursors through a list operation and collects every page's items.
|
| |
| bool | should_retry (HttpMethod method, const HttpResponse &response, const RetryPolicy &policy) noexcept |
| |
| bool | should_retry (HttpMethod method, const Error &error, const RetryPolicy &policy) noexcept |
| |
| std::chrono::milliseconds | retry_delay (std::uint8_t attempt, const RetryPolicy &policy) |
| | Backoff before the attempt after attempt (1-based), with jitter applied.
|
| |
| constexpr std::string_view | to_string (WsState state) noexcept |
| |