From f9dd27f86698d89c374f436b8906cb7a6d91326c Mon Sep 17 00:00:00 2001 From: Marcus Date: Thu, 8 Jan 2026 09:35:03 +0100 Subject: [PATCH] Add basic usage example Adds a simple example file demonstrating basic API usage and error handling --- add-basic-usage-example | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 add-basic-usage-example diff --git a/add-basic-usage-example b/add-basic-usage-example new file mode 100644 index 00000000..3ba497e5 --- /dev/null +++ b/add-basic-usage-example @@ -0,0 +1,17 @@ +""" +Basic usage example for Kalshi API client +""" + +from kalshi_client import KalshiClient + +def main(): + client = KalshiClient() + + try: + markets = client.get_markets() + print(markets) + except Exception as error: + print("An error occurred:", error) + +if __name__ == "__main__": + main()