Skip to main content

Historical Stats

取得近 52 週股價數據(依代碼查詢)

GET /historical/stats/{symbol}

Parameters

NameTypeDescription
symbol*string股票代碼

Response

NameTypeDescription
date*string日期
type*stringTicker 類型
exchange*string交易所
market*string市場別
symbol*string股票代碼
name*string股票簡稱
openPrice*number最後交易日開盤價
highPrice*number最後交易日最高價
lowPrice*number最後交易日最低價
closePrice*number最後交易日收盤價
change*number最後交易日漲跌
changePercent*number最後交易日漲跌幅
tradeVolume*number最後交易日成交量
tradeValue*number最後交易日成交金額
previousClose*number前一交易日收盤價
week52High*number近 52 週高點
week52Low*number近 52 週低點

Example

curl -X 'GET' \
'https://api.fugle.tw/marketdata/v1.0/stock/historical/stats/0050' \
-H 'X-API-KEY: <YOUR_API_KEY>'

Response Body:

{
"date": "2023-02-09",
"type": "EQUITY",
"exchange": "TWSE",
"market": "TSE",
"symbol": "0050",
"name": "元大台灣50",
"openPrice": 120.5,
"highPrice": 121,
"lowPrice": 120.3,
"closePrice": 120.9,
"change": 0.05,
"changePercent": 0.04,
"tradeVolume": 5032245,
"tradeValue": 607543546,
"previousClose": 120.85000000000001,
"week52High": 145.05,
"week52Low": 96.5
}