YQL控制台给我结果但是休息查询给了我错误

时间:2017-10-26 02:46:48

标签: datatable yql

我尝试使用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"
    }
   ]
  }
 }
}

但其余查询给我错误

{"错误" {"朗":"的en-US""诊断" {"高速缓存&# 34;:{"执行开始时间":" 0""执行停止时间":" 0"&# 34;执行时间":" 0""方法":" GET""类型":"分布式缓存& #34;"内容":" ENV.queryyahooapiscomproductionsg3.store://datatables.org/alltableswithkeys.15a841ff462a38eb6175e73b4dc747ef"}" ENV":"无法从存储中读取:store://datatables.org/alltableswithkeys:无效的商店网址:store://datatables.org/alltableswithkeys","警告":"指定的环境无效: store://datatables.org/alltableswithkeys"}," description":"找不到表yahoo.finance.xchange的定义"}}

1 个答案:

答案 0 :(得分:0)

yahoo.finance.xchange是一个社区表。在YQL控制台中应该有一个复选框,说明Show Community Tables选择它,你应该有权访问它。 REST调用here有效。如果您有任何问题,请告诉我。