Metadata-Version: 2.4
Name: kalshi_python_async
Version: 3.28.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: aiohttp>=3.9.0
Requires-Dist: aiohttp-retry>=2.8.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.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
```python
pip install kalshi_python_async
import kalshi_python_async
```

## Getting Started

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

```python
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](https://docs.kalshi.com)
