TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: A question about historical stock data.

3 pointsby ncarlsonover 15 years ago
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 comments

lscover 15 years ago
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.
jacquesmover 15 years ago
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>
lowkeyover 15 years ago
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_hackernewsover 15 years ago
You are going to want to buy the historical data wholesale. Then augment it with eoddata or some such.