Processing Financial Data with FRED API: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
Import the package and establish a connection to the FRED backend, providing the API Key obtained as described here. | Import the package and establish a connection to the FRED backend, providing the API Key obtained as described here. | ||
<syntaxhighlight lang='py'> | |||
from fredapi import Fred | |||
fred = Fred(api_key='...') | |||
</syntaxhighlight> | |||
=Code Examples= | =Code Examples= |
Revision as of 19:33, 8 October 2023
Internal
Overview
This article describes the sequence of steps required to process financial data obtained from FRED API.
Procedure
Import the package and establish a connection to the FRED backend, providing the API Key obtained as described here.
from fredapi import Fred
fred = Fred(api_key='...')
Code Examples
Search
fred.search("text", limit=1000, order_by=None, sort_order=None, filter=None)
Do a full text search for series in the FRED data set. Returns the results as a data frame.