是否可以使用 yfinance 库使用 JS 创建自动完成功能?

发布于 2025-01-10 05:38:14 字数 174 浏览 2 评论 0原文

我正在创建一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

屋檐 2025-01-17 05:38:14

使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文