Skip to main content

Snapshot Actives

股票成交量值排行(依市場別)

snapshot/actives/{market}

Parameters​

NameTypeDescription
market*string市場別,可選 TSE 上市;OTC 上櫃;ESB 興櫃一般板;TIB 臺灣創新板
trade*string成交量/成交值,可選 volume 成交量;value 成交值
typestring標的類型,可選 ALLBUT0999 包含一般股票、特別股及 ETF ; COMMONSTOCK 為一般股票

Response​

NameTypeDescription
date*string日期
time*string時間
market*string市場別
trade*string成交量/成交值
data*object[]快照資料
>> typestringTicker 類型
>> symbolstring股票代碼
>> namestring股票簡稱
>> openPricenumber開盤價
>> highPricenumber最高價
>> lowPricenumber最低價
>> closePricenumber收盤價
>> changenumber漲跌
>> changePercentnumber漲跌幅
>> tradeVolumenumber成交量
>> tradeValuenumber成交金額
>> lastPricenumber最後一筆成交價;當日尚無成交時不回傳
>> lastUpdatednumber.快照時間
info

'*' 表示必揭示欄位。

Example​

from fubon_neo.sdk import FubonSDK, Order

sdk = FubonSDK()

accounts = sdk.login("Your ID", "Your password", "Your cert path", "Your cert password") # 需登入後,才能取得行情權限

sdk.init_realtime() # 建立行情連線

reststock = sdk.marketdata.rest_client.stock
# reststock.snapshot.actives(market='TSE', trade='value') # 2.2.3 及以前版本

## 2.2.4 及以後版本 (使用 Exception 進行例外處理)
from fubon_neo.fugle_marketdata.rest.base_rest import FugleAPIError

try:
reststock.snapshot.actives(market='TSE', trade='value')
except FugleAPIError as e:
print(f"Error: {e}")
print("------------")
print(f"Status Code: {e.status_code}") # 例: 429
print(f"Response Text: {e.response_text}") # 例: {"statusCode":429,"message":"Rate limit exceeded"}

Response Body:

{
"date": "2026-10-08",
"time": "140000",
"market": "TSE",
"trade": "value",
"data": [
{
"type": "EQUITY",
"symbol": "2330",
"name": "台積電",
"openPrice": 2550,
"highPrice": 2575,
"lowPrice": 2550,
"closePrice": 2550,
"change": -35,
"changePercent": -1.35,
"tradeVolume": 20154,
"tradeValue": 51508925000,
"lastPrice": 2550,
"lastUpdated": 1791437400000000
},
{
"type": "EQUITY",
"symbol": "2408",
"name": "南亞科",
"openPrice": 522,
"highPrice": 537,
"lowPrice": 522,
"closePrice": 532,
"change": 18,
"changePercent": 3.5,
"tradeVolume": 62584,
"tradeValue": 33256374000,
"lastPrice": 532,
"lastUpdated": 1791437400000000
},
{
"type": "EQUITY",
"symbol": "2454",
"name": "聯發科",
"openPrice": 4800,
"highPrice": 4850,
"lowPrice": 4690,
"closePrice": 4690,
"change": -145,
"changePercent": -3,
"tradeVolume": 6377,
"tradeValue": 30281030000,
"lastPrice": 4690,
"lastUpdated": 1791437400000000
},
......
]
}