|
kalshi-cpp 0.6.2
C++23 client for Kalshi's Predictions API
|
Client for the Kalshi Predictions REST API. More...
#include <kalshi/api.hpp>
Public Member Functions | |
| KalshiClient (HttpClient client) | |
| Uses a libcurl client. It signs requests when constructed with a Signer. | |
| KalshiClient (std::shared_ptr< const HttpTransport > transport) | |
| Uses any transport, such as RetryingTransport or a test double. | |
| ~KalshiClient () | |
| KalshiClient (KalshiClient &&) noexcept | |
| KalshiClient & | operator= (KalshiClient &&) noexcept |
| KalshiClient (const KalshiClient &)=delete | |
| KalshiClient & | operator= (const KalshiClient &)=delete |
| const HttpTransport & | transport () const noexcept |
| Result< GetAccountApiLimitsResponse > | get_account_api_limits () |
Get Account API Limits GET /account/limits | |
| Result< void > | upgrade_account_api_usage_level () |
Upgrade Account API Usage Level POST /account/api_usage_level/upgrade | |
| Result< std::vector< AccountApiUsageLevelVolumeProgress > > | get_account_api_usage_level_volume_progress () |
Get Account API Usage Level Volume Progress GET /account/api_usage_level/volume_progress | |
| Result< GetAccountEndpointCostsResponse > | get_account_endpoint_costs () |
List Non-Default Endpoint Costs GET /account/endpoint_costs | |
| Result< GetApiKeysResponse > | get_api_keys (const GetApiKeysParams ¶ms={}) |
Get API Keys GET /api_keys | |
| Result< CreateApiKeyResponse > | create_api_key (const CreateApiKeyRequest &body) |
Create API Key POST /api_keys | |
| Result< GenerateApiKeyResponse > | generate_api_key (const GenerateApiKeyRequest &body) |
Generate API Key POST /api_keys/generate | |
| Result< void > | delete_api_key (std::string_view api_key) |
Delete API Key DELETE /api_keys/{api_key} | |
| Result< std::string > | get_communications_id () |
Get Communications ID GET /communications/id | |
| Result< GetBlockTradeProposalsResponse > | get_block_trade_proposals (const GetBlockTradeProposalsParams ¶ms={}) |
Get Block Trade Proposals GET /communications/block-trade-proposals | |
| Result< std::string > | propose_block_trade (const ProposeBlockTradeRequest &body) |
Propose Block Trade POST /communications/block-trade-proposals | |
| Result< void > | accept_block_trade_proposal (std::string_view block_trade_proposal_id, const AcceptBlockTradeProposalRequest &body) |
Accept Block Trade Proposal POST /communications/block-trade-proposals/{block_trade_proposal_id}/accept | |
| Result< GetRFQsResponse > | get_rfqs (const GetRfqsParams ¶ms={}) |
Get RFQs GET /communications/rfqs | |
| Result< std::string > | create_rfq (const CreateRFQRequest &body) |
Create RFQ POST /communications/rfqs | |
| Result< RFQ > | get_rfq (std::string_view rfq_id) |
Get RFQ GET /communications/rfqs/{rfq_id} | |
| Result< void > | delete_rfq (std::string_view rfq_id) |
Delete RFQ DELETE /communications/rfqs/{rfq_id} | |
| Result< Quote > | get_rfq_quote (std::string_view rfq_id, std::string_view quote_id) |
Get RFQ Quote GET /communications/rfqs/{rfq_id}/quotes/{quote_id} | |
| Result< void > | delete_rfq_quote (std::string_view rfq_id, std::string_view quote_id) |
Delete RFQ Quote DELETE /communications/rfqs/{rfq_id}/quotes/{quote_id} | |
| Result< void > | accept_rfq_quote (std::string_view rfq_id, std::string_view quote_id, const AcceptQuoteRequest &body) |
Accept RFQ Quote PUT /communications/rfqs/{rfq_id}/quotes/{quote_id}/accept | |
| Result< void > | confirm_rfq_quote (std::string_view rfq_id, std::string_view quote_id) |
Confirm RFQ Quote PUT /communications/rfqs/{rfq_id}/quotes/{quote_id}/confirm | |
| Result< GetQuotesResponse > | get_quotes (const GetQuotesParams ¶ms={}) |
Get Quotes GET /communications/quotes | |
| Result< std::string > | create_quote (const CreateQuoteRequest &body) |
Create Quote POST /communications/quotes | |
| Result< Quote > | get_quote (std::string_view quote_id) |
Get Quote GET /communications/quotes/{quote_id} | |
| Result< void > | delete_quote (std::string_view quote_id) |
Delete Quote DELETE /communications/quotes/{quote_id} | |
| Result< void > | accept_quote (std::string_view quote_id, const AcceptQuoteRequest &body) |
Accept Quote PUT /communications/quotes/{quote_id}/accept | |
| Result< void > | confirm_quote (std::string_view quote_id) |
Confirm Quote PUT /communications/quotes/{quote_id}/confirm | |
| Result< GetEventCandlesticksResponse > | get_market_candlesticks_by_event (std::string_view series_ticker, std::string_view ticker, const GetMarketCandlesticksByEventParams ¶ms) |
Get Event Candlesticks GET /series/{series_ticker}/events/{ticker}/candlesticks | |
| Result< GetEventsResponse > | get_events (const GetEventsParams ¶ms={}) |
Get Events GET /events | |
| Result< GetMultivariateEventsResponse > | get_multivariate_events (const GetMultivariateEventsParams ¶ms={}) |
Get Multivariate Events GET /events/multivariate | |
| Result< GetEventFeeChangesResponse > | get_event_fee_changes (const GetEventFeeChangesParams ¶ms={}) |
Get Event Fee Changes GET /events/fee_changes | |
| Result< GetEventResponse > | get_event (std::string_view event_ticker, const GetEventParams ¶ms={}) |
Get Event GET /events/{event_ticker} | |
| Result< GetEventMetadataResponse > | get_event_metadata (std::string_view event_ticker) |
Get Event Metadata GET /events/{event_ticker}/metadata | |
| Result< std::vector< ForecastPercentilesPoint > > | get_event_forecast_percentiles_history (std::string_view series_ticker, std::string_view ticker, const GetEventForecastPercentilesHistoryParams ¶ms) |
Get Event Forecast Percentile History GET /series/{series_ticker}/events/{ticker}/forecast_percentile_history | |
| Result< ExchangeStatus > | get_exchange_status () |
Get Exchange Status GET /exchange/status | |
| Result< std::vector< SeriesFeeChange > > | get_series_fee_changes (const GetSeriesFeeChangesParams ¶ms={}) |
Get Series Fee Changes GET /series/fee_changes | |
| Result< Schedule > | get_exchange_schedule () |
Get Exchange Schedule GET /exchange/schedule | |
| Result< std::string > | get_user_data_timestamp () |
Get User Data Timestamp GET /exchange/user_data_timestamp | |
| Result< GetFcmFillsResponse > | get_fcm_fills (const GetFcmFillsParams ¶ms={}) |
Get FCM Fills GET /fcm/fills | |
| Result< GetOrdersResponse > | get_fcm_orders (const GetFcmOrdersParams ¶ms={}) |
Get FCM Orders GET /fcm/orders | |
| Result< std::vector< FCMSubtrader > > | get_fcm_subtraders () |
List FCM Subtraders GET /fcm/subtraders | |
| Result< std::string > | create_fcm_subtrader (const CreateFCMSubtraderRequest &body) |
Create FCM Subtrader POST /fcm/subtraders | |
| Result< GetFCMEventContractDailyCapResponse > | get_fcm_event_contract_daily_cap (const GetFcmEventContractDailyCapParams ¶ms={}) |
Get FCM Subtrader Event Contract Daily Cap GET /fcm/subtraders/event_contract_daily_cap | |
| Result< void > | update_fcm_event_contract_daily_cap (const UpdateFCMEventContractDailyCapRequest &body) |
Update FCM Subtrader Event Contract Daily Cap PUT /fcm/subtraders/event_contract_daily_cap | |
| Result< void > | delete_fcm_event_contract_daily_cap (const DeleteFcmEventContractDailyCapParams ¶ms) |
Delete FCM Subtrader Event Contract Daily Cap DELETE /fcm/subtraders/event_contract_daily_cap | |
| Result< std::vector< std::string > > | get_fcm_subtrader_blocked_categories (const GetFcmSubtraderBlockedCategoriesParams ¶ms) |
Get FCM Subtrader Blocked Categories GET /fcm/subtraders/blocked_categories | |
| Result< std::vector< std::string > > | update_fcm_subtrader_blocked_categories (const UpdateFCMSubtraderBlockedCategoriesRequest &body) |
Update FCM Subtrader Blocked Categories PUT /fcm/subtraders/blocked_categories | |
| Result< GetPositionsResponse > | get_fcm_positions (const GetFcmPositionsParams ¶ms={}) |
Get FCM Positions GET /fcm/positions | |
| Result< GetHistoricalCutoffResponse > | get_historical_cutoff () |
Get Historical Cutoff Timestamps GET /historical/cutoff | |
| Result< GetMarketCandlesticksHistoricalResponse > | get_market_candlesticks_historical (std::string_view ticker, const GetMarketCandlesticksHistoricalParams ¶ms) |
Get Historical Market Candlesticks GET /historical/markets/{ticker}/candlesticks | |
| Result< GetFillsResponse > | get_fills_historical (const GetFillsHistoricalParams ¶ms={}) |
Get Historical Fills GET /historical/fills | |
| Result< GetOrdersResponse > | get_historical_orders (const GetHistoricalOrdersParams ¶ms={}) |
Get Historical Orders GET /historical/orders | |
| Result< GetPositionsResponse > | get_historical_positions (const GetHistoricalPositionsParams ¶ms={}) |
Get Historical Positions GET /historical/positions | |
| Result< GetTradesResponse > | get_trades_historical (const GetTradesHistoricalParams ¶ms={}) |
Get Historical Trades GET /historical/trades | |
| Result< GetMarketsResponse > | get_historical_markets (const GetHistoricalMarketsParams ¶ms={}) |
Get Historical Markets GET /historical/markets | |
| Result< Market > | get_historical_market (std::string_view ticker) |
Get Historical Market GET /historical/markets/{ticker} | |
| Result< GetIncentiveProgramsResponse > | get_incentive_programs (const GetIncentiveProgramsParams ¶ms={}) |
Get Incentives GET /incentive_programs | |
| Result< LiveData > | get_live_data_by_milestone (std::string_view milestone_id, const GetLiveDataByMilestoneParams ¶ms={}) |
Get Live Data GET /live_data/milestone/{milestone_id} | |
| Result< LiveData > | get_live_data (std::string_view type, std::string_view milestone_id, const GetLiveDataParams ¶ms={}) |
Get Live Data (with type) GET /live_data/{type}/milestone/{milestone_id} | |
| Result< std::vector< LiveData > > | get_live_datas (const GetLiveDatasParams ¶ms) |
Get Multiple Live Data GET /live_data/batch | |
| Result< std::optional< PlayByPlay > > | get_game_stats (std::string_view milestone_id) |
Get Game Stats GET /live_data/milestone/{milestone_id}/game_stats | |
| Result< EventLiveData > | get_event_live_data (std::string_view event_ticker, const GetEventLiveDataParams ¶ms={}) |
Get Event Live Data GET /live_data/events/{event_ticker} | |
| Result< GetWeatherIndexResponse > | get_weather_index (std::string_view city, const GetWeatherIndexParams ¶ms={}) |
Get Weather Index GET /live_data/weather/{city} | |
| Result< GetWeatherIndexCalibrationsResponse > | get_weather_index_calibrations (std::string_view city) |
Get Weather Index Calibrations GET /live_data/weather/{city}/calibrations | |
| Result< GetMarketCandlesticksResponse > | get_market_candlesticks (std::string_view series_ticker, std::string_view ticker, const GetMarketCandlesticksParams ¶ms) |
Get Market Candlesticks GET /series/{series_ticker}/markets/{ticker}/candlesticks | |
| Result< GetTradesResponse > | get_trades (const GetTradesParams ¶ms={}) |
Get Trades GET /markets/trades | |
| Result< OrderbookCountFp > | get_market_orderbook (std::string_view ticker, const GetMarketOrderbookParams ¶ms={}) |
Get Market Orderbook GET /markets/{ticker}/orderbook | |
| Result< std::vector< MarketOrderbookFp > > | get_market_orderbooks (const GetMarketOrderbooksParams ¶ms) |
Get Multiple Market Orderbooks GET /markets/orderbooks | |
| Result< Series > | get_series (std::string_view series_ticker, const GetSeriesParams ¶ms={}) |
Get Series GET /series/{series_ticker} | |
| Result< std::vector< Series > > | get_series_list (const GetSeriesListParams ¶ms={}) |
Get Series List GET /series | |
| Result< GetMarketsResponse > | get_markets (const GetMarketsParams ¶ms={}) |
Get Markets GET /markets | |
| Result< Market > | get_market (std::string_view ticker) |
Get Market GET /markets/{ticker} | |
| Result< std::vector< MarketCandlesticksResponse > > | batch_get_market_candlesticks (const BatchGetMarketCandlesticksParams ¶ms) |
Batch Get Market Candlesticks GET /markets/candlesticks | |
| Result< Milestone > | get_milestone (std::string_view milestone_id) |
Get Milestone GET /milestones/{milestone_id} | |
| Result< GetMilestonesResponse > | get_milestones (const GetMilestonesParams ¶ms) |
Get Milestones GET /milestones | |
| Result< MultivariateEventCollection > | get_multivariate_event_collection (std::string_view collection_ticker) |
Get Multivariate Event Collection GET /multivariate_event_collections/{collection_ticker} | |
| Result< CreateMarketInMultivariateEventCollectionResponse > | create_market_in_multivariate_event_collection (std::string_view collection_ticker, const CreateMarketInMultivariateEventCollectionRequest &body) |
Create Market In Multivariate Event Collection POST /multivariate_event_collections/{collection_ticker} | |
| Result< GetMultivariateEventCollectionsResponse > | get_multivariate_event_collections (const GetMultivariateEventCollectionsParams ¶ms={}) |
Get Multivariate Event Collections GET /multivariate_event_collections | |
| Result< std::optional< std::vector< OrderGroup > > > | get_order_groups (const GetOrderGroupsParams ¶ms={}) |
Get Order Groups GET /portfolio/order_groups | |
| Result< CreateOrderGroupResponse > | create_order_group (const CreateOrderGroupRequest &body) |
Create Order Group POST /portfolio/order_groups/create | |
| Result< GetOrderGroupResponse > | get_order_group (std::string_view order_group_id, const GetOrderGroupParams ¶ms={}) |
Get Order Group GET /portfolio/order_groups/{order_group_id} | |
| Result< void > | delete_order_group (std::string_view order_group_id, const DeleteOrderGroupParams ¶ms={}) |
Delete Order Group DELETE /portfolio/order_groups/{order_group_id} | |
| Result< void > | reset_order_group (std::string_view order_group_id, const ResetOrderGroupParams ¶ms={}) |
Reset Order Group PUT /portfolio/order_groups/{order_group_id}/reset | |
| Result< void > | trigger_order_group (std::string_view order_group_id, const TriggerOrderGroupParams ¶ms={}) |
Trigger Order Group PUT /portfolio/order_groups/{order_group_id}/trigger | |
| Result< void > | update_order_group_limit (std::string_view order_group_id, const UpdateOrderGroupLimitRequest &body, const UpdateOrderGroupLimitParams ¶ms={}) |
Update Order Group Limit PUT /portfolio/order_groups/{order_group_id}/limit | |
| Result< GetOrdersResponse > | get_orders (const GetOrdersParams ¶ms={}) |
Get Orders GET /portfolio/orders | |
| Result< Order > | get_order (std::string_view order_id) |
Get Order GET /portfolio/orders/{order_id} | |
| Result< std::vector< OrderQueuePosition > > | get_order_queue_positions (const GetOrderQueuePositionsParams ¶ms={}) |
Get Queue Positions for Orders GET /portfolio/orders/queue_positions | |
| Result< FixedPointCount > | get_order_queue_position (std::string_view order_id) |
Get Order Queue Position GET /portfolio/orders/{order_id}/queue_position | |
| Result< CreateOrderV2Response > | create_order (const CreateOrderV2Request &body) |
Create Order POST /portfolio/events/orders | |
| Result< void > | cancel_all_orders (const CancelAllOrdersParams ¶ms={}) |
Cancel All Orders DELETE /portfolio/events/orders | |
| Result< std::vector< BatchCreateOrdersV2ResponseOrdersItem > > | batch_create_orders (const BatchCreateOrdersV2Request &body) |
Batch Create Orders POST /portfolio/events/orders/batched | |
| Result< std::vector< BatchCancelOrdersV2ResponseOrdersItem > > | batch_cancel_orders (const BatchCancelOrdersV2Request &body) |
Batch Cancel Orders DELETE /portfolio/events/orders/batched | |
| Result< CancelOrderV2Response > | cancel_order (std::string_view order_id, const CancelOrderParams ¶ms={}) |
Cancel Order DELETE /portfolio/events/orders/{order_id} | |
| Result< AmendOrderV2Response > | amend_order (std::string_view order_id, const AmendOrderV2Request &body, const AmendOrderParams ¶ms={}) |
Amend Order POST /portfolio/events/orders/{order_id}/amend | |
| Result< DecreaseOrderV2Response > | decrease_order (std::string_view order_id, const DecreaseOrderV2Request &body, const DecreaseOrderParams ¶ms={}) |
Decrease Order POST /portfolio/events/orders/{order_id}/decrease | |
| Result< GetBalanceResponse > | get_balance (const GetBalanceParams ¶ms={}) |
Get Balance GET /portfolio/balance | |
| Result< std::string > | intra_exchange_instance_transfer (const IntraExchangeInstanceTransferRequest &body) |
Intra Account Transfer POST /portfolio/intra_exchange_instance_transfer | |
| Result< GetIntraExchangeInstanceTransfersResponse > | get_intra_exchange_instance_transfers (const GetIntraExchangeInstanceTransfersParams ¶ms={}) |
Get Intra Account Transfers GET /portfolio/intra_exchange_instance_transfers | |
| Result< IntraExchangeInstanceTransfer > | get_intra_exchange_instance_transfer (std::string_view transfer_id) |
Get Intra Account Transfer GET /portfolio/intra_exchange_instance_transfers/{transfer_id} | |
| Result< std::int64_t > | create_subaccount (const CreateSubaccountRequest &body) |
Create Subaccount POST /portfolio/subaccounts | |
| Result< void > | apply_subaccount_transfer (const ApplySubaccountTransferRequest &body) |
Transfer Between Subaccounts POST /portfolio/subaccounts/transfer | |
| Result< std::vector< SubaccountBalance > > | get_subaccount_balances () |
Get All Subaccount Balances GET /portfolio/subaccounts/balances | |
| Result< GetSubaccountTransfersResponse > | get_subaccount_transfers (const GetSubaccountTransfersParams ¶ms={}) |
Get Subaccount Transfers GET /portfolio/subaccounts/transfers | |
| Result< std::vector< SubaccountNettingConfig > > | get_subaccount_netting () |
Get Subaccount Netting GET /portfolio/subaccounts/netting | |
| Result< void > | update_subaccount_netting (const UpdateSubaccountNettingRequest &body) |
Update Subaccount Netting PUT /portfolio/subaccounts/netting | |
| Result< GetPositionsResponse > | get_positions (const GetPositionsParams ¶ms={}) |
Get Positions GET /portfolio/positions | |
| Result< GetSettlementsResponse > | get_settlements (const GetSettlementsParams ¶ms={}) |
Get Settlements GET /portfolio/settlements | |
| Result< GetDepositsResponse > | get_deposits (const GetDepositsParams ¶ms={}) |
Get Deposits GET /portfolio/deposits | |
| Result< GetWithdrawalsResponse > | get_withdrawals (const GetWithdrawalsParams ¶ms={}) |
Get Withdrawals GET /portfolio/withdrawals | |
| Result< GetPortfolioRestingOrderTotalValueResponse > | get_portfolio_resting_order_total_value () |
Get Total Resting Order Value GET /portfolio/summary/total_resting_order_value | |
| Result< GetFillsResponse > | get_fills (const GetFillsParams ¶ms={}) |
Get Fills GET /portfolio/fills | |
| Result< GetTargetBalanceAllocationResponse > | get_target_balance_allocation () |
Get Target Balance Allocation GET /portfolio/target_balance_allocation | |
| Result< void > | set_target_balance_allocation (const SetTargetBalanceAllocationRequest &body) |
Set Target Balance Allocation POST /portfolio/target_balance_allocation | |
| Result< std::map< std::string, std::vector< std::string > > > | get_tags_for_series_categories () |
Get Tags for Series Categories GET /search/tags_by_categories | |
| Result< GetFiltersBySportsResponse > | get_filters_for_sports () |
Get Filters for Sports GET /search/filters_by_sport | |
| Result< GetStructuredTargetsResponse > | get_structured_targets (const GetStructuredTargetsParams ¶ms={}) |
Get Structured Targets GET /structured_targets | |
| Result< std::optional< StructuredTarget > > | get_structured_target (std::string_view structured_target_id) |
Get Structured Target GET /structured_targets/{structured_target_id} | |
Client for the Kalshi Predictions REST API.
Each method maps to one operation in Kalshi's OpenAPI document, named after its operationId.
Failures come back as Error: InvalidRequest for a request the SDK rejects before sending or another HTTP 4xx, AuthenticationError, NotFound, RateLimited, ServerError, NetworkError, ParseError, or SigningError. Error::api_code carries Kalshi's machine-readable code when it sends one.
|
explicit |
Uses a libcurl client. It signs requests when constructed with a Signer.
|
explicit |
Uses any transport, such as RetryingTransport or a test double.
| kalshi::KalshiClient::~KalshiClient | ( | ) |
|
noexcept |
|
delete |
|
noexcept |
|
delete |
|
noexcept |
| Result< GetAccountApiLimitsResponse > kalshi::KalshiClient::get_account_api_limits | ( | ) |
Get Account API Limits GET /account/limits
| Result< void > kalshi::KalshiClient::upgrade_account_api_usage_level | ( | ) |
Upgrade Account API Usage Level POST /account/api_usage_level/upgrade
| Result< std::vector< AccountApiUsageLevelVolumeProgress > > kalshi::KalshiClient::get_account_api_usage_level_volume_progress | ( | ) |
Get Account API Usage Level Volume Progress GET /account/api_usage_level/volume_progress
| Result< GetAccountEndpointCostsResponse > kalshi::KalshiClient::get_account_endpoint_costs | ( | ) |
List Non-Default Endpoint Costs GET /account/endpoint_costs
| Result< GetApiKeysResponse > kalshi::KalshiClient::get_api_keys | ( | const GetApiKeysParams & | params = {} | ) |
Get API Keys GET /api_keys
| Result< CreateApiKeyResponse > kalshi::KalshiClient::create_api_key | ( | const CreateApiKeyRequest & | body | ) |
Create API Key POST /api_keys
| Result< GenerateApiKeyResponse > kalshi::KalshiClient::generate_api_key | ( | const GenerateApiKeyRequest & | body | ) |
Generate API Key POST /api_keys/generate
| Result< void > kalshi::KalshiClient::delete_api_key | ( | std::string_view | api_key | ) |
Delete API Key DELETE /api_keys/{api_key}
| Result< std::string > kalshi::KalshiClient::get_communications_id | ( | ) |
Get Communications ID GET /communications/id
| Result< GetBlockTradeProposalsResponse > kalshi::KalshiClient::get_block_trade_proposals | ( | const GetBlockTradeProposalsParams & | params = {} | ) |
Get Block Trade Proposals GET /communications/block-trade-proposals
| Result< std::string > kalshi::KalshiClient::propose_block_trade | ( | const ProposeBlockTradeRequest & | body | ) |
Propose Block Trade POST /communications/block-trade-proposals
| Result< void > kalshi::KalshiClient::accept_block_trade_proposal | ( | std::string_view | block_trade_proposal_id, |
| const AcceptBlockTradeProposalRequest & | body | ||
| ) |
Accept Block Trade Proposal POST /communications/block-trade-proposals/{block_trade_proposal_id}/accept
| Result< GetRFQsResponse > kalshi::KalshiClient::get_rfqs | ( | const GetRfqsParams & | params = {} | ) |
Get RFQs GET /communications/rfqs
| Result< std::string > kalshi::KalshiClient::create_rfq | ( | const CreateRFQRequest & | body | ) |
Create RFQ POST /communications/rfqs
Get RFQ GET /communications/rfqs/{rfq_id}
| Result< void > kalshi::KalshiClient::delete_rfq | ( | std::string_view | rfq_id | ) |
Delete RFQ DELETE /communications/rfqs/{rfq_id}
| Result< void > kalshi::KalshiClient::delete_rfq_quote | ( | std::string_view | rfq_id, |
| std::string_view | quote_id | ||
| ) |
| Result< void > kalshi::KalshiClient::accept_rfq_quote | ( | std::string_view | rfq_id, |
| std::string_view | quote_id, | ||
| const AcceptQuoteRequest & | body | ||
| ) |
| Result< void > kalshi::KalshiClient::confirm_rfq_quote | ( | std::string_view | rfq_id, |
| std::string_view | quote_id | ||
| ) |
| Result< GetQuotesResponse > kalshi::KalshiClient::get_quotes | ( | const GetQuotesParams & | params = {} | ) |
Get Quotes GET /communications/quotes
| Result< std::string > kalshi::KalshiClient::create_quote | ( | const CreateQuoteRequest & | body | ) |
Create Quote POST /communications/quotes
Get Quote GET /communications/quotes/{quote_id}
| Result< void > kalshi::KalshiClient::delete_quote | ( | std::string_view | quote_id | ) |
Delete Quote DELETE /communications/quotes/{quote_id}
| Result< void > kalshi::KalshiClient::accept_quote | ( | std::string_view | quote_id, |
| const AcceptQuoteRequest & | body | ||
| ) |
Accept Quote PUT /communications/quotes/{quote_id}/accept
| Result< void > kalshi::KalshiClient::confirm_quote | ( | std::string_view | quote_id | ) |
Confirm Quote PUT /communications/quotes/{quote_id}/confirm
| Result< GetEventCandlesticksResponse > kalshi::KalshiClient::get_market_candlesticks_by_event | ( | std::string_view | series_ticker, |
| std::string_view | ticker, | ||
| const GetMarketCandlesticksByEventParams & | params | ||
| ) |
Get Event Candlesticks GET /series/{series_ticker}/events/{ticker}/candlesticks
| Result< GetEventsResponse > kalshi::KalshiClient::get_events | ( | const GetEventsParams & | params = {} | ) |
Get Events GET /events
| Result< GetMultivariateEventsResponse > kalshi::KalshiClient::get_multivariate_events | ( | const GetMultivariateEventsParams & | params = {} | ) |
Get Multivariate Events GET /events/multivariate
| Result< GetEventFeeChangesResponse > kalshi::KalshiClient::get_event_fee_changes | ( | const GetEventFeeChangesParams & | params = {} | ) |
Get Event Fee Changes GET /events/fee_changes
| Result< GetEventResponse > kalshi::KalshiClient::get_event | ( | std::string_view | event_ticker, |
| const GetEventParams & | params = {} |
||
| ) |
Get Event GET /events/{event_ticker}
| Result< GetEventMetadataResponse > kalshi::KalshiClient::get_event_metadata | ( | std::string_view | event_ticker | ) |
Get Event Metadata GET /events/{event_ticker}/metadata
| Result< std::vector< ForecastPercentilesPoint > > kalshi::KalshiClient::get_event_forecast_percentiles_history | ( | std::string_view | series_ticker, |
| std::string_view | ticker, | ||
| const GetEventForecastPercentilesHistoryParams & | params | ||
| ) |
Get Event Forecast Percentile History GET /series/{series_ticker}/events/{ticker}/forecast_percentile_history
| Result< ExchangeStatus > kalshi::KalshiClient::get_exchange_status | ( | ) |
Get Exchange Status GET /exchange/status
| Result< std::vector< SeriesFeeChange > > kalshi::KalshiClient::get_series_fee_changes | ( | const GetSeriesFeeChangesParams & | params = {} | ) |
Get Series Fee Changes GET /series/fee_changes
Get Exchange Schedule GET /exchange/schedule
| Result< std::string > kalshi::KalshiClient::get_user_data_timestamp | ( | ) |
Get User Data Timestamp GET /exchange/user_data_timestamp
| Result< GetFcmFillsResponse > kalshi::KalshiClient::get_fcm_fills | ( | const GetFcmFillsParams & | params = {} | ) |
Get FCM Fills GET /fcm/fills
| Result< GetOrdersResponse > kalshi::KalshiClient::get_fcm_orders | ( | const GetFcmOrdersParams & | params = {} | ) |
Get FCM Orders GET /fcm/orders
| Result< std::vector< FCMSubtrader > > kalshi::KalshiClient::get_fcm_subtraders | ( | ) |
List FCM Subtraders GET /fcm/subtraders
| Result< std::string > kalshi::KalshiClient::create_fcm_subtrader | ( | const CreateFCMSubtraderRequest & | body | ) |
Create FCM Subtrader POST /fcm/subtraders
| Result< GetFCMEventContractDailyCapResponse > kalshi::KalshiClient::get_fcm_event_contract_daily_cap | ( | const GetFcmEventContractDailyCapParams & | params = {} | ) |
Get FCM Subtrader Event Contract Daily Cap GET /fcm/subtraders/event_contract_daily_cap
| Result< void > kalshi::KalshiClient::update_fcm_event_contract_daily_cap | ( | const UpdateFCMEventContractDailyCapRequest & | body | ) |
Update FCM Subtrader Event Contract Daily Cap PUT /fcm/subtraders/event_contract_daily_cap
| Result< void > kalshi::KalshiClient::delete_fcm_event_contract_daily_cap | ( | const DeleteFcmEventContractDailyCapParams & | params | ) |
Delete FCM Subtrader Event Contract Daily Cap DELETE /fcm/subtraders/event_contract_daily_cap
| Result< std::vector< std::string > > kalshi::KalshiClient::get_fcm_subtrader_blocked_categories | ( | const GetFcmSubtraderBlockedCategoriesParams & | params | ) |
Get FCM Subtrader Blocked Categories GET /fcm/subtraders/blocked_categories
| Result< std::vector< std::string > > kalshi::KalshiClient::update_fcm_subtrader_blocked_categories | ( | const UpdateFCMSubtraderBlockedCategoriesRequest & | body | ) |
Update FCM Subtrader Blocked Categories PUT /fcm/subtraders/blocked_categories
| Result< GetPositionsResponse > kalshi::KalshiClient::get_fcm_positions | ( | const GetFcmPositionsParams & | params = {} | ) |
Get FCM Positions GET /fcm/positions
| Result< GetHistoricalCutoffResponse > kalshi::KalshiClient::get_historical_cutoff | ( | ) |
Get Historical Cutoff Timestamps GET /historical/cutoff
| Result< GetMarketCandlesticksHistoricalResponse > kalshi::KalshiClient::get_market_candlesticks_historical | ( | std::string_view | ticker, |
| const GetMarketCandlesticksHistoricalParams & | params | ||
| ) |
Get Historical Market Candlesticks GET /historical/markets/{ticker}/candlesticks
| Result< GetFillsResponse > kalshi::KalshiClient::get_fills_historical | ( | const GetFillsHistoricalParams & | params = {} | ) |
Get Historical Fills GET /historical/fills
| Result< GetOrdersResponse > kalshi::KalshiClient::get_historical_orders | ( | const GetHistoricalOrdersParams & | params = {} | ) |
Get Historical Orders GET /historical/orders
| Result< GetPositionsResponse > kalshi::KalshiClient::get_historical_positions | ( | const GetHistoricalPositionsParams & | params = {} | ) |
Get Historical Positions GET /historical/positions
| Result< GetTradesResponse > kalshi::KalshiClient::get_trades_historical | ( | const GetTradesHistoricalParams & | params = {} | ) |
Get Historical Trades GET /historical/trades
| Result< GetMarketsResponse > kalshi::KalshiClient::get_historical_markets | ( | const GetHistoricalMarketsParams & | params = {} | ) |
Get Historical Markets GET /historical/markets
Get Historical Market GET /historical/markets/{ticker}
| Result< GetIncentiveProgramsResponse > kalshi::KalshiClient::get_incentive_programs | ( | const GetIncentiveProgramsParams & | params = {} | ) |
Get Incentives GET /incentive_programs
| Result< LiveData > kalshi::KalshiClient::get_live_data_by_milestone | ( | std::string_view | milestone_id, |
| const GetLiveDataByMilestoneParams & | params = {} |
||
| ) |
Get Live Data GET /live_data/milestone/{milestone_id}
| Result< LiveData > kalshi::KalshiClient::get_live_data | ( | std::string_view | type, |
| std::string_view | milestone_id, | ||
| const GetLiveDataParams & | params = {} |
||
| ) |
Get Live Data (with type) GET /live_data/{type}/milestone/{milestone_id}
| Result< std::vector< LiveData > > kalshi::KalshiClient::get_live_datas | ( | const GetLiveDatasParams & | params | ) |
Get Multiple Live Data GET /live_data/batch
| Result< std::optional< PlayByPlay > > kalshi::KalshiClient::get_game_stats | ( | std::string_view | milestone_id | ) |
Get Game Stats GET /live_data/milestone/{milestone_id}/game_stats
| Result< EventLiveData > kalshi::KalshiClient::get_event_live_data | ( | std::string_view | event_ticker, |
| const GetEventLiveDataParams & | params = {} |
||
| ) |
Get Event Live Data GET /live_data/events/{event_ticker}
| Result< GetWeatherIndexResponse > kalshi::KalshiClient::get_weather_index | ( | std::string_view | city, |
| const GetWeatherIndexParams & | params = {} |
||
| ) |
Get Weather Index GET /live_data/weather/{city}
| Result< GetWeatherIndexCalibrationsResponse > kalshi::KalshiClient::get_weather_index_calibrations | ( | std::string_view | city | ) |
Get Weather Index Calibrations GET /live_data/weather/{city}/calibrations
| Result< GetMarketCandlesticksResponse > kalshi::KalshiClient::get_market_candlesticks | ( | std::string_view | series_ticker, |
| std::string_view | ticker, | ||
| const GetMarketCandlesticksParams & | params | ||
| ) |
Get Market Candlesticks GET /series/{series_ticker}/markets/{ticker}/candlesticks
| Result< GetTradesResponse > kalshi::KalshiClient::get_trades | ( | const GetTradesParams & | params = {} | ) |
Get Trades GET /markets/trades
| Result< OrderbookCountFp > kalshi::KalshiClient::get_market_orderbook | ( | std::string_view | ticker, |
| const GetMarketOrderbookParams & | params = {} |
||
| ) |
Get Market Orderbook GET /markets/{ticker}/orderbook
| Result< std::vector< MarketOrderbookFp > > kalshi::KalshiClient::get_market_orderbooks | ( | const GetMarketOrderbooksParams & | params | ) |
Get Multiple Market Orderbooks GET /markets/orderbooks
| Result< Series > kalshi::KalshiClient::get_series | ( | std::string_view | series_ticker, |
| const GetSeriesParams & | params = {} |
||
| ) |
Get Series GET /series/{series_ticker}
| Result< std::vector< Series > > kalshi::KalshiClient::get_series_list | ( | const GetSeriesListParams & | params = {} | ) |
Get Series List GET /series
| Result< GetMarketsResponse > kalshi::KalshiClient::get_markets | ( | const GetMarketsParams & | params = {} | ) |
Get Markets GET /markets
Get Market GET /markets/{ticker}
| Result< std::vector< MarketCandlesticksResponse > > kalshi::KalshiClient::batch_get_market_candlesticks | ( | const BatchGetMarketCandlesticksParams & | params | ) |
Batch Get Market Candlesticks GET /markets/candlesticks
Get Milestone GET /milestones/{milestone_id}
| Result< GetMilestonesResponse > kalshi::KalshiClient::get_milestones | ( | const GetMilestonesParams & | params | ) |
Get Milestones GET /milestones
| Result< MultivariateEventCollection > kalshi::KalshiClient::get_multivariate_event_collection | ( | std::string_view | collection_ticker | ) |
Get Multivariate Event Collection GET /multivariate_event_collections/{collection_ticker}
| Result< CreateMarketInMultivariateEventCollectionResponse > kalshi::KalshiClient::create_market_in_multivariate_event_collection | ( | std::string_view | collection_ticker, |
| const CreateMarketInMultivariateEventCollectionRequest & | body | ||
| ) |
Create Market In Multivariate Event Collection POST /multivariate_event_collections/{collection_ticker}
| Result< GetMultivariateEventCollectionsResponse > kalshi::KalshiClient::get_multivariate_event_collections | ( | const GetMultivariateEventCollectionsParams & | params = {} | ) |
Get Multivariate Event Collections GET /multivariate_event_collections
| Result< std::optional< std::vector< OrderGroup > > > kalshi::KalshiClient::get_order_groups | ( | const GetOrderGroupsParams & | params = {} | ) |
Get Order Groups GET /portfolio/order_groups
| Result< CreateOrderGroupResponse > kalshi::KalshiClient::create_order_group | ( | const CreateOrderGroupRequest & | body | ) |
Create Order Group POST /portfolio/order_groups/create
| Result< GetOrderGroupResponse > kalshi::KalshiClient::get_order_group | ( | std::string_view | order_group_id, |
| const GetOrderGroupParams & | params = {} |
||
| ) |
Get Order Group GET /portfolio/order_groups/{order_group_id}
| Result< void > kalshi::KalshiClient::delete_order_group | ( | std::string_view | order_group_id, |
| const DeleteOrderGroupParams & | params = {} |
||
| ) |
Delete Order Group DELETE /portfolio/order_groups/{order_group_id}
| Result< void > kalshi::KalshiClient::reset_order_group | ( | std::string_view | order_group_id, |
| const ResetOrderGroupParams & | params = {} |
||
| ) |
Reset Order Group PUT /portfolio/order_groups/{order_group_id}/reset
| Result< void > kalshi::KalshiClient::trigger_order_group | ( | std::string_view | order_group_id, |
| const TriggerOrderGroupParams & | params = {} |
||
| ) |
Trigger Order Group PUT /portfolio/order_groups/{order_group_id}/trigger
| Result< void > kalshi::KalshiClient::update_order_group_limit | ( | std::string_view | order_group_id, |
| const UpdateOrderGroupLimitRequest & | body, | ||
| const UpdateOrderGroupLimitParams & | params = {} |
||
| ) |
Update Order Group Limit PUT /portfolio/order_groups/{order_group_id}/limit
| Result< GetOrdersResponse > kalshi::KalshiClient::get_orders | ( | const GetOrdersParams & | params = {} | ) |
Get Orders GET /portfolio/orders
Get Order GET /portfolio/orders/{order_id}
| Result< std::vector< OrderQueuePosition > > kalshi::KalshiClient::get_order_queue_positions | ( | const GetOrderQueuePositionsParams & | params = {} | ) |
Get Queue Positions for Orders GET /portfolio/orders/queue_positions
| Result< FixedPointCount > kalshi::KalshiClient::get_order_queue_position | ( | std::string_view | order_id | ) |
Get Order Queue Position GET /portfolio/orders/{order_id}/queue_position
| Result< CreateOrderV2Response > kalshi::KalshiClient::create_order | ( | const CreateOrderV2Request & | body | ) |
Create Order POST /portfolio/events/orders
| Result< void > kalshi::KalshiClient::cancel_all_orders | ( | const CancelAllOrdersParams & | params = {} | ) |
Cancel All Orders DELETE /portfolio/events/orders
| Result< std::vector< BatchCreateOrdersV2ResponseOrdersItem > > kalshi::KalshiClient::batch_create_orders | ( | const BatchCreateOrdersV2Request & | body | ) |
Batch Create Orders POST /portfolio/events/orders/batched
| Result< std::vector< BatchCancelOrdersV2ResponseOrdersItem > > kalshi::KalshiClient::batch_cancel_orders | ( | const BatchCancelOrdersV2Request & | body | ) |
Batch Cancel Orders DELETE /portfolio/events/orders/batched
| Result< CancelOrderV2Response > kalshi::KalshiClient::cancel_order | ( | std::string_view | order_id, |
| const CancelOrderParams & | params = {} |
||
| ) |
Cancel Order DELETE /portfolio/events/orders/{order_id}
| Result< AmendOrderV2Response > kalshi::KalshiClient::amend_order | ( | std::string_view | order_id, |
| const AmendOrderV2Request & | body, | ||
| const AmendOrderParams & | params = {} |
||
| ) |
Amend Order POST /portfolio/events/orders/{order_id}/amend
| Result< DecreaseOrderV2Response > kalshi::KalshiClient::decrease_order | ( | std::string_view | order_id, |
| const DecreaseOrderV2Request & | body, | ||
| const DecreaseOrderParams & | params = {} |
||
| ) |
Decrease Order POST /portfolio/events/orders/{order_id}/decrease
| Result< GetBalanceResponse > kalshi::KalshiClient::get_balance | ( | const GetBalanceParams & | params = {} | ) |
Get Balance GET /portfolio/balance
| Result< std::string > kalshi::KalshiClient::intra_exchange_instance_transfer | ( | const IntraExchangeInstanceTransferRequest & | body | ) |
Intra Account Transfer POST /portfolio/intra_exchange_instance_transfer
| Result< GetIntraExchangeInstanceTransfersResponse > kalshi::KalshiClient::get_intra_exchange_instance_transfers | ( | const GetIntraExchangeInstanceTransfersParams & | params = {} | ) |
Get Intra Account Transfers GET /portfolio/intra_exchange_instance_transfers
| Result< IntraExchangeInstanceTransfer > kalshi::KalshiClient::get_intra_exchange_instance_transfer | ( | std::string_view | transfer_id | ) |
Get Intra Account Transfer GET /portfolio/intra_exchange_instance_transfers/{transfer_id}
| Result< std::int64_t > kalshi::KalshiClient::create_subaccount | ( | const CreateSubaccountRequest & | body | ) |
Create Subaccount POST /portfolio/subaccounts
| Result< void > kalshi::KalshiClient::apply_subaccount_transfer | ( | const ApplySubaccountTransferRequest & | body | ) |
Transfer Between Subaccounts POST /portfolio/subaccounts/transfer
| Result< std::vector< SubaccountBalance > > kalshi::KalshiClient::get_subaccount_balances | ( | ) |
Get All Subaccount Balances GET /portfolio/subaccounts/balances
| Result< GetSubaccountTransfersResponse > kalshi::KalshiClient::get_subaccount_transfers | ( | const GetSubaccountTransfersParams & | params = {} | ) |
Get Subaccount Transfers GET /portfolio/subaccounts/transfers
| Result< std::vector< SubaccountNettingConfig > > kalshi::KalshiClient::get_subaccount_netting | ( | ) |
Get Subaccount Netting GET /portfolio/subaccounts/netting
| Result< void > kalshi::KalshiClient::update_subaccount_netting | ( | const UpdateSubaccountNettingRequest & | body | ) |
Update Subaccount Netting PUT /portfolio/subaccounts/netting
| Result< GetPositionsResponse > kalshi::KalshiClient::get_positions | ( | const GetPositionsParams & | params = {} | ) |
Get Positions GET /portfolio/positions
| Result< GetSettlementsResponse > kalshi::KalshiClient::get_settlements | ( | const GetSettlementsParams & | params = {} | ) |
Get Settlements GET /portfolio/settlements
| Result< GetDepositsResponse > kalshi::KalshiClient::get_deposits | ( | const GetDepositsParams & | params = {} | ) |
Get Deposits GET /portfolio/deposits
| Result< GetWithdrawalsResponse > kalshi::KalshiClient::get_withdrawals | ( | const GetWithdrawalsParams & | params = {} | ) |
Get Withdrawals GET /portfolio/withdrawals
| Result< GetPortfolioRestingOrderTotalValueResponse > kalshi::KalshiClient::get_portfolio_resting_order_total_value | ( | ) |
Get Total Resting Order Value GET /portfolio/summary/total_resting_order_value
| Result< GetFillsResponse > kalshi::KalshiClient::get_fills | ( | const GetFillsParams & | params = {} | ) |
Get Fills GET /portfolio/fills
| Result< GetTargetBalanceAllocationResponse > kalshi::KalshiClient::get_target_balance_allocation | ( | ) |
Get Target Balance Allocation GET /portfolio/target_balance_allocation
| Result< void > kalshi::KalshiClient::set_target_balance_allocation | ( | const SetTargetBalanceAllocationRequest & | body | ) |
Set Target Balance Allocation POST /portfolio/target_balance_allocation
| Result< std::map< std::string, std::vector< std::string > > > kalshi::KalshiClient::get_tags_for_series_categories | ( | ) |
Get Tags for Series Categories GET /search/tags_by_categories
| Result< GetFiltersBySportsResponse > kalshi::KalshiClient::get_filters_for_sports | ( | ) |
Get Filters for Sports GET /search/filters_by_sport
| Result< GetStructuredTargetsResponse > kalshi::KalshiClient::get_structured_targets | ( | const GetStructuredTargetsParams & | params = {} | ) |
Get Structured Targets GET /structured_targets
| Result< std::optional< StructuredTarget > > kalshi::KalshiClient::get_structured_target | ( | std::string_view | structured_target_id | ) |
Get Structured Target GET /structured_targets/{structured_target_id}