Get Financial Option Data with YQL

自作多情 提交于 2019-12-03 07:48:53

You can apply a "local filter", for your desired symbol, on the result set brought back from yahoo.finance.options in addition to the "remote filters" (symbol and expiration).

select option
from yahoo.finance.options
where symbol = "AAPL" 
  and expiration = "2011-07" 
  and option.symbol = "AAPL110716C00155000" 

For more info on filtering query results see the Filtering Query Results (WHERE) page in the YQL documentation.

I just got all the optionsChain of data by :

select * from yahoo.finance.options where symbol="A" and expiration="2012-10"

And, then just used a JSON Parser to parse the optionsChain's data and got my desired data.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!