谷歌财经股票日区间
如何获取任何股票代码的日范围? http://finance.google.com/finance/info?client =ig&q=NASDAQ:MSFT 给了我一堆信息,但只想要当天的最高价和最低价。我研究了谷歌金融 API,我认为它没有给我这些信息。注意:我不必使用谷歌财经,它可以是任何东西。谢谢。
How can I get the day range of any stock symbol? http://finance.google.com/finance/info?client=ig&q=NASDAQ:MSFT gives me a bunch of info but only want the high and low of the day. I looked into the google finance API and I don't think it gives me that info. Note: I don't have to use google finance, it could be anything. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Perl 模块 Finance-YahooQuote 已经支持这一点近十年了:
这只是使用您可以自定义的固定命令行前端。您可以指定要下载的字段,因此如果您确实只想要当天的最高价和最低价,则可以通过您可以指定的参数来实现。获取文档有点棘手,但 Perl 模块的文档中包含了一些文档。
Beancounter 应用程序在此基础上构建并下载(批量)、存档到数据库(支持针对四种不同的后端(如 Postgresql、Mysql、SQLite 和 ODBC)并运行一些分析。
这两个软件包都包含在 Debian / Ubuntu 中,但当然也可以在其他地方运行,包括 Windows,因为它们只需要 Perl。
The Perl module Finance-YahooQuote has supported this for close to a decade:
This just uses a canned comamnd-line frontend you could customize. And you can specify which fields you want downloaded, so if you really only want day high and low, that is possible via an argument you can specify. Getting documentation is a little tricky but some is included in the documentation for the Perl module.
The Beancounter application builds on this and downloads (in batches), archives to DB (with support for four different backends like Postgresql, Mysql, SQLite and ODBC) and runs some analysis.
Both packages are included in Debian / Ubuntu but run of course also everywhere else, including Windows as they just need Perl.
满足我的需要,甚至更多!
Does what I needed and a lot more!