From 96b20399d42219559162731f254e5d44c41192b5 Mon Sep 17 00:00:00 2001 From: mehmetyavuzz43 <147098445+mehmetyavuzz43@users.noreply.github.com> Date: Sun, 11 Jan 2026 19:43:29 +0100 Subject: [PATCH] Create quickstart-trading Added a **quickstart guide** that walks users through installing the SDK and placing a basic market order. --- docs/quickstart-trading | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/quickstart-trading diff --git a/docs/quickstart-trading b/docs/quickstart-trading new file mode 100644 index 00000000..b870947d --- /dev/null +++ b/docs/quickstart-trading @@ -0,0 +1,27 @@ +# Quickstart Trading Guide + +This guide shows how to place a simple trade using the Kalshi Python SDK. + +## Setup + +1. Install dependencies: `pip install kalshi-python`. +2. Set the `KALSHI_API_KEY_ID` and `KALSHI_PRIVATE_KEY_PATH` environment variables. + +## Placing an order + +```python +from kalshi_python import KalshiClient, Configuration + +cfg = Configuration(host="https://api.kalshi.com/trade-api/v2") +cfg.api_key_id = "YOUR_API_KEY_ID" +with open("path/to/private_key.pem", "r") as f: + cfg.private_key_pem = f.read() + +client = KalshiClient(cfg) +order = client.trader_api.create_order( + ticker="YES-EXAMPLE", + order_type="market", + side="buy", + size=1 +) +print(order)