【发布时间】:2017-10-26 02:46:47
【问题描述】:
我正在尝试使用 YQL 控制台获取货币汇率,YQL 语句是
select * from yahoo.finance.xchange where pair in ("EURUSD","GBPUSD")
控制台结果给我
{
"query": {
"count": 2,
"created": "2017-10-26T02:42:44Z",
"lang": "en-US",
"results": {
"rate": [
{
"id": "EURUSD",
"Name": "EUR/USD",
"Rate": "1.1829",
"Date": "10/26/2017",
"Time": "3:42am",
"Ask": "1.1829",
"Bid": "1.1829"
},
{
"id": "GBPUSD",
"Name": "GBP/USD",
"Rate": "1.3269",
"Date": "10/26/2017",
"Time": "3:42am",
"Ask": "1.3269",
"Bid": "1.3269"
}
]
}
}
}
但是其余的查询给了我错误
{"error":{"lang":"en-US","diagnostics":{"cache":{"execution-start-time":"0","execution-stop-time":" 0","执行时间":"0","method":"GET","type":"MEMCACHED","content":"ENV.queryyahooapiscomproductionsg3.store://datatables.org/alltableswithkeys.15a841ff462a38eb6175e73b4dc747ef" },"env":"从存储读取失败:store://datatables.org/alltableswithkeys:无效的存储 url:store://datatables.org/alltableswithkeys","warning":"指定的环境无效:store:/ /datatables.org/alltableswithkeys"},"description":"找不到表 yahoo.finance.xchange 的定义"}}
【问题讨论】: