Snapshot Actives
股票成交量值排行(依市場別)
snapshot/actives/{market}
Parameters
Name | Type | Description |
---|---|---|
market * | string | 市場別,可選 TSE 上市;OTC 上櫃;ESB 興櫃一般板;TIB 臺灣創新板;PSB 興櫃戰略新板 |
trade * | string | 成交量/成交值,可選 volume 成交量;value 成交值 |
type | string | 標的類型,可選 ALLBUT099 包含一般股票、特別股及ETF ; COMMONSTOCK 為一般股票 |
Response
Name | Type | Description |
---|---|---|
date * | string | 日期 |
time * | string | 時間 |
market * | string | 市場別 |
trade * | string | 成交量/成交值 |
data * | object[] | 快照資料 |
>> type | string | Ticker 類型 |
>> symbol | string | 股票代碼 |
>> name | string | 股票簡稱 |
>> openPrice | number | 開盤價 |
>> highPrice | number | 最高價 |
>> lowPrice | number | 最低價 |
>> closePrice | number | 收盤價 |
>> change | number | 漲跌 |
>> changePercent | number | 漲跌幅 |
>> tradeVolume | number | 成交量 |
>> tradeValue | number | 成交金額 |
>> lastUpdated | number. | 快照時間 |
info
'*' 表示必揭示欄位。
Example
- Python
- Node.js
- C#
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')
const { FubonSDK } = require('fubon-neo');
const sdk = new FubonSDK();
const accounts = sdk.login("Your ID", "Your Password", "Your Cert Path", "Your Cert Password");
sdk.initRealtime(); // 建立行情連線
const client = sdk.marketdata.restClient
client.stock.snapshot.actives({ market: 'TSE', trade: 'value' })
.then(data => console.log(data));
using FubonNeo.Sdk;
using FugleMarketData.QueryModels;
var sdk = new FubonSDK();
var result = sdk.Login("Your ID", "Your Password", "Your Cert Path", "Your Cert Password");
sdk.InitRealtime(); // 建立行情連線
var rest = sdk.MarketData.RestClient.Stock;
var quote = await rest.Snapshot.Quotes(FugleMarketData.QueryModels.MarketType.TSE)
var quote_cont = quote.Content.ReadAsStringAsync().Result;
Console.WriteLine(quote_cont);
Response Body:
{
"date": "2023-05-29",
"time": "140000",
"market": "TSE",
"trade": "value",
"data": [
{
"type": "EQUITY",
"symbol": "2330",
"name": "台積電",
"openPrice": 574,
"highPrice": 574,
"lowPrice": 564,
"closePrice": 568,
"change": 2,
"changePercent": 0.35,
"tradeVolume": 54538,
"tradeValue": 31019803000,
"lastUpdated": 1685338200000000
},
{
"type": "EQUITY",
"symbol": "3231",
"name": "緯創",
"openPrice": 66,
"highPrice": 69.2,
"lowPrice": 65.9,
"closePrice": 68,
"change": 3,
"changePercent": 4.62,
"tradeVolume": 202089,
"tradeValue": 13763365000,
"lastUpdated": 1685338200000000
},
{
"type": "EQUITY",
"symbol": "3661",
"name": "世芯-KY",
"openPrice": 1555,
"highPrice": 1660,
"lowPrice": 1550,
"closePrice": 1660,
"change": 150,
"changePercent": 9.93,
"tradeVolume": 6937,
"tradeValue": 11264055000,
"lastUpdated": 1685338200000000
},
......
]
}