Skip to main content

Technical Bbands BETA

取得特定股票在指定時間範圍內的布林通通 (Bollinger Bands)

GET /technical/bb/{symbol}

Parameters

NameTypeDescription
symbol*string股票代碼
from*string開始日期(格式:yyyy-MM-dd
to*string結束日期(格式:yyyy-MM-dd
timeframe*stringK線週期,可選 1 1分K;3 3分K;5 5分K;10 10分K;15 15分K;30 30分K;60 60分K;D 日K;W 週K;M 月K
period*number布林通道週期
caution

目前分K無法指定開始日期(from) 與 結束日期(to),一律回傳近 30 日資料。

Response

NameTypeDescription
symbol*string股票代號
from*string開始日期
to*string結束日期
timeframe*stringK線週期
fast*number快線週期
slow*number慢線週期
signal*number信號線週期
data*object[]布林通道資料
data[0].date*string資料時間
data[0].upper*number上軌線
data[0].middle*number中軌線
data[0].lower*number下軌線

Example

curl -X 'GET' \
'https://api.fugle.tw/marketdata/v1.0/stock/technical/bb/2330?from=2024-08-01&to=2024-08-10&timeframe=D&period=20' \
-H 'X-API-KEY: <YOUR_API_KEY>'

Response Body:

{
"symbol": "2330",
"from": "2024-08-01",
"to": "2024-08-10",
"timeframe": "D",
"period": 20,
"data": [
{
"date": "2024-08-01",
"upper": 1089.4184184924368,
"middle": 997.45,
"lower": 905.4815815075632
},
{
"date": "2024-08-02",
"upper": 1094.230862990929,
"middle": 993.65,
"lower": 893.0691370090711
},
{
"date": "2024-08-05",
"upper": 1111.086637737101,
"middle": 984.15,
"lower": 857.2133622628991
},
{
"date": "2024-08-06",
"upper": 1112.2099400640175,
"middle": 977.9,
"lower": 843.5900599359824
},
{
"date": "2024-08-07",
"upper": 1106.0354361011682,
"middle": 972.15,
"lower": 838.2645638988317
},
{
"date": "2024-08-08",
"upper": 1098.9536939789348,
"middle": 964.95,
"lower": 830.9463060210653
},
{
"date": "2024-08-09",
"upper": 1088.7976815866498,
"middle": 959.4,
"lower": 830.0023184133502
}
]
}