Prerequisites
- Python 3.9+,
requests, andSECAPI_API_KEY. - A manager CIK and durable storage for production results.
track_13f.py:
python track_13f.py. A successful run writes the service-selected
comparison and prints the file path and request metadata. Keep the original
JSON, manager CIK, report dates, filing dates, source accessions or URLs, and
request metadata with every derived summary. The underlying Form 13F reports
remain the source for a material statement.
Common errors
400: provide the reporting manager’s CIK, not a portfolio-company ticker.401or403: the key is missing, invalid, or not entitled to the route.- An unavailable comparison can mean fewer than two parsable reports; it is not evidence of no exposure or no change.
Production considerations
Use an idempotent object key that includes the manager and retrieval time, keep bounded retries for temporary5xx responses, and do not mark a manager
unchanged after an incomplete request. A 13F is a delayed snapshot of reportable
securities, so label a row change as a comparison between selected reports.

