Documentation Index
Fetch the complete documentation index at: https://docs.openpx.trade/llms.txt
Use this file to discover all available pages before exploring further.
Setup
Generate an API key id + RSA private key at kalshi.com/account/profile → API Keys.
Put them in .env:
KALSHI_API_KEY_ID=...
KALSHI_PRIVATE_KEY_PATH=./kalshi-private-key.pem
Then pass them to the constructor:
import os
from openpx import Exchange
exchange = Exchange("kalshi", {
"api_key_id": os.environ["KALSHI_API_KEY_ID"],
"private_key_path": os.environ["KALSHI_PRIVATE_KEY_PATH"],
})