Skip to content

kite orders

Manage today’s order book. Place / modify / cancel commands read from an operator-supplied JSON file. Live action

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.

{
"exchange": "NSE",
"tradingsymbol": "INFY",
"transaction_type": "BUY",
"quantity": 1,
"price": 1500,
"product": "CNC",
"order_type": "LIMIT",
"validity": "DAY",
"variety": "regular",
"tag": "agent-run-001"
}
Terminal window
kite orders place --file ./order.json --json --no-color
kite orders place --variety amo --file ./order.json --json --no-color

Variety precedence: a variety field in the JSON overrides the --variety option. If neither is set, the CLI defaults to regular.

Only put the fields you want to change:

{
"quantity": 1,
"price": 1501,
"order_type": "LIMIT",
"validity": "DAY"
}
Terminal window
kite orders modify regular <order-id> --file ./order-modify.json --json --no-color
kite orders modify co <order-id> --parent-order-id <parent-order-id> --file ./order-modify.json --json --no-color
Terminal window
kite orders cancel regular <order-id> --json --no-color
kite orders cancel co <order-id> --parent-order-id <parent-order-id> --json --no-color

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.