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.30.0
  • Package version: 3.30.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.30.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.30.0
File Size Uploaded
kalshi_python_async-3.30.0.tar.gz 196.7 kB Details

Built distribution (wheel)

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

Total release size: 620.2 kB

Release files / kalshi_python_async-3.30.0.tar.gz

Download URL kalshi_python_async-3.30.0.tar.gz
Size 196.7 kB
Tags Source
SHA-256 checksum
How to use checksums
50368584e6c12f04ccb08b0011b65adb72ab77543cc81b3e3bad263b550ab041
BLAKE2b-256 checksum
How to use checksums
9c9d330a141e9f0307b60a3c1c9fdc709eab1d937beb34236ec850e741e00338
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 15, 2026.

Transparency log

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

Download URL kalshi_python_async-3.30.0-py3-none-any.whl
Size 423.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b9f5f3669c769ecf2e2a812bc83870e5e0c4e26ae99ae9151c2851f76b17cb3
BLAKE2b-256 checksum
How to use checksums
000dd3095eabd707e274bfda4debf3f48aa067834fd3e2dd0dd0e14fb39ead6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 15, 2026.

Transparency log

Release history Release notifications | RSS feed

3.31.0

2 release files

This release

3.30.0 This release

2 release files

3.29.0

2 release files

3.28.0

2 release files

3.26.0

2 release files

3.25.0

2 release files

3.24.0

2 release files

3.22.0

2 release files

3.21.0

2 release files

3.19.0

2 release files

3.18.0

2 release files

3.16.0

2 release files

3.14.0

2 release files

3.13.0

2 release files

3.11.0

2 release files

3.10.0

2 release files

3.9.0

2 release files

3.8.0

2 release files

3.7.0

2 release files

3.6.0

2 release files

3.5.0

2 release files

3.4.0

2 release files

3.3.0

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.0

2 release files

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