Snapshot Actives
Stock trading value ranking (by market type).
snapshot/actives/{market}
Parameters
Name | Type | Description |
---|---|---|
market * | string | Market Type,offer TSE ;OTC ;ESB ;TIB ;PSB |
trade * | string | Trading Volume/Value,offer volume ;value |
type | string | Asset type options,offer ALLBUT099 for common stocks, preferred stocks, and ETFs; COMMONSTOCK for common stocks only |
Response
Name | Type | Description |
---|---|---|
date * | string | Date |
time * | string | Time |
market * | string | Market Type |
trade * | string | Trading Volume/Value |
data * | object[] | list |
>> type | string | Ticker Type |
>> symbol | string | Stock Number |
>> name | string | Stock Abbreviation in Chinese |
>> openPrice | number | Opening Price |
>> highPrice | number | Highest Price |
>> lowPrice | number | Lowest Price |
>> closePrice | number | Close Price |
>> change | number | Price Change |
>> changePercent | number | Price Change Percentage |
>> tradeVolume | number | Trading Volume |
>> tradeValue | number | Trading Value |
>> lastUpdated | number | Snapshot Time |
info
'*' Indicates mandatory disclosure fields.
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() # Establish market-data
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(); // Establish market-data
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(); // Establish market-data
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
},
......
]
}