how can I get currency exchange from yahoo finance and google finance?
显示 更早的评论
for example ticker='EURUSD=X' I tried fetch, but it only gives the current price, historical data is not available I tried dftool, it's the same, anyone has solution for this? thanks a lot!
回答(2 个)
Sean de Wolski
2014-6-11
You'll want to specify the date ranges to yahoo's fetch:
Example:
y = yahoo;
x = fetch(y,'SAM','Close','Aug 1 2012','Mar 20 2014')
3 个评论
Xiang
2014-6-11
Sean de Wolski
2014-6-11
That's apparently not a valid security or at least not in the expected format.
Xiang
2014-6-12
Josh Perry
2015-8-16
0 个投票
yahoo and google will only give you today's information for currencies. To get historical data you must use another data feed service.
类别
在 帮助中心 和 File Exchange 中查找有关 Web Services 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!