tv_cancel_order
Cancel a working paper trading order by ID on TradingView. Returns the cancelled order and remaining working orders.
Instructions
MUTATES the connected TradingView broker: cancel one working order by id (entry orders; bracket orders belong to their position). PAPER ONLY. Returns the cancelled order and the remaining working orders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | No | chart layout id or index; default active | |
| order_id | Yes | order id from tv_trading_status | |
| expect_layout | No | layout id the tab is expected to show right now; the call refuses if it differs (a tab keeps its target id when the user opens another layout in it) |