TL;DR
- Filing Watch is a Python script that returns a five-line summary of the latest 10-Q or 10-K for each stock in your Wallbit portfolio, with a link to the original filing on sec.gov.
- It makes two Firecrawl calls per company through the SEC EDGAR provider in Firecrawl Alexandria, one to find the filing and one to fetch the section, for 10 Firecrawl credits per company (5 if nothing is found), as of Nov 13, 2026.
- A Wallbit key with only the Read permission is enough, and
--tickersworks without a Wallbit account. - ETFs and 20-F filers such as TSMC are skipped, because they file neither a 10-Q nor a 10-K.
P.S. You can also pull the same filings from Claude, ChatGPT or Codex without a script. See What is Firecrawl Alexandria?
I wanted to test whether a script could explain why a stock moved using the company's own filing. Your investing app shows how many shares you own and what they are worth. It does not say why the stock moved, and that explanation sits in a long English filing on sec.gov. Apple's annual report filed on Nov 3, 2026 is a good example. Net sales were $478.8 billion, up 15% from the year before, and research and development spending rose 32%, driven mostly by infrastructure costs (including investments in AI) and headcount.
Filing Watch is a Python script that summarizes the latest 10-K or 10-Q for every company in a Wallbit portfolio. Wallbit is an investing app that lets people in Latin America buy US stocks. Wallbit published a companion guide on how to read the SEC reports for your stocks (in Spanish), which covers which sections of a 10-K to read first, and Filing Watch automates that reading for every holding. The script reads your holdings from the Wallbit API, gets each filing from the SEC EDGAR provider in Firecrawl Alexandria, and has Claude write five lines in English or Spanish with a link to the source. A Wallbit account is optional, because --tickers works for any US company.
What does Filing Watch do with Wallbit and Firecrawl?
Each summary ends with the link to the original filing on sec.gov, so you can check every claim. Firecrawl is the context API for AI agents, and Filing Watch uses it to reach the filing.
After the setup below, run it for NVIDIA's 10-Q, filed on Aug 26, 2026. The default language is Spanish, and this run uses --lang en. The wording of the output changes from run to run, because a model writes it:
python filing_watch.py --tickers NVDA --lang en## NVDA (10-Q, filed 2026-08-26) (text truncated)
Revenue was $96.2 billion in the second quarter of fiscal year 2027, up 106% from a year ago and 18% sequentially, and Data Center revenue was $89.0 billion, up 117% from a year ago.
Gross margin was 75.0% versus 72.4% a year ago, operating expenses rose 55% from a year ago, and net income was $59,688 million, or $2.46 per diluted share.
Supply and capacity commitments rose from $119 billion last quarter to $279 billion as of July 26, 2026, and a guarantee obligation capped at $105 billion for the SB Energy campus was added in August 2026. Note 10 of the financial statements is worth reading for details.
Risks the text names include supply constraints, inaccurate demand estimates, limited customer access to land, power and capital, and revenue concentration, with one direct customer at 16% of total revenue in the second quarter of fiscal year 2027. The text also cites H200 sales to China under 1% of Data Center revenue with a 25% tariff, and Middle East conflict.
In the second quarter of fiscal year 2027 the company repurchased 94 million shares for $19.7 billion, raised its quarterly dividend from $0.01 to $0.25 per share, and had $99.3 billion of repurchase authorization as of July 26, 2026.
Source: https://www.sec.gov/Archives/edgar/data/1045810/000104581026000075/nvda-20260726.htmThe "text truncated" note means the filing section was longer than the 40,000 characters the script sends to the model by default, a limit you can change with MAX_CHARS. The provider itself returns up to 60,000 characters per section. Without --lang en the same run writes Spanish, with numbers in Spanish format. Filing Watch summarizes public filings and is not investment advice. A model writes the summary, so read the linked filing before you act.
| Job | Where it comes from |
|---|---|
| Your holdings | Wallbit API |
| The latest 10-Q or 10-K | SEC EDGAR provider in Firecrawl Alexandria |
| The five-line summary | Claude, through the Anthropic API |
| An alert when a company files (optional) | Firecrawl /monitor |
What is Firecrawl Alexandria?
Firecrawl Alexandria is a library of data sources for AI agents inside the Firecrawl API. It brings data providers and Firecrawl's own Research, Developer and Government indexes together with the live web. An agent finds a source, sees what it holds and pulls from it with one Firecrawl API key.
Watch the Firecrawl Alexandria launch video:
Finding a provider is free, and running one is billed at the price in Firecrawl credits that its capability lists. Filing Watch uses SEC EDGAR, and the same call pattern works for the other categories:
| Category | Example providers, as of Nov 13, 2026 |
|---|---|
| Finance | SEC EDGAR, Fiscal.ai, Fireround |
| People and companies | Apollo, FullEnrich |
| Research and developer | Research Index, Developer Index |
The Firecrawl Alexandria provider catalog lists every category.
Firecrawl Alexandria is also available in Claude, ChatGPT, Codex and other MCP clients, so an assistant can summarize SEC filings and pull the same SEC EDGAR data without a script. It needs a connected Firecrawl account, because it is not part of the keyless mode.
The Firecrawl Alexandria in ChatGPT and Codex post covers the connection, and then a prompt like this works:
Search Firecrawl with the alexandria source, use find tools to locate the SEC EDGAR provider, then get the Risk Factors and MD&A sections of Apple's latest 10-K, summarize what changed in five lines and link the filing.Use the script for a scheduled summary of every holding. Use the assistant for a one-off question about a single company. The what is Firecrawl Alexandria post covers the full catalog.
What do you need to run Filing Watch with Firecrawl?
Filing Watch needs Python 3.12, a Firecrawl API key, an Anthropic API key and, for your own holdings, a Wallbit account with investments enabled. The SEC EDGAR provider runs through your Firecrawl API key, so the keyless mode does not cover it. An organization admin may need to accept a provider's terms in the Firecrawl dashboard first.
Get the Firecrawl API key from the Firecrawl dashboard and the Anthropic key from the Anthropic console.
mkdir filing-watch && cd filing-watch
python3 -m venv .venv && source .venv/bin/activate
pip install requests
export FIRECRAWL_API_KEY=your_api_key
export ANTHROPIC_API_KEY=your_api_keySave the two files from the full code section in that folder.
How does Filing Watch read your holdings from Wallbit?
Filing Watch reads your holdings from the Wallbit balance stocks endpoint with an API key from a Wallbit agent, which is an API credential with its own permissions and has nothing to do with an AI model. Each row of the response has a symbol and a share count, and one extra USD row holds the cash in your investment account, which the script skips.
Open Wallbit's developer portal, go to Agents, select Create agent and tick only Read, so that trading stays switched off. Copy the key when it appears and keep it out of chats, repositories and screenshots, because a Read key can still see your balances:
export WALLBIT_API_KEY=your_api_keyThe request is a GET to https://api.wallbit.io/api/public/v1/balance/stocks with the key in the X-API-Key header:
r = requests.get(WALLBIT, headers={"X-API-Key": key}, timeout=30)
tickers = [h["symbol"] for h in r.json()["data"] if h["symbol"] != "USD" and h["shares"] > 0]Run the script with no arguments to use your holdings, or pass --tickers NVDA AAPL to skip Wallbit and try any US company.
How does Firecrawl return a company's latest SEC filing?
The SEC EDGAR provider in Firecrawl Alexandria works as an SEC EDGAR API for AI agents. It returns official filings through Firecrawl /scrape with your Firecrawl API key. Filing Watch makes two calls per company, one to find the filing and one to fetch a section.
The SEC EDGAR page lists every capability, and the Firecrawl /scrape page covers the endpoint.
The first call, filings/filings, finds the latest 10-Q or 10-K:
body = {"alexandria": {"provider": "sec-gov", "capability": "filings/filings",
"options": {"ticker": "NVDA", "forms": ["10-Q", "10-K"], "limit": 1}}}
r = requests.post("https://api.firecrawl.dev/v2/scrape", headers=FC_HEADERS, json=body, timeout=120)The second call, filings/sections, asks for Item 7 on a 10-K and Item 2 on a 10-Q. Both hold management's discussion and analysis (MD&A), which also mentions some risks. On a 10-Q, item 2 also matches Part II Item 2, the share repurchases, so a summary can mention buybacks. The formal risk factors are in Item 1A of a 10-K, and the --item 1A option requests them. The response includes the text and the sec.gov URL of the filing.
We used the REST API from Python. The same calls work from the Firecrawl SDKs in Node.js and Python, from the CLI, and from the Firecrawl MCP server in Claude, Cursor and Codex. The Firecrawl Alexandria docs show each one.
How do you get a Claude summary that sticks to the filing?
Filing Watch sends the section text to Claude with a prompt that limits what the model may write. The model uses only facts and figures from the text and copies them as written. It names each period the way the filing names it and writes exactly five short lines with no advice. The default model is Claude Sonnet 5.5, and an environment variable changes it.
The prompt asks for one language only, neutral Latin American Spanish for --lang es and English for --lang en, so the output never mixes the two. The prompt lowers the risk of invented numbers, and the second script, verify_figures.py, checks what remains. It fetches the section again and prints FOUND or NOT FOUND for each figure you pass in. For Apple's 10-K, python verify_figures.py AAPL 10-K 7 "478,834" "32%" returns FOUND for both figures:
python verify_figures.py NVDA 10-Q 2 "279 billion" "96,221"Search for a figure the way the filing writes it, in English with US formats, even when the summary says "279 mil millones". A FOUND result confirms the number exists in the NVIDIA 10-Q. It cannot tell you whether the summary uses the number correctly.
How do you get an alert from Firecrawl /monitor when a company files?
Firecrawl /monitor runs a search on a schedule and sends a webhook when it finds new results that match a goal. The third script creates a daily monitor that searches sec.gov for 8-K, 10-Q and 10-K filings from the companies you list. An 8-K is the filing a company submits when something material happens.
Save this as monitor_setup.py:
"""Optional: create a Firecrawl /monitor that alerts when new filings or news appear for your tickers.
Run: python monitor_setup.py NVDA AAPL --webhook https://your.url/hook (webhook optional)
Each check uses credits, see the Firecrawl pricing page.
"""
import argparse, os, requests
H = {"Authorization": "Bearer " + os.environ["FIRECRAWL_API_KEY"], "Content-Type": "application/json"}
p = argparse.ArgumentParser()
p.add_argument("tickers", nargs="+")
p.add_argument("--webhook")
a = p.parse_args()
body = {
"name": "filing-watch-" + "-".join(a.tickers),
"schedule": {"text": "daily at 9am", "timezone": "America/Argentina/Buenos_Aires"},
"goal": "Alert when " + ", ".join(a.tickers) + " publish a new 8-K, 10-Q or 10-K, or announce material news.",
"targets": [{"type": "search", "queries": [t + " SEC filing 8-K 10-Q 10-K" for t in a.tickers], "searchWindow": "7d", "includeDomains": ["sec.gov"], "maxResults": 5}],
"retentionDays": 7,
}
if a.webhook:
body["webhook"] = {"url": a.webhook, "events": ["monitor.page", "monitor.check.completed"]}
r = requests.post("https://api.firecrawl.dev/v2/monitor", headers=H, json=body, timeout=60)
print(r.status_code, r.text[:400])Then run it with your tickers:
python monitor_setup.py NVDA AAPL --webhook https://your.url/hookThe monitor runs daily at 9am in the America/Argentina/Buenos_Aires time zone, so edit the schedule field for yours. The webhook is optional, and without it the results stay in your Firecrawl account for the 7 days set by retentionDays. The Firecrawl monitor endpoint launched in May 2026, and web-scale /monitor added search across the web, which is the mode this script uses.
The monitoring docs cover schedules, credit counting and webhook events, and how to monitor a website for changes covers the endpoint in more detail.
What does Filing Watch skip?
Filing Watch covers companies that file 10-Qs and 10-Ks. For ETFs and for foreign companies such as TSMC (TSM) and Nu Holdings (NU), which file a 20-F instead, the script prints a notice and moves on.
How much does Filing Watch cost with Firecrawl credits?
As of Nov 13, 2026, a lookup costs 5 Firecrawl credits per ticker, including one that returns no filings. A company with a 10-Q or 10-K costs 10 Firecrawl credits, because fetching the section text is a second call at 5. Anthropic bills the summary per token. Current Firecrawl plans are on the pricing page.
What data does Filing Watch send to Firecrawl and Anthropic?
Only ticker symbols go to Firecrawl, and only the public text of the filing section goes to Anthropic, so your share counts stay on your computer.
Full code for Filing Watch
filing_watch.py:
"""Filing Watch: read-only summary of the latest SEC report for each holding in a Wallbit portfolio.
Setup: pip install requests (tested on Python 3.12)
Env: WALLBIT_API_KEY (Read permission only), FIRECRAWL_API_KEY, ANTHROPIC_API_KEY
Run: python filing_watch.py holdings from Wallbit
python filing_watch.py --tickers NVDA AAPL skip Wallbit
python filing_watch.py --lang en English output
python filing_watch.py --tickers AAPL --item 1A risk factors of a 10-K
Optional env: SUMMARY_MODEL (default claude-sonnet-5-5), MAX_CHARS (default 40000)
"""
import argparse, os, sys
import requests
FIRECRAWL = "https://api.firecrawl.dev/v2/scrape"
WALLBIT = "https://api.wallbit.io/api/public/v1/balance/stocks"
FC_HEADERS = {"Authorization": "Bearer " + os.environ.get("FIRECRAWL_API_KEY", ""), "Content-Type": "application/json"}
TEXT = {
"es": {
"header": "## {t} ({form}, presentado el {filed}){note}",
"truncated": " (texto recortado)",
"source": "Fuente",
"none": "## {t}: no hay 10-Q ni 10-K en la SEC (los ETF y las empresas que presentan 20-F no los tienen)\n",
"error": "## {t}: error, {e}\n",
"missing_var": "Falta la variable de entorno {var}.",
"wallbit_key": "Wallbit rechazó la API key (HTTP {code}). Revisá que sea la de un Agent con permiso Read.",
"wallbit_rate": "Se alcanzó el límite de consultas de Wallbit. Esperá un minuto y volvé a ejecutarlo.",
"no_holdings": "No encontramos acciones en Wallbit. Probá con --tickers NVDA AAPL.",
"language": "neutral Latin American Spanish",
"numbers": "Write numbers in Spanish format: a period as the thousands separator and a comma as the decimal separator. Write billion as mil millones and million as millones, for example 96.221 millones de dólares or 279 mil millones de dólares.",
},
"en": {
"header": "## {t} ({form}, filed {filed}){note}",
"truncated": " (text truncated)",
"source": "Source",
"none": "## {t}: no 10-Q or 10-K on file with the SEC (ETFs and companies that file a 20-F do not have them)\n",
"error": "## {t}: error, {e}\n",
"missing_var": "Missing environment variable {var}.",
"wallbit_key": "Wallbit rejected the API key (HTTP {code}). Check that it belongs to an Agent with Read permission.",
"wallbit_rate": "Wallbit rate limit reached. Wait a minute and run again.",
"no_holdings": "No stock holdings found in Wallbit. Try --tickers NVDA AAPL.",
"language": "English",
"numbers": "Write amounts as in the filing in US style, for example $96.2 billion or $96,221 million.",
},
}
def wallbit_tickers(t):
key = os.environ.get("WALLBIT_API_KEY")
if not key:
sys.exit(t["missing_var"].format(var="WALLBIT_API_KEY"))
r = requests.get(WALLBIT, headers={"X-API-Key": key}, timeout=30)
if r.status_code in (401, 403):
sys.exit(t["wallbit_key"].format(code=r.status_code))
if r.status_code == 429:
sys.exit(t["wallbit_rate"])
r.raise_for_status()
return [h["symbol"] for h in r.json()["data"] if h["symbol"] != "USD" and h["shares"] > 0]
def alexandria(capability, **options):
body = {"alexandria": {"provider": "sec-gov", "capability": capability, "options": options}}
r = requests.post(FIRECRAWL, headers=FC_HEADERS, json=body, timeout=120)
r.raise_for_status()
items = r.json()["data"]["alexandria"]
if not items:
raise RuntimeError("empty Firecrawl Alexandria response")
if "error" in items[0]:
raise RuntimeError(items[0]["error"]["message"])
return items[0]["data"]
def latest_report(ticker, item=None):
try:
filings = alexandria("filings/filings", ticker=ticker, forms=["10-Q", "10-K"], limit=1)["filings"]
except RuntimeError as e:
if "could not find" in str(e):
return None
raise
if not filings:
return None
f = filings[0]
item = item or ("7" if f["form"] == "10-K" else "2")
sections = alexandria("filings/sections", ticker=ticker, form=f["form"], items=[item])["sections"]
text = "\n\n".join(s["text"] for s in sections)
limit = int(os.environ.get("MAX_CHARS", "40000"))
return {"form": f["form"], "filed": f["filing_date"], "url": f["primary_document_url"], "text": text[:limit], "truncated": len(text) > limit}
def summarize(report, t):
prompt = (
f"Write in {t['language']} a summary of this {report['form']} section for an investor who holds shares of the company. "
"Use only facts and numbers that appear in the text. Name the period of a figure only with the exact wording the text uses (for example the first half of fiscal year 2027), and if the text does not say, do not state a period. Do not add claims the text does not make. "
"Say what changed and which risks and uncertainties the text mentions, and name one part of the filing worth reading. "
"Do not give investment advice and do not predict prices. Do not put quotation marks around figures. Use exactly 5 short lines, one idea per line, no title. "
+ t["numbers"] + "\n\n" + report["text"]
)
r = requests.post(
"https://api.anthropic.com/v1/messages",
headers={"x-api-key": os.environ["ANTHROPIC_API_KEY"], "anthropic-version": "2023-06-01", "content-type": "application/json"},
json={"model": os.environ.get("SUMMARY_MODEL", "claude-sonnet-5-5"), "max_tokens": 2000, "messages": [{"role": "user", "content": prompt}]},
timeout=120,
)
r.raise_for_status()
return "".join(b["text"] for b in r.json()["content"] if b["type"] == "text").strip()
def main():
p = argparse.ArgumentParser()
p.add_argument("--tickers", nargs="*")
p.add_argument("--lang", default="es", choices=["es", "en"])
p.add_argument("--item", help="SEC item to summarize instead of the default, for example 1A")
a = p.parse_args()
t = TEXT[a.lang]
for var in ("FIRECRAWL_API_KEY", "ANTHROPIC_API_KEY"):
if not os.environ.get(var):
sys.exit(t["missing_var"].format(var=var))
tickers = a.tickers or wallbit_tickers(t)
if not tickers:
sys.exit(t["no_holdings"])
failures = 0
for ticker in tickers:
try:
report = latest_report(ticker, a.item)
if not report:
print(t["none"].format(t=ticker))
continue
note = t["truncated"] if report["truncated"] else ""
print(t["header"].format(t=ticker, form=report["form"], filed=report["filed"], note=note))
print(summarize(report, t))
print(f"{t['source']}: {report['url']}\n")
except Exception as e:
failures += 1
print(t["error"].format(t=ticker, e=e))
if failures:
sys.exit(1)
if __name__ == "__main__":
main()verify_figures.py:
"""Checks that figures quoted in a summary appear in the filing text returned by Firecrawl Alexandria.
The filing text is in English with US number formats, so search for the figure as the filing writes it,
for example 279 billion or 96,221, even if the summary says 279 mil millones or 96.221 millones.
The check reads each section as the provider returns it (up to 60,000 characters), while filing_watch.py sends only the first MAX_CHARS characters to the model.
Run: python verify_figures.py NVDA 10-Q 2 "279 billion" "96,221"
"""
import re, sys
from filing_watch import alexandria
ticker, form, item, *figures = sys.argv[1:]
text = " ".join(s["text"] for s in alexandria("filings/sections", ticker=ticker, form=form, items=[item])["sections"])
text = re.sub(r"\s+", " ", text.replace("\u00a0", " ")).replace(" %", "%")
for f in figures:
print(f, "FOUND" if re.search(rf"(?<![\w.,]){re.escape(f)}(?!\w|[.,]\d)", text) else "NOT FOUND")Where to go next
The same pattern works for 8-K filings and for the risk factors in Item 1A. Wallbit explains how to connect agents to its API in the Wallbit for Agents help article (in Spanish). To read a 10-K yourself before you automate it, Wallbit's guide on how to read the SEC reports for your stocks (in Spanish) covers how a 10-K differs from a 10-Q, where to find both on EDGAR and which sections to read first.
For more finance workflows, see build a finance research agent and the best investment research APIs. Teams that need this at a larger scale can read about Firecrawl for enterprise and the security documentation. To run Filing Watch on your own holdings, get a Firecrawl API key and a read-only Wallbit key.
Use Firecrawl in your agent
Add Firecrawl to ChatGPT, Claude, Cursor and more in one click.
Frequently Asked Questions
What is Filing Watch?
Filing Watch is a Python script that reads the stocks in your Wallbit portfolio, gets the latest 10-Q or 10-K for each company from the SEC EDGAR provider in Firecrawl Alexandria and has Claude write a five-line summary in English or Spanish with a link to the filing on sec.gov. It is read-only, needs no trading permission and also works without Wallbit when you pass tickers.
What permission does the Wallbit API key need?
Only Read. Wallbit's documentation describes a Read permission that does not allow trading, and Filing Watch only calls the balance endpoint. You can revoke the key at any time.
What is the difference between a 10-Q and a 10-K?
A 10-K is the annual report and a 10-Q covers one quarter. Item 7 of a 10-K and Item 2 of a 10-Q hold management's own account of the results, which is why Filing Watch reads them.
Can I summarize SEC filings in Spanish?
Yes. Spanish is the default, with numbers in Spanish format, and setting the language option to en switches to English. The summary always ends with the link to the English filing.
How do I get SEC filings through the Firecrawl API?
Send a scrape request to the Firecrawl API with an alexandria body that names the sec-gov provider and a capability such as filings/filings. The response returns the filing date, the form type and the sec.gov link, and a second capability returns the text of one item. It needs a Firecrawl API key, because Firecrawl Alexandria is not part of the keyless mode.
How much does it cost to summarize an SEC filing with Firecrawl?
As of Nov 13, 2026, finding the latest filing for a ticker costs 5 Firecrawl credits and fetching its section costs 5 more, so a company with a 10-Q or 10-K costs 10 Firecrawl credits. Anthropic bills the summary separately by token.
Do I need a Wallbit account to summarize SEC filings?
No. Pass tickers with the tickers option and the script skips Wallbit. A Wallbit account with a Read-only API key is only needed to read your own holdings.
How do I read the risk factors of a 10-K?
Run python filing_watch.py --tickers AAPL --item 1A. Item 1A holds the risk factors a company lists in its annual report, which the default sections only touch on.
Can I use a different model for the summaries?
Yes. Set the SUMMARY_MODEL environment variable to another Anthropic model id. For a different provider, change the request inside the summarize function.
Is this investment advice?
No. The script summarizes public SEC filings, and a model writes the summary, so it can contain mistakes. Read the linked filing before you decide anything.

