Historical Stats
Retrieve recent 52-week stock price data (query by stock number)
historical/stats/{symbol}
Parameters
Name | Type | Description |
---|---|---|
symbol * | string | Stock Number |
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.historical.stats(symbol = "0050")
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.historical.stats({ symbol: '0050' })
.then(data => console.log(data));
using FubonNeo.Sdk;
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 stats = await rest.History.Stats("0050");
var stats_cont = stats.Content.ReadAsStringAsync().Result;
Console.WriteLine(stats_cont);
Response Body:
{
"date": "2023-02-09",
"type": "EQUITY",
"exchange": "TWSE",
"market": "TSE",
"symbol": "0050",
"name": "元大台灣50",
"openPrice": 120.5,
"highPrice": 121,
"lowPrice": 120.3,
"closePrice": 120.9,
"change": 0.05,
"changePercent": 0.04,
"tradeVolume": 5032245,
"tradeValue": 607543546,
"previousClose": 120.85000000000001,
"week52High": 145.05,
"week52Low": 96.5
}
Response
Name | Type | Description |
---|---|---|
date * | string | Date |
type * | string | Ticker Type |
exchange * | string | Exchange |
market * | string | Market Type |
symbol * | string | Stock Number |
name * | string | Stock Abbreviation in Chinese |
openPrice * | number | Opening price on the last trading day |
highPrice * | number | Highest price on the last trading day |
lowPrice * | number | Lowest price on the last trading day |
closePrice * | number | Close price on the last trading day |
change * | number | Price change on the last trading day |
changePercent * | number | Price change percentage on the last trading day |
tradeVolume * | number | Volume on the last trading day |
tradeValue * | number | Value on the last trading day |
previousClose * | number | Previous trading day's closing price |
week52High * | number | 52-week High |
week52Low * | number | 52-week Low |
info
'*' Indicates mandatory disclosure fields.