janlukasschroeder / sec-api-python

Python SEC EDGAR Filings API. Over 18 million filings, all 150 filing types supported. Query, full-text search and real-time stream API. Convert XBRL-to-JSON and access standardized financial statements from 10-K and 10-Q filings.
https://sec-api.io
MIT License
181 stars 24 forks source link

Error in code within Documentation #9

Closed zdavidwade closed 6 months ago

zdavidwade commented 1 year ago

In the documentation for CIK, CUSIP, Ticker Mapping API. The Example : Python presents code to identify all active Nasdaq (and later NYSE) traded entities. The specific line of code with the error is:

nasdaq_listings_active = all_nasdaq_listings[all_nasdaq_listings['isDelisted'] != False]

This returns results for entities where isDelisted = True. These firms are no longer active. The results presented are the correct outputs for the code, but are incorrectly attributed as active entities. This error persists as the bar chart included is therefore incorrect. This may lead to misinterpreted results.