finsets
  1. FRED
  2. fred_api
  • finsets
  • FRED
    • fred
    • fred_api
  • WRDS
    • wrds_api
    • crspm
    • crspd
    • compa
    • compa_ccm
    • compq
    • compq_ccm
    • ratios
    • ibes_ltg
    • bondret
    • mergent
    • linking
  • Papers
    • Dickerson, et al. (2023)
    • Gilchrist and Zakrajsek (2012)
    • Gürkaynak, et al. (2007)
    • Hassan, et al. (2019)
    • Hoberg, Phillips (2010, 2016)
    • Peters and Taylor (2016)

On this page

  • Fred
  • Report an issue
  1. FRED
  2. fred_api

fred_api

Fork of fredapi package by Mortada Mehyar: https://github.com/mortada/fredapi

This fork fixes errors caused by out-of-range timestamps produced in the original fredapi package (version 0.5.0).


source

Fred

 Fred (api_key=None, api_key_file=None)

Initialize the Fred class that provides useful functions to query the Fred dataset. You need to specify a valid API key in one of 3 ways: pass the string via api_key, or set api_key_file to a file with the api key in the first line, or set the environment variable FRED_API_KEY to the value of your api key. You can sign up for a free api key on the Fred website at http://research.stlouisfed.org/fred2/

  • Report an issue