Aller au contenu
GET /v1/orderbook

Top-three bid/ask order book

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/hose-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}