Monkey Data

Stocks vs Sports: Stock Data (1.a)

This post is a continuation of Stocks vs Sports. Please see the previous post, Inception, for more context. See all the code on Github. When trying to compare bets made on Wall Street against those made in Vegas, I’ll need data. Lots of data. Look at all of this data! Big data, much data. Very actionable. In order to do anything useful, I need to be able to obtain and store both stock and sports gambling data reliably. In the old days, this would be reading through the sports and finance section of the paper. Nowadays, I’m not even 100% sure that there is a “paper” to read through, so I’m going to be relying on different APIs that can feed data in real time. Recall from my previous post, Inception, that I’ll be using the Alpha Vantage API for stocks, and the Odds API for sports gambling. Testing these APIs is trivial as you can demo them directly on their website. Here’s an Alpha Vantage query with a demo API Key. Here’s the demo documentation for the Odds API. From an initial smoke check, it appears that they’ll fulfill all the needs that I have. In this post, I’ll outline the data generation component of the stocks vs sports system. To keep it simple, I’ll narrow the scope of the data generation to just the “stocks” side. I’ll create a follow-up post with the outline of how the sports gambling data is created. ...

June 21, 2021 · 12 min · logan