Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions examples/basic_usage.py
Original file line number Diff line number Diff line change
@@ -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()