Skip to main content

Historical Stats

Retrieve recent 52-week stock price data (query by stock number)

historical/stats/{symbol}

Parameters

NameTypeDescription
symbol*stringStock Number

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() # Establish market-data

reststock = sdk.marketdata.rest_client.stock
reststock.historical.stats(symbol = "0050")

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

NameTypeDescription
date*stringDate
type*stringTicker Type
exchange*stringExchange
market*stringMarket Type
symbol*stringStock Number
name*stringStock Abbreviation in Chinese
openPrice*numberOpening price on the last trading day
highPrice*numberHighest price on the last trading day
lowPrice*numberLowest price on the last trading day
closePrice*numberClose price on the last trading day
change*numberPrice change on the last trading day
changePercent*numberPrice change percentage on the last trading day
tradeVolume*numberVolume on the last trading day
tradeValue*numberValue on the last trading day
previousClose*numberPrevious trading day's closing price
week52High*number52-week High
week52Low*number52-week Low
info

'*' Indicates mandatory disclosure fields.