Joh*_*tis 6 financial option yql
我使用YQL来检索Financial Option数据.就像是:
select * from yahoo.finance.options where symbol="AAPL" and expiration="2011-07"
Run Code Online (Sandbox Code Playgroud)
但是,上面的查询返回一个optionsChain数据.
有没有办法只检索特定选项符号的记录,例如symbol=AAPL110716C00155000?
谢谢你的时间.
您可以yahoo.finance.options在除"远程过滤器"(symbol和expiration)之外的结果集上为所需符号应用"本地过滤器" .
select option
from yahoo.finance.options
where symbol = "AAPL"
and expiration = "2011-07"
and option.symbol = "AAPL110716C00155000"
Run Code Online (Sandbox Code Playgroud)
有关筛选查询结果的详细信息,请参阅YQL文档中的筛选查询结果(WHERE)页面.