====== 数据源 ======
[[http://www.fintechgl.com/articles/85|数据API大全]]
[[https://www.nasdaqtrader.com/trader.aspx?id=symboldirdefs|NASD Symbols Definition]] 证券号列表,重要的是下面两项
* nasdaqlisted.txt
* otherlisted.txt
[[https://www.oracle.com/de/cloud/price-list/|Oracle OCI Pricing]]
====== 技术指标库 ======
适合在Node项目中使用的的技术指标库函数。
===== Talib =====
使用 Python 的 [[https://www.shinnytech.com/blog/ta-lib_installation_instruction/|TaLib 数据处理库]] 可以轻松计算各种指标。但需要在Node中调用Python程序 ((a>[[https://blog.simperator.com/mydocs/#/%E7%A7%91%E6%8A%80/coding/python/use_python_in_Nodejs|Use Python in Node.js]])) ((b>[[https://www.pythonf.cn/read/85801|在Python中安装Talib包,python,talib]]))
或者使用一个原生的 [[https://github.com/oransel/node-talib|Node-Talib]] 项目。[[https://github.com/oransel/node-talib|Github Talib]]
===== Technicalindicator =====
项目地址:[[https://www.npmjs.com/package/technicalindicators|Technicalindicators]]
====== API 接口 ======
* [[https://rapidapi.com/apidojo/api/yahoo-finance1/| Yahoo Financial API]] (100 API per minte $9.95/month (10,000 / month) 免费的 60API/minute, 500/month)
* [[https://www.yahoofinanceapi.com/|Yahoo 官网API]]
* [[https://rapidapi.com/alphavantage/api/alpha-vantage/|Alpha-Vantage]] (75 API per minte $49.99/month (No daily limits)) ([[https://www.alphavantage.co/documentation/|官方文档]])
* [[https://eodhistoricaldata.com/pricing|EOD History Data]] (19$ Month : 所有数据,没有日内数据。29$ Month : 股票、外汇每日以及实时数据。每天10万次访问)
* [[https://tushare.pro/|Tushare]]
* [[https://marketstack.com/|Marketstack]]
* [[https://finnhub.io/dashboard|Finnhub]] 提取财报日期(免费账户限定一个月)
* [[https://www.alphavantage.co/documentation/|alphavantage 日历]] 每次下载三个月的数据,然后上传到服务器,
EOD 所支持的[[https://eodhistoricaldata.com/financial-apis/list-supported-exchanges/|交易市場]] (A股為 SHE / SHG) [[https://eodhistoricaldata.com/financial-apis/bulk-api-eod-splits-dividends/|分紅和分股數據]]
[[https://eodhd.com/financial-apis/exchanges-api-list-of-tickers-and-trading-hours/|市场以及股票类型]] paypal 支付 ''%%Unicorn Data Services%%''
++++ Alpha Vantage 2 |
'X-RapidAPI-Key': '5a68d21c84mshe237bb004adfff5p185df1jsn3bf342b66569'
'X-RapidAPI-Host': 'alpha-vantage.p.rapidapi.com'
++++
[[https://data.gov.tw/dataset/11548|台股每日收盘价(政府开放平台)]]
[[https://stock360.hkej.com/stockList|港股每日收盤]](下載html,設法將其分解成有用數據)
[[https://finance.sina.com.cn/stock/usstock/sector.shtml|新浪美股]]
[[https://polygon.io/docs/rest/stocks/tickers/all-tickers|polygon]] ++Key|EeMcjqwrfODl8QoceuzpwyLOTpgM0fYo++ [[https://polygon.io/docs/rest/stocks/aggregates/daily-market-summary|全市场数据接口]]
[[https://rapidapi.com/apidojo/api/yahoo-finance1/playground/apiendpoint_cacfb77a-b9ac-42c7-be06-2a586f1719e2|Yahoo Calendar 接口]] 包括earning 和 split
===== 实例 =====
具体获得数据的 WEB 地址,可通过浏览器或者postman获取
**历史数据**
* [[http://api.marketstack.com/v1/eod?access_key=1edfe11dd9286dfa3bbbdcc7b69f380e&symbols=GE|MarketStack]]
* [[https://cloud.iexapis.com/stable/stock/twtr/chart/1m/20210712?token=pk_eee58d79f75141cc8f63e64c29016f99|IEX]]
* [[https://eodhistoricaldata.com/api/eod/GE.US?api_token=60c10081b5cec6.46442834&fmt=json&from=2021-01-01&to=2021-12-31|EOD]]
**TuShare**
* ++全市场证券名称 |
http://api.waditu.com
{
"api_name":"stock_basic",
"token":"c7a25f410c54951d50d57f0621847789a550ad7d36c3720f8d805a32",
"params": {
"fields": "ts_code,symbol,name,area,industry,list_date"
},
"offset": 0
}
++
**EOD**
* [[https://eodhistoricaldata.com/api/splits/002990.SHE?api_token=60c10081b5cec6.46442834&from=2010-01-01&fmt=json|单个股票的拆股日期]]
* [[https://eodhistoricaldata.com/api/eod-bulk-last-day/SHG?api_token=60c10081b5cec6.46442834&date=2021-11-15&fmt=json&type=splits|全市场指定日拆股数据]]
- [[https://eodhistoricaldata.com/financial-apis/|API 列表]] ([[https://eodhistoricaldata.com/financial-apis/list-supported-exchanges/|支持的市场]])
Finnhub 日历数据
获取代码:
https://finnhub.io/api/v1/calendar/earnings?symbol=NVDA&token=ctdtmf1r01qng9gfel2gctdtmf1r01qng9gfel30&from=2025-02-01&to=2025-02-28
{"earningsCalendar":[
{"date":"2025-02-19",
"epsActual":null,
"epsEstimate":0.8612,
"hour":"amc",
"quarter":4,
"revenueActual":null,
"revenueEstimate":38822662731,
"symbol":"NVDA",
"year":2025}
]}
AlphaVantage 下载数据
https://www.alphavantage.co/query?function=EARNINGS_CALENDAR&horizon=3month&apikey=Y0JKW0Y848UJCY6X
===== 阿里数据 =====
|CNST|CNETF|USST|HKST|GBFSB|GBCFD|GBFT|CNFT|GBDC|GBIDX|CNCOP|
|沪深|50ETF|美股|港股|外汇|CFD|国际期货(指数/商品/外汇)|国内期货|数字货币|全球股指|商品期权|