assign_split_to_lot
Assign a transaction split to an investment lot for cost basis tracking. Call after creating buy/sell transactions.
Instructions
Assign a transaction split to a lot.
Use after creating a buy/sell transaction to link the investment account split to its lot for cost basis tracking.
Args: split_guid: GUID of the split (from transaction's investment account). 8+ char prefix accepted. lot_guid: GUID of the lot (or 8+ char prefix).
Workflow: 1. create_lot("Assets:VTSAX", "VTSAX Jan 2026") 2. create_transaction(...buy 10 shares...) 3. assign_split_to_lot(investment_split_guid, lot_guid)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lot_guid | Yes | Lot GUID (32-char hex or 8+ char prefix) | |
| split_guid | Yes | Split GUID (32-char hex or 8+ char prefix) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |