Snapshot Quotes
Stock market snapshot (by market type).
snapshot/quotes/{market}
Parameters
Name | Type | Description |
---|---|---|
market * | string | Market Type,Offer TSE ; OTC ;ESB ;TIB ;PSB |
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 |
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 | Last Snapshot time |
>> lastPrice | number | Last Price(include trial) |
>> isTrial | boolean | Trial:true |
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.quotes(market='TSE')
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.quotes({ market: 'TSE' })
.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 quotes = await rest.Snapshot.Quotes(FugleMarketData.QueryModels.MarketType.TSE);
var quotes_cont = quotes.Content.ReadAsStringAsync().Result;
Console.WriteLine(quotes_cont);
Response Body:
{
"date": "2023-05-29",
"time": "133500",
"market": "TSE",
"data": [
{
"type": "EQUITY",
"symbol": "0050",
"name": "元大台灣50",
"openPrice": 127.45,
"highPrice": 127.55,
"lowPrice": 126.5,
"closePrice": 126.75,
"change": 0.8,
"changePercent": 0.64,
"tradeVolume": 14444,
"tradeValue": 1832941850,
"lastUpdated": 1685338200000000
},
{
"type": "EQUITY",
"symbol": "0051",
"name": "元大中型100",
"openPrice": 61,
"highPrice": 62.2,
"lowPrice": 61,
"closePrice": 62,
"change": 1.3,
"changePercent": 2.14,
"tradeVolume": 191,
"tradeValue": 11816050,
"lastUpdated": 1685338200000000
},
{
"type": "EQUITY",
"symbol": "0052",
"name": "富邦科技",
"openPrice": 111.8,
"highPrice": 112.1,
"lowPrice": 111.1,
"closePrice": 111.7,
"change": 1.2,
"changePercent": 1.09,
"tradeVolume": 565,
"tradeValue": 63088400,
"lastUpdated": 1685338200000000
},
......
]
}