Skip to main content
Adapters/macro_ratesLive · Full History + 4x Daily

FX, Gold & Commodities

Full historical archive (1979–present) plus 4x-daily IRST intraday updates across 18 Iranian FX, gold, coin, coin-bubble, silver, and Brent crude benchmarks with multi-feed consensus reconciliation and same-source daily change normalization.

Upstream: Iranian FX, Bullion & Global Commodity Feeds · Async aiohttp + msgspec · Multi-Feed Consensus · 4x Daily IRST Cron
Target Instruments
18
Historical Bars Stored
89,729
Earliest Record
1979-12-26
Latest Sync Date
2026-12-04

Usage Examples

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_historical_ohlcv",
    "arguments": {
      "symbol": "USD",
      "timeframe": "1d",
      "limit": 30
    }
  }
}

18 Reconciled FX, Gold, Coin & Oil Benchmarks

Historical & Live Macro Benchmarks in Postgres
InstrumentGroupUnitLatest PriceDaily Change %History RangeStored Bars
USD
دلار آمریکا · US Dollar
FXIRR3,032,0000%2011-11-26 → 2026-12-045,374
EUR
یورو · Euro
FXIRR3,275,000-0.15%2012-06-28 → 2026-12-045,240
Emami1
سکه امامی · Emami Gold Coin
COINSIRR2,690,000,0000%2010-04-04 → 2026-12-045,714
GoldGeram18
طلای ۱۸ عیار · 18K Gold Gram
GOLDIRR268,376,000+1.85%2013-07-22 → 2026-12-033,572
GoldOunce2USD
انس جهانی طلا · Global Gold Ounce
GOLDUSD3,647.63-2.84%1979-12-26 → 2026-12-0412,208
Azadi1
سکه بهار آزادی · Azadi Gold Coin
COINSIRR2,610,000,0000%2013-03-07 → 2026-12-045,021
COIN_BLUBBER
حباب سکه بهار آزادی · Azadi Coin Bubble
COINSIRR2,290,000-3.45%2019-01-05 → 2026-12-032,050
Emami1_BLUBBER
حباب سکه امامی · Emami Coin Bubble
COINSIRR77,410,000+2.44%2019-02-12 → 2026-12-032,021
GERAMI_BLUBBER
حباب سکه گرمی · Gram Coin Bubble
COINSIRR59,320,000-3.92%2019-02-12 → 2026-12-032,021
GeramiCoin
سکه گرمی · Gram Gold Coin
COINSIRR380,000,0000%2013-03-07 → 2026-12-045,021
AED
درهم امارات · UAE Dirham
FXIRR825,5000%2012-09-01 → 2026-12-045,197
CNY
یوان چین · Chinese Yuan
FXIRR455,0000%2013-03-03 → 2026-12-045,025
TRY
لیر ترکیه · Turkish Lira
FXIRR59,450-0.25%2012-11-10 → 2026-12-045,138
GoldGeram24
طلای ۲۴ عیار · 24K Gold Gram
GOLDIRR357,831,000+1.85%2014-05-02 → 2026-12-033,431
GoldMithqal
مثقال طلا · Gold Mithqal
GOLDIRR1,162,460,000+1.83%2013-07-22 → 2026-12-033,574
OIL_BRENT2USD
نفت برنت · Brent Crude Oil
OILUSD90.7819-2.22%2006-01-30 → 2026-12-045,820
SILVER_999
نقره ۹۹۹ · Silver 999 Gram
SILVERIRR4,378,0000%2020-10-31 → 2026-12-031,740
SilverOunce2USD
انس جهانی نقره · Global Silver Ounce
SILVERUSD43.53-5.84%1982-07-01 → 2026-12-0411,562

Sample Normalized Record Payload

Live & Historical Macro Benchmark (USD · IRR)
{
  "symbol": "USD",
  "name_fa": "دلار آمریکا",
  "name_en": "US Dollar",
  "group": "FX",
  "unit": "IRR",
  "history_span": "2011-11-26 -> 2026-12-04",
  "bars_count": 5374,
  "latest_bars": [
    {
      "timestamp": "2026-12-04 11:30:00+00",
      "open": 3032000,
      "high": 3032000,
      "low": 3032000,
      "close": 3032000,
      "change_percent": 0
    },
    {
      "timestamp": "2026-12-03 11:30:00+00",
      "open": 2940000,
      "high": 2986250,
      "low": 2940000,
      "close": 2986250,
      "change_percent": 1.06
    },
    {
      "timestamp": "2026-12-02 11:30:00+00",
      "open": 2950300,
      "high": 2988000,
      "low": 2950000,
      "close": 2955000,
      "change_percent": 0
    },
    {
      "timestamp": "2026-12-01 11:30:00+00",
      "open": 2950000,
      "high": 2955105,
      "low": 2950000,
      "close": 2955105,
      "change_percent": -0.3
    },
    {
      "timestamp": "2026-11-30 11:30:00+00",
      "open": 2997650,
      "high": 3000000,
      "low": 2950000,
      "close": 2964000,
      "change_percent": -1.47
    }
  ]
}

Upstream Endpoints & Datasets

Adapter Datasets
DatasetEndpointTarget
Historical Daily OHLC Archive
Daily OHLC series since 1979 across FX, gold, coins, silver, and Brent oil.
Primary Daily OHLC Feedentities, market_snapshots
Initial full backfill + 4x daily 5d overlap
Free-Market Cash FX & Coin Archive
Historical cash FX/coin rates normalized to IRR and reconciled via consensus rules.
Multi-Year Cash FX & Coin Archive (2012–present)market_snapshots (reconciled)
Initial full backfill + current year
Intraday Reference Quotes
Free-market cash FX authority on wide divergence; same-source delta normalization.
4x Daily Live Snapshot Feedsmarket_snapshots, data/market_data_historical.{csv,sqlite3}
4x daily (09:30, 13:00, 16:30, 20:00 IRST)

Environment Variables

Adapter Environment Settings
VariableDefaultPurpose
MACRO_RATES_SCHEDULE_HOURS09:30,13:00,16:30,20:00Four daily Asia/Tehran cron schedules executed by the collector daemon.
MACRO_RATES_OVERLAP_DAYS5Trailing daily bars re-fetched per incremental run to capture finalized closes.
MACRO_RATES_FORCE_REBUILDfalseForce complete historical rebuild from archive start instead of incremental overlap.
MACRO_RATES_EXPORT_FILEStrueMaintain local CSV & SQLite3 exports alongside Postgres ingestion.