Currency, gold, coin and commodity prices
br_ratesRetrieve free-market currency, crypto, gold, coin, oil, and metal prices or daily price history from Mofid; use exact codes for history and divide Rial values by 10 for Toman.
Instructions
Return free-market prices of currencies, crypto, coins, 18k gold, the global ounce, oil and metals, or one code's daily history.
Source: Mofid only. Live rows have price, change, time and 7/30/365-day low and high. Rial prices: divide by 10 for Toman. History rows have close and change % (gold and coin rows also open, high, low), oldest first, back to 2019-2021. Agah's br_market also shows dollar, coin, gold and oil prices as a quick glance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | currency = free-market currencies and crypto (Rial), gold_coin = coins, 18k gold, ounce and 1-day coin certificates (Rial), commodity = oil, metals (USD). | gold_coin |
| limit | No | History: return only the newest N days. | |
| query | No | Filter by code (USD, EUR, USDT, BTC, IMCOIN, Gold18, WTI, Cu) or Persian name. With history_days it must be the exact code. | |
| history_days | No | 0 = live prices. Above 0 (with an exact code in query) = daily history over this many calendar days. |