ingest_trades
Validate and store trades from a broker or exchange statement, replacing prior uploads for the same source and returning accepted or rejected with per-trade errors.
Instructions
Validate and store trades from one broker or exchange statement.
source names the statement, e.g. "zerodha" or "groww". Re-submitting the same
source replaces its earlier upload. Returns status "accepted" when there are
no errors, otherwise "rejected" and nothing is stored. Each error has the trade
index and a message, so fix the mapping and resubmit. Warnings do not block.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"assessment_year": "<assessment_year>",
"source": "<source>",
"trades": "<trades>"
},
"name": "ingest_trades"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| trades | Yes | ||
| assessment_year | Yes |