Quantcast
Channel: Active questions tagged datafeed - Stack Overflow
Viewing all articles
Browse latest Browse all 48

Yahoo fetching currency in Matlab?

$
0
0

Does anyone know how to get a range of dates that works for fetching currency pairs from Yahoo? The code below works fine for capturing the latest rates needed? I am looking for a complete time series or matrix of the same info for a range of dates. I tried using the examples from Mathworks.com but get errors displayed below. This code works fine:

Connect = yahoo;k = {'USDJPY=X''USDEUR=X''USDCAD=X''USDGBP=X'};data = fetch(Connect, k)

where

USDJPY=X = USD to JPYUSDEUR=X = USD to EURetc...

If I do a range of dates, I get this error:

>> data = fetch(Connect, k, '24-Oct-2003',datestr(now))Warning: Historical data fetch does not support multiple security input.USDJPY=X data reurned. > In yahoo.fetch at 310??? Error using ==> yahoo.fetch at 363Unable to return historical data for given security.

Thanks


Viewing all articles
Browse latest Browse all 48

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>