From 2f65a9673ca60020c786619088275c0c0954f320 Mon Sep 17 00:00:00 2001 From: xelons79 Date: Mon, 19 Jan 2026 20:00:35 +0100 Subject: [PATCH] Add simple environment configuration loader Introduces a small helper to load API configuration from environment variables. --- utils/config.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 utils/config.py diff --git a/utils/config.py b/utils/config.py new file mode 100644 index 00000000..883e1e07 --- /dev/null +++ b/utils/config.py @@ -0,0 +1,11 @@ +import os + +def load_config(): + """ + Loads basic configuration values from environment variables. + """ + return { + "api_key": os.getenv("KALSHI_API_KEY"), + "api_secret": os.getenv("KALSHI_API_SECRET"), + "base_url": os.getenv("KALSHI_API_BASE_URL"), + }