Metadata-Version: 2.4
Name: kalshi_python_sync
Version: 3.1.0
Summary: Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
Home-page: https://github.com/Kalshi/exchange-infra
Author: OpenAPI Generator community
Author-email: Kalshi <support@kalshi.com>
License: LicenseRef-Proprietary
Project-URL: Repository, https://github.com/Kalshi/exchange-infra
Keywords: OpenAPI,OpenAPI-Generator,Kalshi Trading API
Requires-Python: >=3.13
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
Requires-Dist: cryptography>=41.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.2.1; extra == "dev"
Requires-Dist: pytest-cov>=2.8.1; extra == "dev"
Requires-Dist: mypy>=1.5; extra == "dev"
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: 3.1.0
- Package version: 3.1.0
- Generator version: 7.17.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit []()

## 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)
