Acquisition of stock historical data
Others
2022-05-16 23:47:42
views: 0
Get it from Yahoo
historical data
- HTML Output: http://finance.yahoo.com/q/hp?s=300072.sz&d=7&e=23&f=2010&a=5&b=11&c=2010
- CSV Output: http://ichart.finance.yahoo.com/table.csv?s=300072.sz&d=7&e=23&f=2010&a=5&b=11&c=2010
- For historical reasons, you can also use the address http://table.finance.yahoo.com/table.csv
- s: stock code (eg 002036.SZ 300072.SZ 600036.SS etc.)
- cab: start date year, month, day (month start index is 0) 2010-5-11 = June 11, 2010
- fde: end date year, month, day (start index of month is 0) 2010-7-23 = August 23, 2010
- g: time period. d=daily, w=weekly, m=monthly, v=ex-weighted data only
- All parameters are omitted, and all historical data are returned when only the stock code is specified
"Real-time data
- http://download.finance.yahoo.com/d/quotes.csv?s=300072.SZ+600036.SS&f=spl1d1t1c1ohg (f: specify the format of the returned data)
- s: stock code
- l: Last transaction price and time. l1: last transaction price; d1: last transaction date; t1: last transaction time
- p: yesterday's closing price; o: opening price; h: highest price; g: lowest price; c1: increase
- v: volume; a2: average daily volume
- j: 52-week lowest price; j5: 52-week price change j6: 52-week increase (relative to the lowest price)
- k: 52-week high price; k4: 52-week price change k5: 52-week increase (relative to the highest price)
- m3: MA50;m4: MA20;m5:
Common stock symbols
- Shanghai Composite Index:
^SSEC
- SME Board Composite Index:
399101.SZ
Obtained from Sina (sina.com.cn)
Origin http://10.200.1.11:23101/article/api/json?id=326605042&siteId=291194637