__init__#
- EdgarAPI.__init__(cache_mode=False, cache_size=256)[source]#
Initialize the EdgarAPI class the provide functions for accessing SEC EDGAR data.
- Parameters:
- Returns:
An instance of the EdgarAPI class.
- Return type:
- Raises:
ValueError – If the cache_size parameter is not a positive integer.
Example
>>> import edgar_sec as ed >>> api = ed.EdgarAPI(cache_mode=True)
Note
Unlike many APIs, the SEC EDGAR API doesn’t require an API key, but it does enforce a rate limit of 10 requests per second which this implementation automatically respects.