Import holdings
import_holdingsImport a broker's holdings export (Zerodha/Groww/Kite style CSV: instrument, quantity, average cost, optionally LTP) into an investment account. Each row becomes a holding plus one 'buy' lot at the average cost dated as_of, so cost basis and P/L work from day one. Existing holdings (same symbol) are skipped unless replace=true. Dry-run unless commit=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | The export, header included | |
| kind | No | Default stock; use mutualFund for a fund export | |
| as_of | No | Date to give the opening lots; default today | |
| commit | No | ||
| replace | No | Re-import holdings that already exist (their lots are replaced by the new opening lot) | |
| currency | No | Default: the account's currency | |
| account_id | Yes | The investment account (type investment) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||