1

我对财务数据和现有的所有 API 还是很陌生。我想获取在给定时间段内(例如:至少 1 年)列出的所有代码的列表。

我可以使用 Yahoo Finance API 来获取给定的 Ticker,例如

import yfinance as yf
tickerData = yf.Ticker('MSFT')
tickerDf = tickerData.history(period='1d', start='1900-1-1', end='1900-1-25')
 - MSFT: Data doesn't exist for startDate = -2208989361, endDate = -2206915761

有没有办法运行脚本来过滤来自纳斯达克/纽约证券交易所的所有股票代码,并在不提取大量数据(历史记录)的情况下获得我需要的东西?

4

0 回答 0