how can I get currency exchange from yahoo finance and google finance?
Show older comments
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!
Answers (2)
Sean de Wolski
on 11 Jun 2014
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 Comments
Xiang
on 11 Jun 2014
Sean de Wolski
on 11 Jun 2014
That's apparently not a valid security or at least not in the expected format.
Xiang
on 12 Jun 2014
Josh Perry
on 16 Aug 2015
0 votes
yahoo and google will only give you today's information for currencies. To get historical data you must use another data feed service.
Categories
Find more on Web Services in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!