Show HN: Scatterstocks – visualize the impact of news on stock prices
scatterstocks.com
scatterstocks.com
Creator here. Wanted to share my Scatterstocks project that I have worked on. It was inspired from a graph I had read in a Bloomberg article. It showed the differences in stock prices from various industries as soon as Amazon announced it was entering the market. (eg. Whole Foods, Health Care, Automotive). However, I wanted to see the same graph but for every company and any news event beyond Amazon.
The graph is powered using d3.js. The client-side uses a mix of Mustache templating and jQuery. I know, in the modern day and age of large frameworks, why jQuery? I actually wanted to learn it for a change.
Data is pulled from alphavantage and the NYT headlines API. I hope the "bombshell" graph is useful, and possibly something to periodically checkout to see how different stocks have done. It's hard to say there's always a strong correlation, but it does exist for certain events. Feature requests, PRs and feedback are all welcome.
I’ve got a couple of friends who are gonna love this too. Thanks for showing this.
About ten years ago I developed the 'Scale of Market Quakes' for FX data and wrote a paper [1] about it (it's terribly written!), which was then released as a web service (www.olsenscale.com, not available anymore) and journalists etc could sign up for.
The idea was to measure the turbulences released in the market by e.g. quantitative easing by the FED. Was a great project and I learnt a lot.
edit: oh chrome works? Is this chrome only? Huh
ReferenceError: can't access lexical declaration `NEWS_ITEM_TEMPLATE' before initialization init-templates.js:15:32
Here's my change btw:
https://github.com/rlingineni/Scatter-Stocks/commit/394644bb...
Making request for all Stock Data graph.js:42 Recieved Stock Data graph.js:75 TypeError: Cannot read property '2. Symbol' of undefined at generateGraph (graph.js:44)
Updated the token to a new one to see if I could get around it. Hopefully, they don't hate me.
{ "Note": "Thank you for using Alpha Vantage! Our standard API call frequency is 5 calls per minute and 500 calls per day. }
Here's the about page that has a video demo at the end if it didn't work for you and a link to the original graph:
I checked the story about Apple's Homepod article in NYT on Feb 6, 2018 and the plot shows that stock prices of Amazon, Google, Microsoft, etc. went up by 4-5% in 24 hours! But when I look at the number from Yahoo Finance, it seems that everything went up and Apple went up more than these companies. The next day all of them went down and then by Feb 9th there was a huge crash. Check out the graph for 5-7 Feb: https://finance.yahoo.com/chart/^GSPC#eyJpbnRlcnZhbCI6ImRheS...