2011-11-22 418 views
-1

我正在尋找可以在中使用的API,以便能夠交換貨幣匯率。 我也需要使用這些API的例子。 你們有沒有想法如何找到它? JavaScript或Python 組合和職位示例?用JavaScript或Python獲取Google Finance API貨幣匯率

+2

類似於http://stackoverflow.com/questions/3139879/how-do-i-get-currency-exchange-rates-using-google-finance-api ?? – UnLoCo

+0

不是。應該是一種從Google api獲取貨幣作爲股票的方式。 q只是建議使用其他地方.. !!! – Emax

回答

0

要檢索當前匯率,您可以使用雅虎財務API(http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=USDINR=X)。

要檢索特定歷史日期的貨幣相對於美元的匯率,可以使用Yahoo currency-converter-cache API(http://finance.yahoo.com/connection/currency-converter-cache?date=<YYYYMMDD>)。

我做了這個簡單的貨幣轉換器模塊,它使用雅虎財務API並支持歷史日期。 https://github.com/iqbalhusen/currency_converter

+0

@DJClayworth謝謝。我已經編輯了我的答案,包括必要的部分。 – Iqbal