Metadata-Version: 2.4
Name: kalshi-python
Version: 2.1.4
Summary: Kalshi Trading API
Home-page: https://github.com/Kalshi/exchange-infra
Author: Kalshi Support
Author-email: Kalshi Support <support@kalshi.com>
License-Expression: LicenseRef-Proprietary
Project-URL: Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
Keywords: OpenAPI,OpenAPI-Generator,Kalshi Trading API
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: urllib3<3.0.0,>=2.1.0
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: pydantic>=2
Requires-Dist: typing-extensions>=4.7.1
Requires-Dist: lazy-imports<2,>=1
Dynamic: author
Dynamic: home-page

# 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](https://openapi-generator.tech) project:

- API version: 2.0.0
- Package version: 2.1.4
- Generator version: 7.15.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://kalshi.com](https://kalshi.com)

## Requirements.

Python 3.9+

## Installation & Usage
```python
pip install kalshi-python
import kalshi_python
```

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```python
from kalshi_python 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

# Initialize the client
client = KalshiClient(config)

# Make API calls
balance = client.get_balance()
print(f"Balance: ${balance.balance / 100:.2f}")
```

## Documentation

Full documentation is available at [docs.kalshi.com](https://docs.kalshi.com)


