我正在使用 YQL 来检索金融期权数据。就像是:
select * from yahoo.finance.options where symbol="AAPL" and expiration="2011-07"
但是,上面的查询返回
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"
有关过滤查询结果的更多信息,请参阅 Filtering Query Results (WHERE) YQL 文档中的页面。
关于option - 使用 YQL 获取金融期权数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6442737/