Skip to main content
GET
/
market
/
financial-data
/
gold
cURL
curl -H "X-FH-APIKEY: $FINHAY_API_KEY" \
  "https://open-api.fhsc.com.vn/market/financial-data/gold"
{
  "error_code": "0",
  "message": "success",
  "data": [
    {
      "index": "SJC_GOLD",
      "name": "Vàng SJC",
      "short_name": "SJC",
      "buy_value": 92500000,
      "sell_value": 94500000,
      "usd_value": 2350,
      "vnd_value": 94500000,
      "date": "2024-04-18",
      "provider": "SJC",
      "provider_icon": null,
      "updated_at": "2024-04-18T10:00:00Z",
      "change_percent": 0.42,
      "buy_value_change_percent": 0.35,
      "sell_value_change_percent": 0.48
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developers.fhsc.com.vn/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-FH-APIKEY
string
header
required

API key dài hạn của client. Cấu hình 1 lần lúc khởi tạo; có thể wire thẳng vào static setter của SDK tự-gen. Đi kèm với FINHAY_API_SECRET — secret này chỉ dùng ở phía client để tính X-FH-SIGNATURE, không bao giờ gửi qua mạng.

Response

Trả về data mảng các record giá vàng — mỗi record là 1 loại / nguồn vàng kèm giá mua / bán và % thay đổi.

Các field chung của envelope trong mọi response của Finhay API.

  • error_code"0" (string) khi thành công, mã khác "0" khi lỗi.
  • message là thông điệp ngắn từ server.
data
object[]
required
error_code
string

"0" khi thành công, khác "0" khi lỗi.

Example:

"0"

message
string

Thông điệp trạng thái dễ đọc.

Example:

"success"