Communications API Reference¶
Endpoints¶
Accept Quote¶
Synchronous Detailed Response
kalshi_py.api.communications.accept_quote.sync_detailed(quote_id: str, *, client: Union[AuthenticatedClient, Client], body: ModelAcceptQuoteRequest) -> Response[Any]
¶
Accept Quote
Endpoint for accepting a quote. This will require the quoter to confirm
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quote_id
|
str
|
Quote ID |
required |
body
|
ModelAcceptQuoteRequest
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[Any]
|
Response[Any] |
Source code in kalshi_py/api/communications/accept_quote.py
Asynchronous Detailed Response
kalshi_py.api.communications.accept_quote.asyncio_detailed(quote_id: str, *, client: Union[AuthenticatedClient, Client], body: ModelAcceptQuoteRequest) -> Response[Any]
async
¶
Accept Quote
Endpoint for accepting a quote. This will require the quoter to confirm
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quote_id
|
str
|
Quote ID |
required |
body
|
ModelAcceptQuoteRequest
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[Any]
|
Response[Any] |
Source code in kalshi_py/api/communications/accept_quote.py
Confirm Quote¶
Synchronous Detailed Response
kalshi_py.api.communications.confirm_quote.sync_detailed(quote_id: str, *, client: Union[AuthenticatedClient, Client]) -> Response[Any]
¶
Confirm Quote
Endpoint for confirming a quote. This will start a timer for order execution
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quote_id
|
str
|
Quote ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[Any]
|
Response[Any] |
Source code in kalshi_py/api/communications/confirm_quote.py
Asynchronous Detailed Response
kalshi_py.api.communications.confirm_quote.asyncio_detailed(quote_id: str, *, client: Union[AuthenticatedClient, Client]) -> Response[Any]
async
¶
Confirm Quote
Endpoint for confirming a quote. This will start a timer for order execution
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quote_id
|
str
|
Quote ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[Any]
|
Response[Any] |
Source code in kalshi_py/api/communications/confirm_quote.py
Create Quote¶
Synchronous API Call
kalshi_py.api.communications.create_quote.sync(*, client: Union[AuthenticatedClient, Client], body: ModelCreateQuoteRequest) -> Optional[ModelCreateQuoteResponse]
¶
Create Quote
Endpoint for creating a quote in response to an RFQ
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
ModelCreateQuoteRequest
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelCreateQuoteResponse]
|
ModelCreateQuoteResponse |
Source code in kalshi_py/api/communications/create_quote.py
Asynchronous API Call
kalshi_py.api.communications.create_quote.asyncio(*, client: Union[AuthenticatedClient, Client], body: ModelCreateQuoteRequest) -> Optional[ModelCreateQuoteResponse]
async
¶
Create Quote
Endpoint for creating a quote in response to an RFQ
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
ModelCreateQuoteRequest
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelCreateQuoteResponse]
|
ModelCreateQuoteResponse |
Source code in kalshi_py/api/communications/create_quote.py
Synchronous Detailed Response
kalshi_py.api.communications.create_quote.sync_detailed(*, client: Union[AuthenticatedClient, Client], body: ModelCreateQuoteRequest) -> Response[ModelCreateQuoteResponse]
¶
Create Quote
Endpoint for creating a quote in response to an RFQ
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
ModelCreateQuoteRequest
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelCreateQuoteResponse]
|
Response[ModelCreateQuoteResponse] |
Source code in kalshi_py/api/communications/create_quote.py
Asynchronous Detailed Response
kalshi_py.api.communications.create_quote.asyncio_detailed(*, client: Union[AuthenticatedClient, Client], body: ModelCreateQuoteRequest) -> Response[ModelCreateQuoteResponse]
async
¶
Create Quote
Endpoint for creating a quote in response to an RFQ
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
ModelCreateQuoteRequest
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelCreateQuoteResponse]
|
Response[ModelCreateQuoteResponse] |
Source code in kalshi_py/api/communications/create_quote.py
Create Rfq¶
Synchronous API Call
kalshi_py.api.communications.create_rfq.sync(*, client: Union[AuthenticatedClient, Client], body: ModelCreateRFQRequest) -> Optional[ModelCreateRFQResponse]
¶
Create RFQ
Endpoint for creating a new RFQ
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
ModelCreateRFQRequest
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelCreateRFQResponse]
|
ModelCreateRFQResponse |
Source code in kalshi_py/api/communications/create_rfq.py
Asynchronous API Call
kalshi_py.api.communications.create_rfq.asyncio(*, client: Union[AuthenticatedClient, Client], body: ModelCreateRFQRequest) -> Optional[ModelCreateRFQResponse]
async
¶
Create RFQ
Endpoint for creating a new RFQ
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
ModelCreateRFQRequest
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelCreateRFQResponse]
|
ModelCreateRFQResponse |
Source code in kalshi_py/api/communications/create_rfq.py
Synchronous Detailed Response
kalshi_py.api.communications.create_rfq.sync_detailed(*, client: Union[AuthenticatedClient, Client], body: ModelCreateRFQRequest) -> Response[ModelCreateRFQResponse]
¶
Create RFQ
Endpoint for creating a new RFQ
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
ModelCreateRFQRequest
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelCreateRFQResponse]
|
Response[ModelCreateRFQResponse] |
Source code in kalshi_py/api/communications/create_rfq.py
Asynchronous Detailed Response
kalshi_py.api.communications.create_rfq.asyncio_detailed(*, client: Union[AuthenticatedClient, Client], body: ModelCreateRFQRequest) -> Response[ModelCreateRFQResponse]
async
¶
Create RFQ
Endpoint for creating a new RFQ
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
ModelCreateRFQRequest
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelCreateRFQResponse]
|
Response[ModelCreateRFQResponse] |
Source code in kalshi_py/api/communications/create_rfq.py
Delete Quote¶
Synchronous Detailed Response
kalshi_py.api.communications.delete_quote.sync_detailed(quote_id: str, *, client: Union[AuthenticatedClient, Client]) -> Response[Any]
¶
Delete Quote
Endpoint for deleting a quote, which means it can no longer be accepted.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quote_id
|
str
|
Quote ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[Any]
|
Response[Any] |
Source code in kalshi_py/api/communications/delete_quote.py
Asynchronous Detailed Response
kalshi_py.api.communications.delete_quote.asyncio_detailed(quote_id: str, *, client: Union[AuthenticatedClient, Client]) -> Response[Any]
async
¶
Delete Quote
Endpoint for deleting a quote, which means it can no longer be accepted.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quote_id
|
str
|
Quote ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[Any]
|
Response[Any] |
Source code in kalshi_py/api/communications/delete_quote.py
Delete Rfq¶
Synchronous Detailed Response
kalshi_py.api.communications.delete_rfq.sync_detailed(rfq_id: str, *, client: Union[AuthenticatedClient, Client]) -> Response[Any]
¶
Delete RFQ
Endpoint for deleting an RFQ by ID
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rfq_id
|
str
|
RFQ ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[Any]
|
Response[Any] |
Source code in kalshi_py/api/communications/delete_rfq.py
Asynchronous Detailed Response
kalshi_py.api.communications.delete_rfq.asyncio_detailed(rfq_id: str, *, client: Union[AuthenticatedClient, Client]) -> Response[Any]
async
¶
Delete RFQ
Endpoint for deleting an RFQ by ID
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rfq_id
|
str
|
RFQ ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[Any]
|
Response[Any] |
Source code in kalshi_py/api/communications/delete_rfq.py
Get Communications Id¶
Synchronous API Call
kalshi_py.api.communications.get_communications_id.sync(*, client: Union[AuthenticatedClient, Client]) -> Optional[ModelGetCommunicationsIDResponse]
¶
Get Communications ID
Endpoint for getting the communications ID of the logged-in user.
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelGetCommunicationsIDResponse]
|
ModelGetCommunicationsIDResponse |
Source code in kalshi_py/api/communications/get_communications_id.py
Asynchronous API Call
kalshi_py.api.communications.get_communications_id.asyncio(*, client: Union[AuthenticatedClient, Client]) -> Optional[ModelGetCommunicationsIDResponse]
async
¶
Get Communications ID
Endpoint for getting the communications ID of the logged-in user.
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelGetCommunicationsIDResponse]
|
ModelGetCommunicationsIDResponse |
Source code in kalshi_py/api/communications/get_communications_id.py
Synchronous Detailed Response
kalshi_py.api.communications.get_communications_id.sync_detailed(*, client: Union[AuthenticatedClient, Client]) -> Response[ModelGetCommunicationsIDResponse]
¶
Get Communications ID
Endpoint for getting the communications ID of the logged-in user.
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelGetCommunicationsIDResponse]
|
Response[ModelGetCommunicationsIDResponse] |
Source code in kalshi_py/api/communications/get_communications_id.py
Asynchronous Detailed Response
kalshi_py.api.communications.get_communications_id.asyncio_detailed(*, client: Union[AuthenticatedClient, Client]) -> Response[ModelGetCommunicationsIDResponse]
async
¶
Get Communications ID
Endpoint for getting the communications ID of the logged-in user.
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelGetCommunicationsIDResponse]
|
Response[ModelGetCommunicationsIDResponse] |
Source code in kalshi_py/api/communications/get_communications_id.py
Get Quote¶
Synchronous API Call
kalshi_py.api.communications.get_quote.sync(quote_id: str, *, client: Union[AuthenticatedClient, Client]) -> Optional[ModelGetQuoteResponse]
¶
Get Quote
Endpoint for getting a particular quote
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quote_id
|
str
|
Quote ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelGetQuoteResponse]
|
ModelGetQuoteResponse |
Source code in kalshi_py/api/communications/get_quote.py
Asynchronous API Call
kalshi_py.api.communications.get_quote.asyncio(quote_id: str, *, client: Union[AuthenticatedClient, Client]) -> Optional[ModelGetQuoteResponse]
async
¶
Get Quote
Endpoint for getting a particular quote
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quote_id
|
str
|
Quote ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelGetQuoteResponse]
|
ModelGetQuoteResponse |
Source code in kalshi_py/api/communications/get_quote.py
Synchronous Detailed Response
kalshi_py.api.communications.get_quote.sync_detailed(quote_id: str, *, client: Union[AuthenticatedClient, Client]) -> Response[ModelGetQuoteResponse]
¶
Get Quote
Endpoint for getting a particular quote
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quote_id
|
str
|
Quote ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelGetQuoteResponse]
|
Response[ModelGetQuoteResponse] |
Source code in kalshi_py/api/communications/get_quote.py
Asynchronous Detailed Response
kalshi_py.api.communications.get_quote.asyncio_detailed(quote_id: str, *, client: Union[AuthenticatedClient, Client]) -> Response[ModelGetQuoteResponse]
async
¶
Get Quote
Endpoint for getting a particular quote
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quote_id
|
str
|
Quote ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelGetQuoteResponse]
|
Response[ModelGetQuoteResponse] |
Source code in kalshi_py/api/communications/get_quote.py
Get Quotes¶
Synchronous API Call
kalshi_py.api.communications.get_quotes.sync(*, client: Union[AuthenticatedClient, Client]) -> Optional[ModelGetQuotesResponse]
¶
Get Quotes
Endpoint for getting quotes
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelGetQuotesResponse]
|
ModelGetQuotesResponse |
Source code in kalshi_py/api/communications/get_quotes.py
Asynchronous API Call
kalshi_py.api.communications.get_quotes.asyncio(*, client: Union[AuthenticatedClient, Client]) -> Optional[ModelGetQuotesResponse]
async
¶
Get Quotes
Endpoint for getting quotes
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelGetQuotesResponse]
|
ModelGetQuotesResponse |
Source code in kalshi_py/api/communications/get_quotes.py
Synchronous Detailed Response
kalshi_py.api.communications.get_quotes.sync_detailed(*, client: Union[AuthenticatedClient, Client]) -> Response[ModelGetQuotesResponse]
¶
Get Quotes
Endpoint for getting quotes
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelGetQuotesResponse]
|
Response[ModelGetQuotesResponse] |
Source code in kalshi_py/api/communications/get_quotes.py
Asynchronous Detailed Response
kalshi_py.api.communications.get_quotes.asyncio_detailed(*, client: Union[AuthenticatedClient, Client]) -> Response[ModelGetQuotesResponse]
async
¶
Get Quotes
Endpoint for getting quotes
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelGetQuotesResponse]
|
Response[ModelGetQuotesResponse] |
Source code in kalshi_py/api/communications/get_quotes.py
Get Rf Qs¶
Synchronous API Call
kalshi_py.api.communications.get_rf_qs.sync(*, client: Union[AuthenticatedClient, Client]) -> Optional[ModelGetRFQsResponse]
¶
Get RFQs
Endpoint for getting RFQs
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelGetRFQsResponse]
|
ModelGetRFQsResponse |
Source code in kalshi_py/api/communications/get_rf_qs.py
Asynchronous API Call
kalshi_py.api.communications.get_rf_qs.asyncio(*, client: Union[AuthenticatedClient, Client]) -> Optional[ModelGetRFQsResponse]
async
¶
Get RFQs
Endpoint for getting RFQs
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelGetRFQsResponse]
|
ModelGetRFQsResponse |
Source code in kalshi_py/api/communications/get_rf_qs.py
Synchronous Detailed Response
kalshi_py.api.communications.get_rf_qs.sync_detailed(*, client: Union[AuthenticatedClient, Client]) -> Response[ModelGetRFQsResponse]
¶
Get RFQs
Endpoint for getting RFQs
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelGetRFQsResponse]
|
Response[ModelGetRFQsResponse] |
Source code in kalshi_py/api/communications/get_rf_qs.py
Asynchronous Detailed Response
kalshi_py.api.communications.get_rf_qs.asyncio_detailed(*, client: Union[AuthenticatedClient, Client]) -> Response[ModelGetRFQsResponse]
async
¶
Get RFQs
Endpoint for getting RFQs
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelGetRFQsResponse]
|
Response[ModelGetRFQsResponse] |
Source code in kalshi_py/api/communications/get_rf_qs.py
Get Rfq¶
Synchronous API Call
kalshi_py.api.communications.get_rfq.sync(rfq_id: str, *, client: Union[AuthenticatedClient, Client]) -> Optional[ModelGetRFQResponse]
¶
Get RFQ
Endpoint for getting a single RFQ by id
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rfq_id
|
str
|
RFQ ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelGetRFQResponse]
|
ModelGetRFQResponse |
Source code in kalshi_py/api/communications/get_rfq.py
Asynchronous API Call
kalshi_py.api.communications.get_rfq.asyncio(rfq_id: str, *, client: Union[AuthenticatedClient, Client]) -> Optional[ModelGetRFQResponse]
async
¶
Get RFQ
Endpoint for getting a single RFQ by id
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rfq_id
|
str
|
RFQ ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[ModelGetRFQResponse]
|
ModelGetRFQResponse |
Source code in kalshi_py/api/communications/get_rfq.py
Synchronous Detailed Response
kalshi_py.api.communications.get_rfq.sync_detailed(rfq_id: str, *, client: Union[AuthenticatedClient, Client]) -> Response[ModelGetRFQResponse]
¶
Get RFQ
Endpoint for getting a single RFQ by id
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rfq_id
|
str
|
RFQ ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelGetRFQResponse]
|
Response[ModelGetRFQResponse] |
Source code in kalshi_py/api/communications/get_rfq.py
Asynchronous Detailed Response
kalshi_py.api.communications.get_rfq.asyncio_detailed(rfq_id: str, *, client: Union[AuthenticatedClient, Client]) -> Response[ModelGetRFQResponse]
async
¶
Get RFQ
Endpoint for getting a single RFQ by id
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rfq_id
|
str
|
RFQ ID |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[ModelGetRFQResponse]
|
Response[ModelGetRFQResponse] |