是否可以使用 yfinance 库使用 JS 创建自动完成功能?
我正在创建一个 Flask Web 应用程序以供娱乐和学习,我想看看是否可以创建一个 search.html,它在输入字符串时会自动完成股票代码并将其显示为下拉列表。
我认为最直接的方法是为特定交易所(例如纽约证券交易所)的所有股票提供一个变量。
是否可以使用 yfinance 提取特定交易所的股票代码?
I am creating a Flask web application for fun and learning, and I would like to see if I can create a search.html that on input of string will auto complete the ticker symbol and show it as a dropdown list.
I think that the most straightforward way of doing so is to have a variable with all tickers for a specific exchange e.g. NYSE.
Is it possible to extract the tickers for a specific exchange using yfinance?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 yfinance 不可能从证券交易所提取所有符号。有一些关于它的线程和一些库,请检查此链接:
https://quant.stackexchange.com/questions/26162/where-can-i-get-a-list-of-all-yahoo-finance-stocks-symbols?newreg=4f53f54f75aa4816ac33b78a3be02f7b
It is not possible to extract all the symbols from a stock exchange using yfinance. There are some threads about it, and a few libraries, check this link:
https://quant.stackexchange.com/questions/26162/where-can-i-get-a-list-of-all-yahoo-finance-stocks-symbols?newreg=4f53f54f75aa4816ac33b78a3be02f7b