Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Authenticate to Kalshi.
.env
KALSHI_API_KEY_ID=... KALSHI_PRIVATE_KEY_PATH=./kalshi-private-key.pem
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"], })
import { Exchange } from "@openpx/sdk"; const exchange = new Exchange("kalshi", { api_key_id: process.env.KALSHI_API_KEY_ID, private_key_path: process.env.KALSHI_PRIVATE_KEY_PATH, });
use openpx::ExchangeInner; use serde_json::json; let exchange = ExchangeInner::new("kalshi", json!({ "api_key_id": std::env::var("KALSHI_API_KEY_ID").unwrap(), "private_key_path": std::env::var("KALSHI_PRIVATE_KEY_PATH").unwrap(), }))?;