/v1/valuation
P/E, P/B & dividend yield
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/twse-api/v1/valuation" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/twse-api/v1/valuation", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/twse-api/v1/valuation");
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/twse-api/v1/valuation",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Valuation metrics for one TWSE-listed stock — price/earnings ratio, price/book ratio and dividend yield. Pass code (e.g. 2330 for TSMC); omit it for every stock.",
"source": "TWSE",
"valuation": {
"code": "2330",
"date": "2026-06-12",
"name": "台積電",
"pb_ratio": 10.17,
"pe_ratio": 31.06,
"dividend_yield": 0.95
}
},
"meta": {
"timestamp": "2026-06-15T02:11:14.119Z",
"request_id": "386522b8-a094-4aa7-b493-b98459afd188"
},
"status": "ok",
"message": "Valuation retrieved successfully",
"success": true
}