Metadata-Version: 2.1
Name: kalshi-python-unofficial
Version: 0.0.1
Summary: A unofficial Python wrapper for the Kalshi API
Home-page: https://github.com/humz2k/kalshi-python-unofficial
Author: humz2k
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: websockets (>=10.0)
Requires-Dist: Requests
Requires-Dist: cryptography

# kalshi-python-unofficial

A lightweight Python wrapper for the Kalshi trading API. Fairly untested at the moment.

## Usage
### Setting API Credentials
```python
import kalshi.auth
kalshi.auth.set_key("PUBLIC_KEY","path/to/private_key.pem")
```

### REST Endpoints
Full coverage except for collections and advanced endpoints.
```python
from kalshi.rest import portfolio, exchange
print(portfolio.GetBalance())
print(exchange.GetExchangeStatus())
```

### Websocket Client
```python
import kalshi.websocket
class MyClient(kalshi.websocket.Client):
    async def on_open(self):
        await self.subscribe(["orderbook_delta"], ["KXBTCD-25JAN1821-T104249.99"])

    async def on_message(self, message):
        print("Received message:", message)

ws_client = MyClient()
asyncio.run(ws_client.connect())
```
