Skip to main content
All URIs are relative to https://api.elections.kalshi.com/trade-api/v2
MethodHTTP requestDescription
accept_quotePUT /communications/quotes//acceptAccept Quote
confirm_quotePUT /communications/quotes//confirmConfirm Quote
create_quotePOST /communications/quotesCreate Quote
create_rfqPOST /communications/rfqsCreate RFQ
delete_quoteDELETE /communications/quotes/Delete Quote
delete_rfqDELETE /communications/rfqs/Delete RFQ
get_communications_idGET /communications/idGet Communications ID
get_quoteGET /communications/quotes/Get Quote
get_quotesGET /communications/quotesGet Quotes
get_rfqGET /communications/rfqs/Get RFQ
get_rfqsGET /communications/rfqsGet RFQs

accept_quote

accept_quote(quote_id, accept_quote_request)
Accept Quote Endpoint for accepting a quote. This will require the quoter to confirm

Parameters

NameTypeDescriptionNotes
quote_idstrQuote ID
accept_quote_requestAcceptQuoteRequest

Return type

void (empty response body)

HTTP response details

Status codeDescription
204Quote accepted successfully
400Bad request - invalid input
401Unauthorized - authentication required
404Resource not found
500Internal server error

confirm_quote

confirm_quote(quote_id, body=body)
Confirm Quote Endpoint for confirming a quote. This will start a timer for order execution

Parameters

NameTypeDescriptionNotes
quote_idstrQuote ID
bodyobject[optional]

Return type

void (empty response body)

HTTP response details

Status codeDescription
204Quote confirmed successfully
401Unauthorized - authentication required
404Resource not found
500Internal server error

create_quote

CreateQuoteResponse create_quote(create_quote_request)
Create Quote Endpoint for creating a quote in response to an RFQ

Parameters

NameTypeDescriptionNotes
create_quote_requestCreateQuoteRequest

Return type

CreateQuoteResponse

HTTP response details

Status codeDescription
201Quote created successfully
400Bad request - invalid input
401Unauthorized - authentication required
500Internal server error

create_rfq

CreateRFQResponse create_rfq(create_rfq_request)
Create RFQ Endpoint for creating a new RFQ. You can have a maximum of 100 open RFQs at a time.

Parameters

NameTypeDescriptionNotes
create_rfq_requestCreateRFQRequest

Return type

CreateRFQResponse

HTTP response details

Status codeDescription
201RFQ created successfully
400Bad request - invalid input
401Unauthorized - authentication required
409Conflict - resource already exists or cannot be modified
500Internal server error

delete_quote

delete_quote(quote_id)
Delete Quote Endpoint for deleting a quote, which means it can no longer be accepted.

Parameters

NameTypeDescriptionNotes
quote_idstrQuote ID

Return type

void (empty response body)

HTTP response details

Status codeDescription
204Quote deleted successfully
401Unauthorized - authentication required
404Resource not found
500Internal server error

delete_rfq

delete_rfq(rfq_id)
Delete RFQ Endpoint for deleting an RFQ by ID

Parameters

NameTypeDescriptionNotes
rfq_idstrRFQ ID

Return type

void (empty response body)

HTTP response details

Status codeDescription
204RFQ deleted successfully
401Unauthorized - authentication required
404Resource not found
500Internal server error

get_communications_id

GetCommunicationsIDResponse get_communications_id()
Get Communications ID Endpoint for getting the communications ID of the logged-in user.

Parameters

This endpoint does not need any parameter.

Return type

GetCommunicationsIDResponse

HTTP response details

Status codeDescription
200Communications ID retrieved successfully
401Unauthorized - authentication required
500Internal server error

get_quote

GetQuoteResponse get_quote(quote_id)
Get Quote Endpoint for getting a particular quote

Parameters

NameTypeDescriptionNotes
quote_idstrQuote ID

Return type

GetQuoteResponse

HTTP response details

Status codeDescription
200Quote retrieved successfully
401Unauthorized - authentication required
404Resource not found
500Internal server error

get_quotes

GetQuotesResponse get_quotes(cursor=cursor, event_ticker=event_ticker, market_ticker=market_ticker, limit=limit, status=status, quote_creator_user_id=quote_creator_user_id, rfq_creator_user_id=rfq_creator_user_id, rfq_creator_subtrader_id=rfq_creator_subtrader_id, rfq_id=rfq_id)
Get Quotes Endpoint for getting quotes

Parameters

NameTypeDescriptionNotes
cursorstrPagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.[optional]
event_tickerstrEvent ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).[optional]
market_tickerstrFilter by market ticker[optional]
limitintParameter to specify the number of results per page. Defaults to 500.[optional] [default to 500]
statusstrFilter quotes by status[optional]
quote_creator_user_idstrFilter quotes by quote creator user ID[optional]
rfq_creator_user_idstrFilter quotes by RFQ creator user ID[optional]
rfq_creator_subtrader_idstrFilter quotes by RFQ creator subtrader ID (FCM members only)[optional]
rfq_idstrFilter quotes by RFQ ID[optional]

Return type

GetQuotesResponse

HTTP response details

Status codeDescription
200Quotes retrieved successfully
401Unauthorized - authentication required
500Internal server error

get_rfq

GetRFQResponse get_rfq(rfq_id)
Get RFQ Endpoint for getting a single RFQ by id

Parameters

NameTypeDescriptionNotes
rfq_idstrRFQ ID

Return type

GetRFQResponse

HTTP response details

Status codeDescription
200RFQ retrieved successfully
401Unauthorized - authentication required
404Resource not found
500Internal server error

get_rfqs

GetRFQsResponse get_rfqs(cursor=cursor, event_ticker=event_ticker, market_ticker=market_ticker, limit=limit, status=status, creator_user_id=creator_user_id)
Get RFQs Endpoint for getting RFQs

Parameters

NameTypeDescriptionNotes
cursorstrPagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.[optional]
event_tickerstrEvent ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).[optional]
market_tickerstrFilter by market ticker[optional]
limitintParameter to specify the number of results per page. Defaults to 100.[optional] [default to 100]
statusstrFilter RFQs by status[optional]
creator_user_idstrFilter RFQs by creator user ID[optional]

Return type

GetRFQsResponse

HTTP response details

Status codeDescription
200RFQs retrieved successfully
401Unauthorized - authentication required
500Internal server error