Spaces:
Runtime error
Runtime error
Upload mcp_server_fastmcp.py
Browse files- mcp_server_fastmcp.py +2 -2
mcp_server_fastmcp.py
CHANGED
|
@@ -116,8 +116,8 @@ def extract_financial_metrics(cik: str, years: int = 3) -> dict:
|
|
| 116 |
return {"error": "Years parameter must be between 1 and 10"}
|
| 117 |
|
| 118 |
# Check if company has filings (use tuple for caching)
|
| 119 |
-
filings_10k = edgar_client.get_company_filings(cik, ('
|
| 120 |
-
filings_20f = edgar_client.get_company_filings(cik, ('
|
| 121 |
total_filings = len(filings_10k) + len(filings_20f)
|
| 122 |
|
| 123 |
if total_filings == 0:
|
|
|
|
| 116 |
return {"error": "Years parameter must be between 1 and 10"}
|
| 117 |
|
| 118 |
# Check if company has filings (use tuple for caching)
|
| 119 |
+
filings_10k = edgar_client.get_company_filings(cik, ('10-K',))
|
| 120 |
+
filings_20f = edgar_client.get_company_filings(cik, ('20-F',))
|
| 121 |
total_filings = len(filings_10k) + len(filings_20f)
|
| 122 |
|
| 123 |
if total_filings == 0:
|