以前にも書いたけど追加で、JSONで為替レートが取得できるAPIを2つ。
Yahoo! Finance
1 |
{"query":{"count":1,"created":"2016-08-02T20:10:49Z","lang":"ja","results":{"rate":{"id":"USDJPY","Name":"USD/JPY","Rate":"102.4700","Date":"8/2/2016","Time":"6:05am","Ask":"102.4760","Bid":"102.4700"}}}} |
YQLを使ってYahoo! Financeから為替レートを取得する – Qiita
http://qiita.com/masato/items/6f81bdc89f81a7b6cc3a
外為オンライン
http://www.gaitameonline.com/rateaj/getrate
1 |
{"quotes":[{"high":"1.8459","open":"1.8367","bid":"1.8425","currencyPairCode":"GBPNZD","ask":"1.8442","low":"1.8256"},{"high":"78.24","open":"77.98","bid":"77.01","currencyPairCode":"CADJPY","ask":"77.06","low":"76.76"},{"high":"1.7589","open":"1.7477","bid":"1.7537","currencyPairCode":"GBPAUD","ask":"1.7546","low":"1.7389"},{"high":"77.45","open":"77.16","bid":"76.74","currencyPairCode":"AUDJPY","ask":"76.77","low":"76.48"},{"high":"1.0536","open":"1.0503","bid":"1.0503","currencyPairCode":"AUDNZD","ask":"1.0513","low":"1.0447"},{"high":"1.4719","open":"1.4648","bid":"1.4696","currencyPairCode":"EURCAD","ask":"1.4703","low":"1.4582"},{"high":"1.1233","open":"1.1163","bid":"1.1222","currencyPairCode":"EURUSD","ask":"1.1223","low":"1.1158"},{"high":"73.84","open":"73.40","bid":"73.01","currencyPairCode":"NZDJPY","ask":"73.07","low":"72.72"},{"high":"1.3138","open":"1.3121","bid":"1.3095","currencyPairCode":"USDCAD","ask":"1.3101","low":"1.3002"},{"high":"0.8490","open":"0.8466","bid":"0.8408","currencyPairCode":"EURGBP","ask":"0.8412","low":"0.8399"},{"high":"1.3364","open":"1.3176","bid":"1.3343","currencyPairCode":"GBPUSD","ask":"1.3346","low":"1.3170"},{"high":"7.306","open":"7.284","bid":"7.130","currencyPairCode":"ZARJPY","ask":"7.280","low":"7.112"},{"high":"1.0832","open":"1.0801","bid":"1.0821","currencyPairCode":"EURCHF","ask":"1.0826","low":"1.0798"},{"high":"106.17","open":"105.54","bid":"104.60","currencyPairCode":"CHFJPY","ask":"104.65","low":"104.36"},{"high":"0.7636","open":"0.7538","bid":"0.7606","currencyPairCode":"AUDUSD","ask":"0.7608","low":"0.7483"},{"high":"0.9696","open":"0.9682","bid":"0.9642","currencyPairCode":"USDCHF","ask":"0.9646","low":"0.9631"},{"high":"114.80","open":"114.28","bid":"113.23","currencyPairCode":"EURJPY","ask":"113.25","low":"113.00"},{"high":"1.2882","open":"1.2755","bid":"1.2865","currencyPairCode":"GBPCHF","ask":"1.2874","low":"1.2731"},{"high":"1.5589","open":"1.5556","bid":"1.5497","currencyPairCode":"EURNZD","ask":"1.5509","low":"1.5451"},{"high":"0.7253","open":"0.7168","bid":"0.7236","currencyPairCode":"NZDUSD","ask":"0.7242","low":"0.7156"},{"high":"102.82","open":"102.38","bid":"100.90","currencyPairCode":"USDJPY","ask":"100.91","low":"100.67"},{"high":"1.4894","open":"1.4807","bid":"1.4749","currencyPairCode":"EURAUD","ask":"1.4757","low":"1.4681"},{"high":"0.7365","open":"0.7294","bid":"0.7333","currencyPairCode":"AUDCHF","ask":"0.7339","low":"0.7240"},{"high":"135.55","open":"134.91","bid":"134.63","currencyPairCode":"GBPJPY","ask":"134.66","low":"133.91"}]} |
[小ネタ]為替レートを簡単に取得する – Qiita
http://qiita.com/chromabox/items/a1323225bae146c80bec