Skip to main content

Snapshot Movers

info

屬於 開發者進階用戶 方案的專屬功能!

取得股票漲跌幅排行(依市場別),系統更新頻率為每五秒更新一次。

GET /snapshot/movers/{market}

Parameters

NameTypeDescription
market*string市場別
direction*string上漲/下跌,可選 up 上漲;down 下跌
change*string漲跌/漲跌幅,可選 percent 漲跌幅;value 漲跌
typestring標的類型,可選 ALLBUT0999 包含一般股票、特別股及 ETF ; COMMONSTOCK 為一般股票
gtnumber篩選大於漲跌/漲跌幅的股票
gtenumber篩選大於或等於漲跌/漲跌幅的股票
ltnumber篩選小於漲跌/漲跌幅的股票
ltenumber篩選小於或等於漲跌/漲跌幅的股票
eqnumber篩選等於漲跌/漲跌幅的股票

Response

NameTypeDescription
date*string日期
time*string時間
market*string市場別
change*string漲跌/漲跌幅
data*object[]快照資料
data[0].typestringTicker 類型
data[0].symbolstring股票代碼
data[0].namestring股票簡稱
data[0].openPricenumber開盤價
data[0].highPricenumber最高價
data[0].lowPricenumber最低價
data[0].closePricenumber收盤價
data[0].changenumber漲跌
data[0].changePercentnumber漲跌幅
data[0].tradeVolumenumber成交量
data[0].tradeValuenumber成交金額
data[0].lastUpdatednumber快照時間

Example

curl -X 'GET' \
'https://api.fugle.tw/marketdata/v1.0/stock/snapshot/movers/TSE?direction=up&change=percent' \
-H 'X-API-KEY: <YOUR_API_KEY>'

Response Body:

{
"date": "2023-05-29",
"time": "133500",
"market": "TSE",
"change": "percent",
"data": [
{
"type": "EQUITY",
"symbol": "2901",
"name": "欣欣",
"openPrice": 27.1,
"highPrice": 29.7,
"lowPrice": 27.1,
"closePrice": 29.7,
"change": 2.7,
"changePercent": 10,
"tradeVolume": 640,
"tradeValue": 18824300,
"lastUpdated": 1685338200000000
},
{
"type": "EQUITY",
"symbol": "2345",
"name": "智邦",
"openPrice": 357.5,
"highPrice": 357.5,
"lowPrice": 346.5,
"closePrice": 357.5,
"change": 32.5,
"changePercent": 10,
"tradeVolume": 9350,
"tradeValue": 3331334500,
"lastUpdated": 1685338200000000
},
{
"type": "EQUITY",
"symbol": "3025",
"name": "星通",
"openPrice": 42.3,
"highPrice": 44.65,
"lowPrice": 41.8,
"closePrice": 44.65,
"change": 4.05,
"changePercent": 9.98,
"tradeVolume": 25625,
"tradeValue": 1114127050,
"lastUpdated": 1685338200000000
},
......
]
}