close_plan
Closes a finished plan by marking its Active Positions and Creator Activity rows CLOSED in the working spreadsheet, preserving audit rows; requires Status 'Closed' unless force is set.
Instructions
Close out a finished plan: marks its 'Active Positions' row and all its 'Creator Activity' rows as CLOSED in the working spreadsheet. Nothing is deleted — rows stay in place so the evidence trail remains auditable and the sheet's formulas keep their alignment. The permanent trade-log spreadsheet is untouched. Refuses unless the plan's formula-computed Status reads 'Closed' (all bought tokens sold), unless force is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Close even if Status is not yet 'Closed' — e.g. after a rug where tokens are unsellable. | |
| planId | Yes | Plan ID to close. |