/v1/orderbook
Top-three bid/ask 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/hose-api/v1/orderbook" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hose-api/v1/orderbook", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hose-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/hose-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": [
{
"price": 196.5,
"volume": 20
},
{
"price": 196.8,
"volume": 130
},
{
"price": 197,
"volume": 500
}
],
"bids": [
{
"price": 196,
"volume": 1390
},
{
"price": 195.9,
"volume": 90
},
{
"price": 195.8,
"volume": 120
}
],
"note": "The live order book for one Vietnamese stock — the top three bid and ask levels with price and volume. Pass ticker (e.g. VIC). Bids are the buy side (g1-g3), asks the sell side (g4-g6).",
"source": "HOSE / Vietnam (VPS)",
"ticker": "VIC",
"last_price": 196
},
"meta": {
"timestamp": "2026-06-15T02:10:49.038Z",
"request_id": "6678323b-3d9c-4a8f-b60e-3fc054bfa5d8"
},
"status": "ok",
"message": "Order book retrieved successfully",
"success": true
}