US Government & Legal Data Skill
This skill allows you to retrieve official documents from US government sources, essential for due diligence and regulatory research.
Capabilities
- SEC EDGAR: Retrieve 10-K (Annual) and 10-Q (Quarterly) filings for public companies.
- Federal Register: (Future) Check for new agency rules.
Usage
Run the python script fetch_filing.py to retrieve SEC documents.
Arguments
ticker(required): The stock symbol (e.g., AAPL, MSFT).--type(optional): Form type (default "10-K").--count(optional): Number of filings to retrieve (default 1).
Example
# Get the latest 10-K for Apple
python3 fetch_filing.py AAPL --type 10-K
# Get the last 3 quarterly reports for Tesla
python3 fetch_filing.py TSLA --type 10-Q --count 3
Output Format
The script outputs a JSON object containing:
cik: Central Index Keycompany_namefilings: List of filing objects:accessionNumberfilingDatereportDateprimaryDocumentUrl: Direct link to the HTML document on sec.govdescription
Tips for the Agent
- User-Agent: The script automatically sets a compliant User-Agent.
- Direct Links: Always provide the
primaryDocumentUrlto the user so they can verify the source. - Financials: Use the link to read the full text if specific financial data extraction is needed (this basic skill finds the document).