kite orders
Manage today’s order book. Place / modify / cancel commands read from an operator-supplied JSON file. Live action
Commands
Section titled “Commands”| Command | Purpose |
|---|---|
kite orders list |
Today’s orders. |
kite orders history <order-id> |
History for one order. |
kite orders place --file <json> [--variety <v>] Live action |
Place an order from a JSON payload. |
kite orders modify <variety> <order-id> --file <json> [--parent-order-id <id>] Live action |
Modify an order; only changed fields needed in the file. |
kite orders cancel <variety> <order-id> [--parent-order-id <id>] Live action |
Cancel an order. |
<variety> is one of regular, amo, co, iceberg, auction.
Place an order
Section titled “Place an order”{ "exchange": "NSE", "tradingsymbol": "INFY", "transaction_type": "BUY", "quantity": 1, "price": 1500, "product": "CNC", "order_type": "LIMIT", "validity": "DAY", "variety": "regular", "tag": "agent-run-001"}kite orders place --file ./order.json --json --no-colorkite orders place --variety amo --file ./order.json --json --no-colorVariety precedence: a variety field in the JSON overrides the --variety option. If
neither is set, the CLI defaults to regular.
Modify an order
Section titled “Modify an order”Only put the fields you want to change:
{ "quantity": 1, "price": 1501, "order_type": "LIMIT", "validity": "DAY"}kite orders modify regular <order-id> --file ./order-modify.json --json --no-colorkite orders modify co <order-id> --parent-order-id <parent-order-id> --file ./order-modify.json --json --no-colorCancel an order
Section titled “Cancel an order”kite orders cancel regular <order-id> --json --no-colorkite orders cancel co <order-id> --parent-order-id <parent-order-id> --json --no-colorSupported order fields
Section titled “Supported order fields”The CLI passes supported fields through to Kite as form fields. Booleans become "true" /
"false". Numbers become invariant strings. Nested arrays/objects are JSON-stringified.
Empty/null fields are dropped before sending.
Common field set (from Kite Connect v3):
exchange, tradingsymbol, transaction_type, quantity, price, product, order_type,
validity, disclosed_quantity, trigger_price, squareoff, stoploss,
trailing_stoploss, validity_ttl, iceberg_legs, iceberg_quantity, auction_number,
market_protection, autoslice, tag.
See also
Section titled “See also”- Concepts › Live-trading guardrails
- terminal agent guide — operate order placement from explicit operator intent only.