谷歌财经股票日区间

发布于 2024-11-09 16:21:53 字数 261 浏览 0 评论 0原文

如何获取任何股票代码的日范围? 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 技术交流群。

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

发布评论

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

评论(2

心的位置 2024-11-16 16:21:53

Perl 模块 Finance-YahooQuote 已经支持这一点近十年了:

edd@max:~$ yahooquote --verbose GOOG
Symbol: GOOG
Name: Google Inc.
Last: 518.26
Trade Date: 5/24/2011
Trade Time: 4:00pm
Change: -0.13
% Change: -0.03%
Volume: 1888538
Avg. Daily Volume: 2789260
Bid: 510.14
Ask: 519.50
Prev. Close: 518.39
Open: 520.00
Day's Range: 518.15 - 523.962          ## here is your range for the day
52-Week Range: 433.63 - 642.96
EPS: 25.75
P/E Ratio: 20.13
Div. Pay Date: N/A
Div/Share: 0.00
Div. Yield: N/A
Mkt. Cap: 167.0B
Exchange: NasdaqNM

edd@max:~$ 

这只是使用您可以自定义的固定命令行前端。您可以指定要下载的字段,因此如果您确实只想要当天的最高价和最低价,则可以通过您可以指定的参数来实现。获取文档有点棘手,但 Perl 模块的文档中包含了一些文档。

Beancounter 应用程序在此基础上构建并下载(批量)、存档到数据库(支持针对四种不同的后端(如 Postgresql、Mysql、SQLite 和 ODBC)并运行一些分析。

这两个软件包都包含在 Debian / Ubuntu 中,但当然也可以在其他地方运行,包括 Windows,因为它们只需要 Perl。

The Perl module Finance-YahooQuote has supported this for close to a decade:

edd@max:~$ yahooquote --verbose GOOG
Symbol: GOOG
Name: Google Inc.
Last: 518.26
Trade Date: 5/24/2011
Trade Time: 4:00pm
Change: -0.13
% Change: -0.03%
Volume: 1888538
Avg. Daily Volume: 2789260
Bid: 510.14
Ask: 519.50
Prev. Close: 518.39
Open: 520.00
Day's Range: 518.15 - 523.962          ## here is your range for the day
52-Week Range: 433.63 - 642.96
EPS: 25.75
P/E Ratio: 20.13
Div. Pay Date: N/A
Div/Share: 0.00
Div. Yield: N/A
Mkt. Cap: 167.0B
Exchange: NasdaqNM

edd@max:~$ 

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.

乱世争霸 2024-11-16 16:21:53
http://www.gummy-stuff.org/Yahoo-data.htm

满足我的需要,甚至更多!

http://www.gummy-stuff.org/Yahoo-data.htm

Does what I needed and a lot more!

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