Market Rates

Gold & Precious Metals

Energy & Commodities

Crypto Rates

All Conversions

Data Providers

Provider Description Monitored Assets Status (Synced X ago) Frequency
Total Active Network Coverage -- --
https://rates-api.mehrnet.com

Endpoint Specifications & Examples

Example Language

Unified Rate Sheet

Consolidated real-time rates across all 11 first-party data providers in a single compact schema.

Returns the full market state including free-market currencies (USD, EUR, AED in Tomans), sovereign gold coins (Emami, Azadi), bullion benchmarks (18K gold, Mithqal, Ounce), global fiat cross-rates, and major crypto tickers.

GET/latest

curl -sS -H "Accept: application/json" "https://rates-api.mehrnet.com/latest"
200 OK
{
  "timestamp": 1786712702228,
  "date_iso": "2026-08-14T13:05:02.228Z",
  "base": "IRT",
  "currencies": {
    "USD": { "buy": 186192, "sell": 187300 },
    "EUR": { "buy": 215418, "sell": 216700 },
    "AED": { "buy": 50897, "sell": 51200 }
  },
  "coins": {
    "EMAMI": { "buy": 186500000, "sell": 189500000 },
    "AZADI": { "buy": 182000000, "sell": 186000000 }
  },
  "gold": {
    "GOLD_GRAM_18K": 19038275,
    "MITHQAL": 82470000,
    "OUNCE": 4374.9
  },
  "fiat": {
    "base": "USD",
    "rates": { "EUR": 0.921, "GBP": 0.792, "IRT": 187300 }
  },
  "crypto": {
    "base": "USD",
    "rates": { "BTC": 62787.52, "ETH": 3415.2, "SOL": 182.4 }
  },
  "sources": [
    { "id": "hub_arzbin", "age_seconds": 5 },
    { "id": "bonbast", "age_seconds": 4 }
  ]
}

Targeted Query Filter

Filter the payload by specific symbols or entire asset categories to reduce transfer size to ~0.8 KB.

Ideal for bandwidth-sensitive clients, widgets, and bots that only need specific rates without fetching the full market directory.

GET/latest?symbols={list}&category={type}

Parameters

ParameterInRequiredDescription
symbolsQueryNoComma-separated symbols (e.g. USD,EUR,BTC,ETH,EMAMI,GOLD_18K).
categoryQueryNoFilter category: market, coins, gold, fiat, or crypto.
limit_cryptoQueryNoLimit crypto dictionary to top N major tokens (e.g. 50).
curl -sS -H "Accept: application/json" "https://rates-api.mehrnet.com/latest?symbols=USD,EUR,BTC,ETH,EMAMI,GOLD_18K"
200 OK (0.8 KB)
{
  "timestamp": 1786712702228,
  "date_iso": "2026-08-14T13:05:02.228Z",
  "base": "IRT",
  "currencies": {
    "USD": { "buy": 186192, "sell": 187300 },
    "EUR": { "buy": 215418, "sell": 216700 }
  },
  "coins": {
    "EMAMI": { "buy": 186500000, "sell": 189500000 }
  },
  "crypto": {
    "base": "USD",
    "rates": { "BTC": 62787.52, "ETH": 3415.2 }
  },
  "sources": [ ... ]
}

Single Asset Rate

Lookup real-time valuation, buy/sell spreads, and Toman conversions for any specific asset symbol.

Supports fiat currencies (e.g. usd, eur, aed, irt), cryptocurrencies (e.g. btc, eth, sol), and gold/coins (e.g. emami, azadi, gold_18k).

GET/rate/{symbol}

Parameters

ParameterInRequiredDescription
symbolPathYesAsset ticker symbol (case-insensitive, e.g. usd, btc, emami).
curl -sS -H "Accept: application/json" "https://rates-api.mehrnet.com/rate/usd"
200 OK
{
  "symbol": "USD",
  "category": "market",
  "sell": 187300,
  "buy": 186192,
  "base": "IRT",
  "timestamp": 1786712702228,
  "date_iso": "2026-08-14T13:05:02.228Z"
}

Cross-Pair Conversion

Convert value dynamically between any two global currencies, cryptocurrencies, or Tomans.

Computes direct exchange rates, inverse rates, and total converted amounts across arbitrary cross pairs (e.g. EUR/USD, BTC/EUR, USD/IRT, AED/TRY).

GET/rate?pair={from}/{to}&amount={n}

Parameters

