close_forward_tradewriteOwner-scopedClose one of the user's open forward trades at market, or cancel it when it is still an unfilled order. The exit price comes from the last completed 1-minute close and the realized P&L is recomputed server-side, so no price is accepted.
| Param | Type | Req. | Description |
|---|---|---|---|
| tradeId | string | yes | The trade id to close or cancel (from get_forward_trades). |
Example prompts
- “Close my open EURUSD forward trade.”
- “Cancel that pending limit order.”
Example call
{ "name": "close_forward_trade", "arguments": { "tradeId": "9b8a7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d" } }