Skip to content
Prev 5445 / 15274 Next

Downloading Real Time Data from FRED (fImport/fredSeries)

Research wrote:
I haven't used the fImport function, but quantmod has a similar 
function, so I'll use that in my examople on modifying, the details 
should be quite similar.

look at function:

getSymbols.FRED

copy this to function getSymbols.ALFRED

modify it to include a parameter for the api key, or better yet register 
one for the project. 

then modify the line starting with download.file to reflect the new 
required URL. While the Symbol may be the same, the url is clearly different

test and share with the community

Regards,
 
  - Brian