ParameterInRequiredDescription
pairQueryYesCross pair in BASE/TARGET format (e.g. EUR/USD, USD/IRT).
amountQueryNoNumeric amount to convert (default: 1).
curl -sS -H "Accept: application/json" "https://rates-api.mehrnet.com/rate?pair=EUR/USD&amount=100"
200 OK
{
  "pair": "EUR/USD",
  "base": "EUR",
  "target": "USD",
  "rate": 1.157,
  "inverse_rate": 0.864,
  "amount": 100,
  "converted_value": 115.7,
  "timestamp": 1786712702228,
  "date_iso": "2026-08-14T13:05:02.228Z"
}

Providers Registry

Inspect fleet health, polling cadences, and last sync timestamps across all active providers.

Provides deep visibility into first-party scraper operational statuses (Bonbast, Navasan, TGJU, Arzbin, Binance, Coinbase, Open ER, etc.).

GET/providers

curl -sS -H "Accept: application/json" "https://rates-api.mehrnet.com/providers"
200 OK
{
  "providers": [
    {
      "id": "bonbast",
      "label": "Bonbast Live Rates",
      "category": "iran_market",
      "last_status": "OK",
      "consecutive_errors": 0,
      "last_synced_ago_seconds": 6
    }
  ],
  "timestamp": 1786712702228
}

Telemetry Logs

Stream real-time scraper execution traces, network response times, and failover telemetry.

Provides audit logs for every scraper cycle with execution durations and residential proxy engagement records.

GET/logs?limit={n}&provider={id}

Parameters

ParameterInRequiredDescription
limitQueryNoNumber of log records to return (1-100, default: 50).
providerQueryNoFilter logs by specific provider ID (e.g. bonbast, binance).
pageQueryNoPagination page index (default: 1).
curl -sS -H "Accept: application/json" "https://rates-api.mehrnet.com/logs?limit=5"
200 OK
{
  "page": 1,
  "limit": 5,
  "total": 1420,
  "logs": [
    {
      "id": 2489,
      "provider_id": "bonbast",
      "level": "INFO",
      "message": "Scrape succeeded for Bonbast Live Rates",
      "details": { "duration_ms": 295, "used_emergency_proxy": false },
      "created_date": "2026-08-14T13:05:02.228Z"
    }
  ]
}

Health & Status

Check edge service uptime and SQLite Cloudflare D1 database operational state.

Heartbeat probe for load balancers, ping services, and uptime monitoring.

GET/health

curl -sS -H "Accept: application/json" "https://rates-api.mehrnet.com/health"
200 OK
{
  "status": "ok",
  "service": "rates-api",
  "uptime": true,
  "server_time": "2026-08-14T13:05:02.228Z"
}

Historical Rate Sheet

Retrieves the consolidated daily closing rate sheet for any past calendar date across all 1,970 assets.

Supports ?date=YYYY-MM-DD with optional ?symbols=USD,EUR,BTC and ?category=market filters.

GET/historical?date=2026-08-14&symbols=USD,EUR,BTC,EMAMI

curl -sS -H "Accept: application/json" "https://rates-api.mehrnet.com/historical?date=2026-08-14&symbols=USD,EUR,BTC,EMAMI"
200 OK
{
  "timestamp": 1786722592285,
  "date_iso": "2026-08-14T15:49:52.285Z",
  "base": "IRT",
  "currencies": {
    "USD": { "buy": 185893, "sell": 187000 },
    "EUR": { "buy": 215070, "sell": 216350 }
  },
  "coins": {
    "EMAMI": { "buy": 186500000, "sell": 189500000 }
  }
}

Time-Series Price Points

Chronological time-series stream for financial charting, sparklines, and algorithmic moving averages.

Supports ?symbol=USD, ?days=7, and ?interval=15m|1h|1d.

GET/timeseries?symbol=USD&days=7&interval=1h

curl -sS -H "Accept: application/json" "https://rates-api.mehrnet.com/timeseries?symbol=USD&days=7&interval=1h"
200 OK
{
  "symbol": "USD",
  "interval": "1h",
  "days": 7,
  "total_points": 168,
  "points": [
    {
      "timestamp": 1786722592285,
      "date_iso": "2026-08-14T15:49:52.285Z",
      "price": 187000,
      "buy": 185893,
      "sell": 187000
    }
  ]
}

OpenAPI 3.1 Specification

Official machine-readable JSON schema defining all endpoints, parameters, schemas, and responses.

Importable into Postman, Insomnia, Swagger UI, or code generation pipelines (openapi-generator, oapi-codegen).

GET/openapi.json

curl -sS -H "Accept: application/json" "https://rates-api.mehrnet.com/openapi.json"
200 OK
{
  "openapi": "3.1.0",
  "info": {
    "title": "Mehr Rates API",
    "version": "1.0.0"
  },
  "servers": [
    { "url": "https://rates-api.mehrnet.com" }
  ],
  "paths": { ... }
}
© 2026 Mehrnet. Real-time multi-provider rate consolidation.