Short- vs Long-Term Capital Gains
short_vs_long_term_capital_gainsRealized gains and losses from a pasted broker transactions export, split into short-term (held a year or less) and long-term by tax year, lots matched first-in, first-out, with sells that have no buy in the export set aside. Example questions: "How much short-term gain did I have this year?"; "Split my 2025 trades into short and long term"; "What are my capital gains?"
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": {
"transactions_csv": "<transactions_csv>"
},
"name": "short_vs_long_term_capital_gains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax_year | No | One tax year (default: every year in the export) | |
| transactions_csv | Yes | The transactions or gains/losses CSV from the broker, pasted as text (E*TRADE download, this repo's CSV, or plain columns date, action, symbol, quantity, price, fee) |