/v1/quote
Latest quote for a symbol
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}