Skip to main content
GET
/
market
/
financial-data
/
gold-providers
cURL
curl -H "X-FH-APIKEY: $FINHAY_API_KEY" \
  "https://open-api.fhsc.com.vn/market/financial-data/gold-providers"
{
  "error_code": "0",
  "message": "success",
  "data": [
    {
      "index": "PNJ_GOLD",
      "name": "Vàng PNJ",
      "short_name": "PNJ",
      "buy_value": 92600000,
      "sell_value": 94700000,
      "usd_value": 2352,
      "vnd_value": 94700000,
      "date": "2024-04-18",
      "provider": "PNJ",
      "provider_icon": "https://cdn.finhay.com/providers/pnj.png",
      "updated_at": "2024-04-18T10:00:00Z",
      "change_percent": 0.4,
      "buy_value_change_percent": 0.33,
      "sell_value_change_percent": 0.46
    }
  ]
}

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 giá vàng theo từng nhà cung cấp kèm logo URL.

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"