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.28.0
- Package version: 3.28.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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kalshi_python_async-3.28.0.tar.gz.
File metadata
- Download URL: kalshi_python_async-3.28.0.tar.gz
- Upload date:
- Size: 183.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
979468bca3b393490a233556c0c9fc652cfdb998f865a7234ad9c90497f7a27f
|
|
| MD5 |
4d6fbded4b7df6af17faaeedf6bd7a04
|
|
| BLAKE2b-256 |
5e51cc867eadc7b1bf6b0d08c39bbd77d6bedfe9629ad13000ca4bdb7e395ff2
|
Provenance
The following attestation bundles were made for kalshi_python_async-3.28.0.tar.gz:
Publisher:
publish-pypi.yml on Kalshi/exchange-infra
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kalshi_python_async-3.28.0.tar.gz -
Subject digest:
979468bca3b393490a233556c0c9fc652cfdb998f865a7234ad9c90497f7a27f - Sigstore transparency entry: 2508806875
- Sigstore integration time:
-
Permalink:
Kalshi/exchange-infra@d4ccd82261314222b1d8f8a5d892a6f9d7ac9f11 -
Branch / Tag:
refs/heads/release/kalshi-2026-08-18 - Owner: https://github.com/Kalshi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d4ccd82261314222b1d8f8a5d892a6f9d7ac9f11 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kalshi_python_async-3.28.0-py3-none-any.whl.
File metadata
- Download URL: kalshi_python_async-3.28.0-py3-none-any.whl
- Upload date:
- Size: 400.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffbb74eb8fcab0399a2f8fbaefa9dd5a3fc6861d1196eb5fe7470468b27622ab
|
|
| MD5 |
4c2e374aa72adef39a6672104b594006
|
|
| BLAKE2b-256 |
4aae92fd88c0d2d9c36c6fc3b2799b1e3f81cbcd5d5a57b4e5f86c8320b8a13a
|
Provenance
The following attestation bundles were made for kalshi_python_async-3.28.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on Kalshi/exchange-infra
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kalshi_python_async-3.28.0-py3-none-any.whl -
Subject digest:
ffbb74eb8fcab0399a2f8fbaefa9dd5a3fc6861d1196eb5fe7470468b27622ab - Sigstore transparency entry: 2508808248
- Sigstore integration time:
-
Permalink:
Kalshi/exchange-infra@d4ccd82261314222b1d8f8a5d892a6f9d7ac9f11 -
Branch / Tag:
refs/heads/release/kalshi-2026-08-18 - Owner: https://github.com/Kalshi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d4ccd82261314222b1d8f8a5d892a6f9d7ac9f11 -
Trigger Event:
push
-
Statement type: