/v1/orderbook
Five-level order book
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/taiwanrealtime-api/v1/orderbook" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/taiwanrealtime-api/v1/orderbook", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/taiwanrealtime-api/v1/orderbook");
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/taiwanrealtime-api/v1/orderbook",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"asks": [
{
"size": 655,
"price": 2360
},
{
"size": 1327,
"price": 2365
},
{
"size": 656,
"price": 2370
},
{
"size": 475,
"price": 2375
},
{
"size": 606,
"price": 2380
}
],
"bids": [
{
"size": 57,
"price": 2355
},
{
"size": 233,
"price": 2350
},
{
"size": 344,
"price": 2345
},
{
"size": 401,
"price": 2340
},
{
"size": 561,
"price": 2335
}
],
"code": "2330",
"name": "台積電",
"note": "The five-level order book for one Taiwan stock — the top five bid and ask prices with sizes. Pass code (e.g. 2330) and market (tse or otc; default tse). The live level-2 depth, available during Taiwan trading hours.",
"price": null,
"market": "tse",
"source": "Taiwan Exchange (mis.twse)",
"trade_time": "10:10:40"
},
"meta": {
"timestamp": "2026-06-15T02:10:46.199Z",
"request_id": "29427746-4e6d-410c-b762-545d1c524e11"
},
"status": "ok",
"message": "Order book retrieved successfully",
"success": true
}