|
kalshi-cpp 0.6.2
C++23 client for Kalshi's Predictions API
|
#include <kalshi/models.hpp>
Public Attributes | |
| std::string | id |
| UUID of the quote. | |
| std::string | rfq_id |
| UUID of the RFQ this quote is responding to. | |
| std::string | creator_id |
| Public communications ID of the quote creator. | |
| std::string | rfq_creator_id |
| Public communications ID of the RFQ creator. | |
| std::string | market_ticker |
| The ticker of the market this quote is for. | |
| FixedPointCount | contracts_fp |
| String representation of the number of contracts in the quote. | |
| FixedPointDollars | yes_bid_dollars |
| Bid price for YES contracts, in dollars. | |
| FixedPointDollars | no_bid_dollars |
| Bid price for NO contracts, in dollars. | |
| std::string | created_ts |
| Timestamp when the quote was created. | |
| std::string | updated_ts |
| Timestamp when the quote was last updated. | |
| QuoteStatus | status {} |
| Current status of the quote. | |
| std::optional< Side > | accepted_side |
| The side that was accepted (yes or no) | |
| std::optional< std::string > | accepted_ts |
| Timestamp when the quote was accepted. | |
| std::optional< std::string > | confirmed_ts |
| Timestamp when the quote was confirmed. | |
| std::optional< std::string > | executed_ts |
| Timestamp when the quote was executed. | |
| std::optional< std::string > | cancelled_ts |
| Timestamp when the quote was cancelled. | |
| std::optional< bool > | rest_remainder |
| Whether to rest the remainder of the quote after execution. | |
| std::optional< bool > | post_only |
| Whether the quote creator's order is post-only (visible when the caller is the quote creator) | |
| std::optional< std::string > | cancellation_reason |
| Reason for quote cancellation if cancelled. | |
| std::optional< std::string > | creator_user_id |
| User ID of the quote creator (private field) | |
| std::optional< std::string > | rfq_creator_user_id |
| User ID of the RFQ creator (private field) | |
| std::optional< FixedPointDollars > | rfq_target_cost_dollars |
| Total value requested in the RFQ in dollars. | |
| std::optional< bool > | target_cost_excludes_fees |
| True when the RFQ's target cost is principal-only and the contracts-offered sizes were computed without reserving taker fees (fees are charged on top of the target cost). | |
| std::optional< std::string > | rfq_creator_order_id |
| Order ID for the RFQ creator (private field) | |
| std::optional< std::string > | creator_order_id |
| Order ID for the quote creator (private field) | |
| std::optional< std::int64_t > | creator_subaccount |
| Subaccount number of the quote creator (visible when the caller is the quote creator) | |
| std::optional< std::int64_t > | rfq_creator_subaccount |
| Subaccount number of the RFQ creator (visible when the caller is the RFQ creator) | |
| std::optional< FixedPointCount > | yes_contracts_fp |
| Number of YES contracts offered in the quote (fixed-point) | |
| std::optional< FixedPointCount > | no_contracts_fp |
| Number of NO contracts offered in the quote (fixed-point) | |
| std::string kalshi::Quote::id |
UUID of the quote.
| std::string kalshi::Quote::rfq_id |
UUID of the RFQ this quote is responding to.
| std::string kalshi::Quote::creator_id |
Public communications ID of the quote creator.
| std::string kalshi::Quote::rfq_creator_id |
Public communications ID of the RFQ creator.
| std::string kalshi::Quote::market_ticker |
The ticker of the market this quote is for.
| FixedPointCount kalshi::Quote::contracts_fp |
String representation of the number of contracts in the quote.
| FixedPointDollars kalshi::Quote::yes_bid_dollars |
Bid price for YES contracts, in dollars.
| FixedPointDollars kalshi::Quote::no_bid_dollars |
Bid price for NO contracts, in dollars.
| std::string kalshi::Quote::created_ts |
Timestamp when the quote was created.
| std::string kalshi::Quote::updated_ts |
Timestamp when the quote was last updated.
| QuoteStatus kalshi::Quote::status {} |
Current status of the quote.
| std::optional<Side> kalshi::Quote::accepted_side |
The side that was accepted (yes or no)
| std::optional<std::string> kalshi::Quote::accepted_ts |
Timestamp when the quote was accepted.
| std::optional<std::string> kalshi::Quote::confirmed_ts |
Timestamp when the quote was confirmed.
| std::optional<std::string> kalshi::Quote::executed_ts |
Timestamp when the quote was executed.
| std::optional<std::string> kalshi::Quote::cancelled_ts |
Timestamp when the quote was cancelled.
| std::optional<bool> kalshi::Quote::rest_remainder |
Whether to rest the remainder of the quote after execution.
| std::optional<bool> kalshi::Quote::post_only |
Whether the quote creator's order is post-only (visible when the caller is the quote creator)
| std::optional<std::string> kalshi::Quote::cancellation_reason |
Reason for quote cancellation if cancelled.
| std::optional<std::string> kalshi::Quote::creator_user_id |
User ID of the quote creator (private field)
| std::optional<std::string> kalshi::Quote::rfq_creator_user_id |
User ID of the RFQ creator (private field)
| std::optional<FixedPointDollars> kalshi::Quote::rfq_target_cost_dollars |
Total value requested in the RFQ in dollars.
| std::optional<bool> kalshi::Quote::target_cost_excludes_fees |
True when the RFQ's target cost is principal-only and the contracts-offered sizes were computed without reserving taker fees (fees are charged on top of the target cost).
| std::optional<std::string> kalshi::Quote::rfq_creator_order_id |
| std::optional<std::string> kalshi::Quote::creator_order_id |
Order ID for the quote creator (private field)
| std::optional<std::int64_t> kalshi::Quote::creator_subaccount |
Subaccount number of the quote creator (visible when the caller is the quote creator)
| std::optional<std::int64_t> kalshi::Quote::rfq_creator_subaccount |
| std::optional<FixedPointCount> kalshi::Quote::yes_contracts_fp |
Number of YES contracts offered in the quote (fixed-point)
| std::optional<FixedPointCount> kalshi::Quote::no_contracts_fp |
Number of NO contracts offered in the quote (fixed-point)