From 59170ee1830b726e09817da9bf5ffc1815567e1c Mon Sep 17 00:00:00 2001 From: ManyChavez Date: Tue, 20 Jan 2026 19:05:02 +0100 Subject: [PATCH] Document environment-based configuration Adds documentation explaining how to configure the client using environment variables. --- docs/configuration.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/configuration.md diff --git a/docs/configuration.md b/docs/configuration.md new file mode 100644 index 00000000..a529e045 --- /dev/null +++ b/docs/configuration.md @@ -0,0 +1,21 @@ +# Configuration + +The Kalshi client can be configured using environment variables. + +## Supported variables + +- `KALSHI_API_KEY` +- `KALSHI_API_SECRET` +- `KALSHI_ENV` (e.g. `demo` or `prod`) + +## Example + +```python +import os +from kalshi_client import KalshiClient + +client = KalshiClient( + api_key=os.getenv("KALSHI_API_KEY"), + api_secret=os.getenv("KALSHI_API_SECRET"), + environment=os.getenv("KALSHI_ENV", "demo") +)