From b3b88f3d1d80d0fb4fc4228c19caba9dce06529b Mon Sep 17 00:00:00 2001 From: LENNOXT Date: Tue, 20 Jan 2026 19:00:52 +0100 Subject: [PATCH] Add basic client usage example Provides a minimal runnable example for new users to understand client initialization and API usage. --- examples/basic_usage.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 examples/basic_usage.py diff --git a/examples/basic_usage.py b/examples/basic_usage.py new file mode 100644 index 00000000..2c4f2da1 --- /dev/null +++ b/examples/basic_usage.py @@ -0,0 +1,22 @@ +""" +Basic example showing how to initialize the Kalshi client +and make a simple request. +""" + +from kalshi_client import KalshiClient + + +def main(): + client = KalshiClient( + api_key="YOUR_API_KEY", + api_secret="YOUR_API_SECRET", + environment="demo" + ) + + markets = client.get_markets(limit=5) + for market in markets: + print(market["ticker"]) + + +if __name__ == "__main__": + main()