Commodity groups
ime_categoriesLists Iran Mercantile Exchange commodity main groups, groups, and subgroups with IDs so you can use them as main_cat, cat, and sub_cat filters in trade, supply, and price-history queries.
Instructions
List the exchange's commodity groups: main groups, then groups, then subgroups, with their ids.
Call it with no arguments for the main groups (industrial, agriculture, petrochemical, mineral, oil products, real estate, subsidiary). Pass main_cat for the groups under it (steel, aluminium, copper, gold...), then main_cat plus cat for the subgroups (rebar, hot sheet...). Use the ids as main_cat/cat/sub_cat in ime_trades, ime_supply and ime_price_history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cat | No | Group id (with main_cat) to list its subgroups. | |
| main_cat | No | Main group id to list its groups (0 = list the main groups). |