data_get_trades
Fetch recent strategy orders from TradingView, auto-open Strategy Tester, and unhide the selected strategy. Pass entity_id when multiple strategies are loaded.
Instructions
Get the most recent strategy orders. Pass entity_id when more than one strategy is loaded. Auto-opens Strategy Tester and unhides the selected strategy.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "data_get_trades"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | No | Exact strategy entity ID from chart_get_state. Strongly recommended when more than one strategy is loaded. | |
| max_trades | No | Maximum trades to return (1-20, default 20) |