TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: A question about historical stock data.

3 点作者 ncarlson超过 15 年前
Hi,<p>I have an interesting idea for a web app geared towards investors. However, the web app would require an immense amount of historical financial data. Does anyone know the common way to go about requesting historical stock data?<p>The web app would also require historical financial data (read: operating metrics) for nearly every public company on the planet. Is there a company that aggregates this data, or would I need to find and parse it myself?<p>Thanks for the help!

4 条评论

lsc超过 15 年前
uh, there's some perl CPAN modules that do that. a long time ago I wrote a little thingr to simulate 'if my program had been buying/selling stocks in this manner from date x to date y, at commission z, how much would I make/lose?' - I used the CPAN modules which pulled from yahoo, I think. it was pretty simple stuff.<p>ah yes, here:<p>Finance::QuoteHist<p><a href="http://search.cpan.org/~msisk/Finance-QuoteHist-1.12/lib/Finance/QuoteHist.pm" rel="nofollow">http://search.cpan.org/~msisk/Finance-QuoteHist-1.12/lib/Fin...</a><p>check it out. if you don't like perl, I'm sure you can pull it apart and figure out where it gets the data.
jacquesm超过 15 年前
You can buy datasets, or you can go for free stuff, for instance:<p><a href="http://biz.swcp.com/stocks/" rel="nofollow">http://biz.swcp.com/stocks/</a>
lowkey超过 15 年前
For Python there is also the excellent <a href="http://www.goldb.org/ystockquote.html" rel="nofollow">http://www.goldb.org/ystockquote.html</a>
djb_hackernews超过 15 年前
You are going to want to buy the historical data wholesale. Then augment it with eoddata or some such.