Kevin Kiningham About Archive Feed

2020 Democratic Nominee PredictIt Odds

The above chart is an experiment in using Google Doc’s cloud scripting functionality. Every 10 minutes, a cloud function runs and pulls odds data from PredictIt’s market API. It then stores it in a Google Sheets document, which automatically renders a chart that we can embed in a webpage. Surprisingly, this takes less than 50 lines of code and can be implemented entirely from the browser!