Skip to content
GET /v1/orderbook

Five-level order book

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/taiwanrealtime-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

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