/v1/quote
Latest quote for a symbol
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/psx-api/v1/quote" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/psx-api/v1/quote", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/psx-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/psx-api/v1/quote",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"name": "Lucky Cement Limited",
"note": "The latest quote for one PSX-listed symbol — last traded price, previous close, day change and the symbol's name, sector and instrument type. Pass symbol (e.g. LUCK, OGDC, HBL). Use /v1/intraday for ticks and /v1/eod for history.",
"as_of": "2026-06-12T11:49:49.000Z",
"price": 449.11,
"change": 16.02,
"sector": "CEMENT",
"source": "PSX",
"symbol": "LUCK",
"instrument": "equity",
"change_percent": 3.7,
"previous_close": 433.09
},
"meta": {
"timestamp": "2026-06-15T02:11:07.512Z",
"request_id": "01863ce9-1862-4560-994d-382da72ab0af"
},
"status": "ok",
"message": "Quote retrieved successfully",
"success": true
}