From 25d84a31617d02db5ba453f6b573450c68672722 Mon Sep 17 00:00:00 2001 From: CaioHenriquexD Date: Fri, 16 Jan 2026 21:06:41 +0100 Subject: [PATCH] Add simple API health check example Adds a minimal example script to verify Kalshi API availability. --- examples/api_health_check.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/api_health_check.py diff --git a/examples/api_health_check.py b/examples/api_health_check.py new file mode 100644 index 00000000..b6a4763d --- /dev/null +++ b/examples/api_health_check.py @@ -0,0 +1,18 @@ +""" +Simple API health check example. + +This script verifies that the Kalshi API is reachable +and returns a successful response. +""" + +from kalshi.client import KalshiClient + + +def check_api_health() -> None: + client = KalshiClient() + response = client.get_exchange_status() + print("API status:", response) + + +if __name__ == "__main__": + check_api_health()