Skip to main content

Kalshi Trading API

Complete API for the Kalshi trading platform including all handlers for SDK generation

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 3.37.0
  • Package version: 3.37.0
  • Generator version: 7.17.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit

Requirements.

Python 3.13+

Installation & Usage

pip install kalshi_python_async
import kalshi_python_async

Getting Started

Please follow the installation procedure and then run the following:

import asyncio

from kalshi_python_async import Configuration, KalshiClient

# Configure the client
config = Configuration(
    host="https://api.elections.kalshi.com/trade-api/v2"
)

# For authenticated requests
# Read private key from file
with open("path/to/private_key.pem", "r") as f:
    private_key = f.read()

config.api_key_id = "your-api-key-id"
config.private_key_pem = private_key

async def main():
    # Initialize the client
    async with KalshiClient(config) as client:
        # Make API calls
        balance = await client.get_balance()
        print(f"Balance: ${balance.balance / 100:.2f}")

asyncio.run(main())

Documentation

Full documentation is available at docs.kalshi.com

Metadata

Release files for kalshi-python-async 3.37.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kalshi-python-async 3.37.0
File Size Uploaded Provenance Actions
kalshi_python_async-3.37.0.tar.gz 239.5 kB With provenance Details for kalshi_python_async-3.37.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kalshi-python-async 3.37.0
File Interpreter ABI Platform Actions
kalshi_python_async-3.37.0-py3-none-any.whl Python 3 none any Details for kalshi_python_async-3.37.0-py3-none-any.whl

Total release size: 739.5 kB

Release files / kalshi_python_async-3.37.0.tar.gz

Download URL kalshi_python_async-3.37.0.tar.gz
Size 239.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f1596d1bad6764fa160d3271e4cee1a7ae9e739725e61eb295beeea019939fd1
BLAKE2b-256 checksum
How to use checksums
7e717e217907b1b16c0edf156a65c0010521da8d30be7234637737a647f21fe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / kalshi_python_async-3.37.0-py3-none-any.whl

Download URL kalshi_python_async-3.37.0-py3-none-any.whl
Size 500.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34eeac0dce0ba6ef058e8aa7432b241fe57fcf3f195b94823092572e2bb3e6c7
BLAKE2b-256 checksum
How to use checksums
9e3387fbb8aebccd876465a4c8923a4c16eb947ca7985a17e9b92685fea1fec2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for kalshi-python-async 3.37.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kalshi_python_async-3.37.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.37.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page