Trade statistics by group
ime_trade_statsRank producers, commodities, brokers, or halls by traded value over a date range and return each group's market share.
Instructions
Rank producers, commodities, brokers or halls by traded value over a date range, with each one's market share.
Dates default to today (Tehran); at most 45 days; filters as in ime_trades. Value is thousand Rial. volume
only when all trades of the group share one unit. For single trades use ime_trades.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"group_by": "<group_by>"
},
"name": "ime_trade_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cat | No | Category id from ime_categories (0 = all). | |
| limit | No | Max groups to return (1-50). | |
| market | No | physical, subsidiary (بازار فرعی), export (Kish hall) or premium (no producer filter). | physical |
| search | No | Commodity, symbol or producer contains this text. | |
| date_to | No | Persian 1405/08/09 or Gregorian 2026-10-31. | |
| sub_cat | No | Category id from ime_categories (0 = all). | |
| group_by | Yes | Grouping key (broker = buyer broker). | |
| main_cat | No | Category id from ime_categories (0 = all). | |
| producer | No | Category id from ime_categories (0 = all). | |
| date_from | No | Persian 1405/08/09 or Gregorian 2026-10-31. |