Aller au contenu
GET /v1/quote

Live quote for one or more IDX stocks

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/idx-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/idx-api/v1/quote" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/idx-api/v1/quote", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/idx-api/v1/quote");
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/idx-api/v1/quote",
    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": {
        "note": "The live quote for one or more Indonesian (IDX) stocks — price, change, open/high/low, volume, market cap, P/E and sector (in rupiah), with the company name. Pass codes (the IDX ticker, comma-separate up to 20, e.g. BBCA,TLKM).",
        "count": 2,
        "quotes": [
            {
                "low": 6100,
                "high": 6175,
                "open": 6100,
                "price": 6175,
                "change": 250,
                "sector": "Finance",
                "ticker": "BBCA",
                "volume": 14628000,
                "company": "PT Bank Central Asia Tbk",
                "currency": "IDR",
                "pe_ratio": 13.09,
                "market_cap": 730404652734375,
                "change_percent": 4.22
            },
            {
                "low": 2890,
                "high": 2910,
                "open": 2900,
                "price": 2910,
                "change": 50,
                "sector": "Communications",
                "ticker": "TLKM",
                "volume": 4155800,
                "company": "PT Telkom Indonesia (Persero) Tbk Class B",
                "currency": "IDR",
                "pe_ratio": 17.63,
                "market_cap": 283317945627860,
                "change_percent": 1.75
            }
        ],
        "source": "Indonesia Stock Exchange / IDX (TradingView)"
    },
    "meta": {
        "timestamp": "2026-06-15T02:10:44.495Z",
        "request_id": "406763e7-db5a-4312-b41f-c8894fa73c95"
    },
    "status": "ok",
    "message": "Quote retrieved successfully",
    "success": true
}