Skip to main content
GET
/
market
/
financial-data
/
cryptos
/
top-trending
cURL
curl -H "X-FH-APIKEY: $FINHAY_API_KEY" \
  "https://open-api.fhsc.com.vn/market/financial-data/cryptos/top-trending"
{
  "error_code": "0",
  "message": "success",
  "data": [
    {
      "name": "Bitcoin",
      "symbol": "BTC",
      "icon_url": "https://cdn.finhay.com/crypto/btc.png",
      "price": 67500.25,
      "formatted_price": "67.500,25",
      "percent_change_1h": 0.5,
      "percent_change_24h": -1.2,
      "percent_change_7d": 3.8,
      "percent_change_30d": 12.5,
      "market_cap": 1325000000000,
      "last_30d_chart": "https://cdn.finhay.com/spark/btc_30d.svg"
    },
    {
      "name": "Ethereum",
      "symbol": "ETH",
      "icon_url": "https://cdn.finhay.com/crypto/eth.png",
      "price": 3450,
      "formatted_price": "3.450,00",
      "percent_change_1h": 0.2,
      "percent_change_24h": -0.8,
      "percent_change_7d": 2.4,
      "percent_change_30d": 8.9,
      "market_cap": 414000000000,
      "last_30d_chart": "https://cdn.finhay.com/spark/eth_30d.svg"
    }
  ]
}

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 top crypto trending kèm price, market cap, % change ở 4 khung thời gian.

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"