Yahoo Finance All Currencies quote API Documentation

前端 未结 6 776
梦谈多话
梦谈多话 2020-12-02 09:51

I\'ve being using this feed for a long time, I believe Apple does it as well in one of the mac widgets. but what is really curious is that I simply can\'t find any documenta

6条回答
  •  爱一瞬间的悲伤
    2020-12-02 10:45


    | ATTENTION !!! |

    | SERVICE SUSPENDED BY YAHOO, solution no longer valid. |

    Get from Yahoo a JSON or XML that you can parse from a REST query.

    You can exchange from any to any currency and even get the date and time of the query using the YQL (Yahoo Query Language).

    https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20csv%20where%20url%3D%22http%3A%2F%2Ffinance.yahoo.com%2Fd%2Fquotes.csv%3Fe%3D.csv%26f%3Dnl1d1t1%26s%3Dusdeur%3DX%22%3B&format=json&callback=

    This will bring an example like below:

    {
     "query": {
      "count": 1,
      "created": "2016-02-12T07:07:30Z",
      "lang": "en-US",
      "results": {
       "row": {
        "col0": "USD/EUR",
        "col1": "0.8835",
        "col2": "2/12/2016",
        "col3": "7:07am"
       }
      }
     }
    }
    

    You can try the console

    I think this does not break any Term of Service as it is a 100% yahoo solution.

提交回复
热议问题