Skip to main content
GET
/
market
/
price-histories-chart
cURL
curl -H "X-FH-APIKEY: $FINHAY_API_KEY" \
  "https://open-api.fhsc.com.vn/market/price-histories-chart?symbol=VNM&resolution=1D&from=1704067200&to=1711929600"
{
  "error_code": "0",
  "message": "success",
  "data": {
    "symbol": "VNM",
    "resolution": "1D",
    "time": [
      1704067200,
      1704153600
    ],
    "open": [
      72000,
      72500
    ],
    "close": [
      72500,
      73000
    ],
    "high": [
      73000,
      73500
    ],
    "low": [
      71500,
      72000
    ],
    "volume": [
      1500000,
      1800000
    ]
  }
}

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.

Query Parameters

symbol
string
required

Mã stock.

Example:

"VNM"

resolution
enum<string>
required

Độ phân giải biểu đồ. Mặc định 1D. Độ phân giải của biểu đồ /market/price-histories-chart.

Giá trịÝ nghĩa
1DTheo ngày
55 phút
1515 phút
3030 phút
1HTheo giờ
4H4 giờ
Available options:
1D,
5,
15,
30,
1H,
4H
from
integer
required

Thời điểm bắt đầu, Unix timestamp tính bằng giây (không phải mili-giây).

Required range: x >= 0
Example:

1704067200

to
integer
required

Thời điểm kết thúc, Unix timestamp tính bằng giây (không phải mili-giây).

Required range: x >= 0
Example:

1711929600

Response

Trả về data shape columnar — time[i], open[i], close[i], high[i], low[i], volume[i] cùng index i biểu diễn 1 cây nến.

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

Biểu đồ lịch sử giá dạng columnar. Các array đều cùng độ dài — cùng index i giữa time, open, close, high, low, volume biểu diễn 1 cây nến.

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"