How to import a file to create a basket of trades on Kite
Importing a file to create a basket of trades on Kite means loading a basket file into a new basket in one step, instead of searching for and adding each instrument by hand. On Kite web , you create an empty basket, click the Import basket icon, and select the file; Kite reads each row into a basket leg, complete with the instrument, side, quantity, order type, price, and product code . The imported basket can then be edited or executed as it is. The facility is Kite web only; the Kite app cannot import a basket file.
This guide is for traders who build large or recurring baskets and want to skip the manual instrument-by-instrument entry: a multi-stock rebalance, an index-replication set, or a structure prepared offline. It covers what the basket file is, how each row maps to a Kite leg, the import flow on Kite web, and the review you must do before executing an imported basket.
Conflict-of-interest disclosure. This guide is published by the WebNotes Editorial Team for informational purposes and is written independently. WebNotes operates a Zerodha account-opening referral programme, disclosed on the pages that carry the referral link; this guide does not carry it and earns no referral commission from the procedure described here.
What the basket file is
The file you import is a basket file, the artefact Kite itself produces when you export a basket. Zerodha’s share flow exports a basket as a download “in .JSON format” named after the basket, and the same import facility reads that file back into a new basket. So the cleanest source of an import file is Kite’s own Export basket control, which guarantees the structure Kite expects on the way back in.
Each leg in the file carries the fields a basket leg needs: the instrument (its trading symbol), the exchange, the transaction type (buy or sell), the quantity, the order type (limit , market , SL , or SL-M ), the price for a limit leg or the trigger for an SL leg, and the product code (CNC , MIS , or NRML ). These are the same parameters you would set by hand when configuring a leg in the basket panel, so an imported leg arrives fully specified and ready to review.
The practical value is bulk creation. A basket can hold up to 20 orders, and Zerodha allows up to 50 saved baskets. Building a 20-leg basket by searching and adding each instrument is slow and error-prone; importing a prepared file populates all 20 legs at once. For an index-replication basket or a large rebalance, the import turns a long manual entry into a single click.
Step-by-step import
The procedure infobox above lists the sequence. The detail below covers preparing the file, the import flow, and the review that an imported basket demands.
1. Prepare the basket file
Start from a Kite-exported basket file wherever you can. Build the basket once in Kite, export it with the Export basket control to get the .JSON, and reuse that file as your import template. If someone has shared a basket with you, their exported .JSON is already a valid import file. Working from a Kite-generated file avoids format guesswork, because the file matches exactly what the import reads.
2. Open Baskets on Kite web
On Kite web, click Orders, then Baskets. This is a Kite web feature; Zerodha states the import “is only available on Kite web and not on the Kite app.” If you are on mobile, switch to a desktop browser to import.
3. Create the target basket
Click New Basket, enter a name, and click Create. The import loads into this new, empty basket, so name it for the strategy you are about to build, for example a rebalance date or an index name.
4. Import the file
Click the Import basket icon and select your file. Kite reads each row into a basket leg, populating the instrument, side, quantity, order type, price, and product for every row. The basket fills in one step.
5. Review every leg
Treat an imported basket the way you would treat any saved basket reused later: review it before you act. Go leg by leg and check the instrument, the buy-sell direction, the quantity, the order type, the price, and the product. Pay particular attention to limit prices, since a file prepared earlier may carry prices the market has moved past. Update any stale limit against the live quote before executing.
6. Edit or execute
Zerodha confirms the imported basket “can be edited or executed as it is.” Make any final edits, then execute. For an F&O basket, order the legs so buy options come first, which shows the lowest required margin . After executing, confirm the status of every leg in the basket or the order book , since a basket is not atomic and any leg can reject while others fill.
Bulk creation and per-order limits
The import shines for large baskets, and it pairs with two limits worth keeping in mind. Kite sets maximum per-order limits when you trade stocks and F&O; an order above the freeze quantity must be split. Zerodha notes that baskets simplify this, especially with the duplicate-order function, so a large position can be entered as several legs under the per-order cap. And a basket holds at most 20 orders, so a set larger than 20 instruments needs more than one basket. Plan the file around those limits: keep each order under the freeze quantity, and split a list longer than 20 instruments across multiple baskets.
See also
- Basket order on Kite
- How to place a basket order on Kite
- How to place a multi-leg options basket on Kite
- Share baskets on Kite
- Quick baskets on Kite web
- Required margin vs final margin on a Kite basket
- How to fix a basket that partially executed
- Why the Analyze option does not load on a Kite basket
- How to read the Kite order book
- Why orders are rejected on Kite
- How to fix a freeze-quantity rejection
- How to fix an RMS rejection on Zerodha
- CNC product code
- MIS product code
- NRML product code
- Limit order on Kite
- Market order on Kite
- SL order on Kite
- SL-M order on Kite
- SPAN margin on Zerodha
- Nifty 50
- Kite Connect basket orders API
- Kite by Zerodha
- Kite web
- Zerodha
External references
- Zerodha support: How do I import files to execute trades on Kite?
- Zerodha support: How to share Kite baskets?
- Zerodha support: How to place basket orders on Kite?
- SEBI
- Kite by Zerodha
References
- Zerodha support, How do I import files to execute trades on Kite? (Orders, Baskets, New Basket, Create, Import basket icon; edit or execute as it is; Kite web only; as of 21 June 2026).
- Zerodha support, How to share Kite baskets? (Export basket produces a .JSON download named after the basket; as of 21 June 2026).
- Zerodha support, How to place basket orders on Kite? (up to 20 orders per basket, up to 50 baskets; duplicate function for per-order limits; as of 21 June 2026).
- NSE circulars on freeze quantities and per-order limits in the cash and derivatives segments.