| Datafeed Toolbox™ | ![]() |
data = fetch(Connect, 'Security') data = fetch(Connect, 'Security', 'D1') data = fetch(Connect, 'Security', 'D1', 'D2')
| Connect | FRED connection object created with the fred function. |
| 'Security' | MATLAB® string containing the name of a security in a format recognizable by the FRED server. |
| 'D1' | MATLAB string or date number indicating the date from which to retrieve data. Returns all data for the date 'D1'; if 'D1' is today's date, fetch returns data from yesterday. |
| 'D2' | MATLAB string or date number indicating the date range from which to retrieve data. Returns all data for the given security for the date range 'D1' to 'D2'. |
For a given security, fetch returns historical data using the connection to the FRED data server.
Fetch all available daily U.S. to Euro foreign exchange rates:
d = fetch(f,'DEXUSEU')
d =
Title: ' U.S. / Euro Foreign Exchange Rate'
SeriesID: ' DEXUSEU'
Source:
' Board of Governors of the Federal Reserve System'
Release: ' H.10 Foreign Exchange Rates'
SeasonalAdjustment: ' Not Applicable'
Frequency: ' Daily'
Units: ' U.S. Dollars to One Euro'
DateRange: ' 1999-01-04 to 2006-06-19'
LastUpdated: ' 2006-06-20 9:39 AM CT'
Notes: ' Noon buying rates in New York City for
cable transfers payable in foreign currencies.'
Data: [1877x2 double]Fetch data for 01/01/2007 through 06/01/2007:
d = fetch(f,'DEXUSEU','01/01/2007','06/01/2007)
d =
Title: ' U.S. / Euro Foreign Exchange Rate'
SeriesID: ' DEXUSEU'
Source:
' Board of Governors of the Federal Reserve System'
Release: ' H.10 Foreign Exchange Rates'
SeasonalAdjustment: ' Not Applicable'
Frequency: ' Daily'
Units: ' U.S. Dollars to One Euro'
DateRange: ' 1999-01-04 to 2006-06-19'
LastUpdated: ' 2006-06-20 9:39 AM CT'
Notes: ' Noon buying rates in New York City for
cable transfers payable in foreign currencies.'
Data: [105x2 double]fred.close, fred.get, fred.isconnection
![]() | fred.close | fred.get | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |