Quote from 2rosy:
here's an easy way to do it.
Code:import demjson,urllib2 def getOptionChain(): url='http://www.google.com/finance/option_chain?q=AAPL&output=json' ii=urllib.urlopen(url).readline() ii = demjson.decode(ii)
you could wrap this in c++ and then execute a python interpreter to run it![]()
Quote from 2rosy:
here's an easy way to do it.
Code:import demjson,urllib2 def getOptionChain(): url='http://www.google.com/finance/option_chain?q=AAPL&output=json' ii=urllib.urlopen(url).readline() ii = demjson.decode(ii)
you could wrap this in c++ and then execute a python interpreter to run it![]()
Quote from stevegee58:
If you have an account with IB you can download the option chain through their API quite easily.
Quote from TigerBalm:
I purchased Options data from ivolatility.com and loaded the CSV files into a database. I'm not sure if they have an API for the Historical Data, though. I have looked at their SDK briefly and it seems to address only Real Time data...