Skip to main content

Endpoint

GET /oapi/priceboard/all-stocks Returns basic info for all symbols in the market. This includes underlying, derivative, CW, and index instruments.

Required query parameters

None.

Field descriptions

  • s (string) — Symbol code. Example: ACB.
  • ti (number) — Latest update time.
  • t (string) — Symbol type. Example: STOCK, FUTURE, CW, INDEX.
  • n1 (string) — Symbol name.
  • n2 (string) — English name.
  • marketId (string) — Market code. Example: STO, STX, UPX, DVX.
  • m (string) — Exchange. Example: HOSE, HNX, UPCOM.

cURL

curl "$BASE_URL/oapi/priceboard/all-stocks"

Python

import requests

BASE_URL = "https://api.example.com"

response = requests.get(
    f"{BASE_URL}/oapi/priceboard/all-stocks",
)
response.raise_for_status()

print(response.json())

Example response

[
    {
        "s": "ACB",
        "ti": 1774332196854,
        "t": "STOCK",
        "n1": "Ngân hàng Thương mại Cổ phần Á Châu",
        "n2": "Asia Commercial Joint Stock Bank",
        "marketId": "STO",
        "m": "HOSE"
    }
]
Replace BASE_URL with your API host.