S&P 500 as JSON

Share this post

(updated on 28-Jan-2019)
Here’s another list of 500 large cap companies that form S&P 500 index.
List is build by:
– getting data from this wikipedia page
– parsing HTML (ruby + Nokogiri)
– requesting contract details from IB API and mixing it into the result
– representing result in form of JSON

JSON was chosen as a popular way to represent data (has endless number of parsers for pretty much all existing languages out there).

 

 
Example JSON screenshot (in Chrome, using JSONView plugin):