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()