- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这个查询对我有用
select * from yahoo.finance.xchange where pair in ("EURUSD","GBPUSD")
可以在以下链接中看到:
但我希望获得特定日期的费率,例如以下查询:
select * from yahoo.finance.xchange where pair in ("EURUSD","GBPUSD") and date = "2009-09-11"
我的查询有什么问题
最佳答案
根据文档over here除了 pair
之外没有其他查询参数.
但是,有一个货币转换器here允许选择日期。在分析每次更改所选日期时发出的请求时,您会注意到向 http://finance.yahoo.com/connection/currency-converter-cache?date=20090911
发出了一个 ajax 请求。 .使用它,您应该能够提取和转换所需的数据。
该 JSON 请求包含多种货币,每种货币都与美元相关。所以得到这个 JSON 结果:
{
"resource":{
"classname":"Quote",
"fields":{
"date":"2015-07-01",
"price":"0.89807",
"symbol":"EUR=X",
"type":"currency"
}
}
}
表示汇率为 1 USD = 0.8981 EUR
.
找到原解here 。在使用上述来源之前,请检查许可证问题 - 我不知道是否允许这样使用该来源。
关于javascript - YQL yahoo.finance.xchange 历史数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31606027/
我正在Yahoo Finance xchange上查询,但似乎更新时间不是最新的。看起来是随机的,对于每次刷新,这个值都会变化,有时更新最多,有时更新较少。 有办法始终获取上次更新时间吗? 谢谢。
我在安装 Open-Xchange 期间遇到 java 错误。 /opt/open-xchange/sbin/registerserver -n oxserver -A oxadminmaster -
我有一项使用 Yahoo!财务表yahoo.finance.xchange .今天早上我注意到它已经停止工作,因为突然 Yahoo!开始返回一个错误说: { "error": { "l
这个查询对我有用 select * from yahoo.finance.xchange where pair in ("EURUSD","GBPUSD") 可以在以下链接中看到: https://d
大家好,我是编码新手,但我不知何故(哈哈)设法将我的 excel 导出到 PDF .现在我在尝试拥有 PDF 时遇到了困难自动开启在 PDF XChange 查看器 而不是 Adobe Reade
以下查询从控制台工作: env 'store://datatables.org/alltableswithkeys'; select * from yahoo.finance.xchange wher
在过去的 3 年中,我一直在使用以下 URL,没有出现任何问题。但是,它已停止返回结果。 网址: https://query.yahooapis.com/v1/public/yql?q=select
我是一名优秀的程序员,十分优秀!