Borrar filtros
Borrar filtros

how can I get currency exchange from yahoo finance and google finance?

9 visualizaciones (últimos 30 días)
Xiang
Xiang el 11 de Jun. de 2014
Respondida: Josh Perry el 16 de Ag. de 2015
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!

Respuestas (2)

Sean de Wolski
Sean de Wolski el 11 de Jun. de 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 comentarios
Sean de Wolski
Sean de Wolski el 11 de Jun. de 2014
That's apparently not a valid security or at least not in the expected format.
Xiang
Xiang el 12 de Jun. de 2014
I tried x = fetch(y,'EURUSD=X') I got the current price, but no historical price

Iniciar sesión para comentar.


Josh Perry
Josh Perry el 16 de Ag. de 2015
yahoo and google will only give you today's information for currencies. To get historical data you must use another data feed service.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by