Aller au contenu
GET /v1/price

One instrument's latest price by symbol

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/irr-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/irr-api/v1/price" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/irr-api/v1/price", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/irr-api/v1/price");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/irr-api/v1/price",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "low": 1757800,
        "date": "2026/06/10",
        "high": 1785200,
        "name": "US Dollar",
        "open": 1785100,
        "unit": "IRR",
        "close": 1758050,
        "change": 32100,
        "source": "tgju.org",
        "symbol": "usd",
        "category": "currency",
        "change_pct": 1.83,
        "close_toman": 175805,
        "date_jalali": "1405/03/20"
    },
    "meta": {
        "timestamp": "2026-06-10T22:57:35.748Z",
        "request_id": "375895f3-0cb1-4ac7-af2b-eb0467b8b6b5"
    },
    "status": "ok",
    "message": "Price retrieved successfully",
    "success": true
}