kalshi-cpp 0.6.2
C++23 client for Kalshi's Predictions API
Loading...
Searching...
No Matches
kalshi::Quote Struct Reference

#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)
 

Member Data Documentation

◆ id

std::string kalshi::Quote::id

UUID of the quote.

◆ rfq_id

std::string kalshi::Quote::rfq_id

UUID of the RFQ this quote is responding to.

◆ creator_id

std::string kalshi::Quote::creator_id

Public communications ID of the quote creator.

◆ rfq_creator_id

std::string kalshi::Quote::rfq_creator_id

Public communications ID of the RFQ creator.

◆ market_ticker

std::string kalshi::Quote::market_ticker

The ticker of the market this quote is for.

◆ contracts_fp

FixedPointCount kalshi::Quote::contracts_fp

String representation of the number of contracts in the quote.

◆ yes_bid_dollars

FixedPointDollars kalshi::Quote::yes_bid_dollars

Bid price for YES contracts, in dollars.

◆ no_bid_dollars

FixedPointDollars kalshi::Quote::no_bid_dollars

Bid price for NO contracts, in dollars.

◆ created_ts

std::string kalshi::Quote::created_ts

Timestamp when the quote was created.

◆ updated_ts

std::string kalshi::Quote::updated_ts

Timestamp when the quote was last updated.

◆ status

QuoteStatus kalshi::Quote::status {}

Current status of the quote.

◆ accepted_side

std::optional<Side> kalshi::Quote::accepted_side

The side that was accepted (yes or no)

◆ accepted_ts

std::optional<std::string> kalshi::Quote::accepted_ts

Timestamp when the quote was accepted.

◆ confirmed_ts

std::optional<std::string> kalshi::Quote::confirmed_ts

Timestamp when the quote was confirmed.

◆ executed_ts

std::optional<std::string> kalshi::Quote::executed_ts

Timestamp when the quote was executed.

◆ cancelled_ts

std::optional<std::string> kalshi::Quote::cancelled_ts

Timestamp when the quote was cancelled.

◆ rest_remainder

std::optional<bool> kalshi::Quote::rest_remainder

Whether to rest the remainder of the quote after execution.

◆ post_only

std::optional<bool> kalshi::Quote::post_only

Whether the quote creator's order is post-only (visible when the caller is the quote creator)

◆ cancellation_reason

std::optional<std::string> kalshi::Quote::cancellation_reason

Reason for quote cancellation if cancelled.

◆ creator_user_id

std::optional<std::string> kalshi::Quote::creator_user_id

User ID of the quote creator (private field)

◆ rfq_creator_user_id

std::optional<std::string> kalshi::Quote::rfq_creator_user_id

User ID of the RFQ creator (private field)

◆ rfq_target_cost_dollars

std::optional<FixedPointDollars> kalshi::Quote::rfq_target_cost_dollars

Total value requested in the RFQ in dollars.

◆ target_cost_excludes_fees

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).

◆ rfq_creator_order_id

std::optional<std::string> kalshi::Quote::rfq_creator_order_id

Order ID for the RFQ creator (private field)

◆ creator_order_id

std::optional<std::string> kalshi::Quote::creator_order_id

Order ID for the quote creator (private field)

◆ creator_subaccount

std::optional<std::int64_t> kalshi::Quote::creator_subaccount

Subaccount number of the quote creator (visible when the caller is the quote creator)

◆ rfq_creator_subaccount

std::optional<std::int64_t> kalshi::Quote::rfq_creator_subaccount

Subaccount number of the RFQ creator (visible when the caller is the RFQ creator)

◆ yes_contracts_fp

std::optional<FixedPointCount> kalshi::Quote::yes_contracts_fp

Number of YES contracts offered in the quote (fixed-point)

◆ no_contracts_fp

std::optional<FixedPointCount> kalshi::Quote::no_contracts_fp

Number of NO contracts offered in the quote (fixed-point)


The documentation for this struct was generated from the following file: