Guide
Included with Signal8 Pro, $29.50/mo or $294/yr. One API key covers the REST API, the MCP server and the streams.
https://www.sec.gov/cgi-bin/browse-edgar?action=getcurrent&output=atom, every new filing, filterable by form type (type=8-K), company or CIK, with ownership filings (Forms 3, 4 and 5) included, excluded or alone (owner=include|exclude|only).count sets how many entries come back. 100 worked when we tested; 200 was refused with HTTP 400.SEC asks every automated client to declare a User-Agent with a name and a contact email, for example Sample Company Name [email protected]. Requests without one are refused.
SEC does not publish a refresh interval for these feeds. Its developer FAQ calls the latest filings search and its RSS "the best resources for getting as close to real time availability as possible" and says filings are often on sec.gov within 1 to 3 minutes of the EDGAR timestamp, without a guarantee.
This reads the latest 100 8-Ks once a minute and prints each new one once. Standard library only.
# Standard library only.
import time, urllib.request
import xml.etree.ElementTree as ET
FEED = ("https://www.sec.gov/cgi-bin/browse-edgar?action=getcurrent"
"&type=8-K&owner=include&count=100&output=atom")
HEADERS = {"User-Agent": "Example App [email protected]"}
ATOM = "{http://www.w3.org/2005/Atom}"
seen = set()
def poll():
req = urllib.request.Request(FEED, headers=HEADERS)
with urllib.request.urlopen(req, timeout=30) as resp:
root = ET.fromstring(resp.read())
new = []
for entry in root.iter(f"{ATOM}entry"):
entry_id = entry.findtext(f"{ATOM}id") # contains the accession number
if entry_id in seen:
continue
seen.add(entry_id)
new.append((entry.findtext(f"{ATOM}updated"), entry.findtext(f"{ATOM}title")))
return new
while True:
for updated, title in reversed(poll()):
print(updated, title)
time.sleep(60) # stay far below the SEC's 10 requests per second
Deduplicating on the entry id matters: it carries the accession number, which is what makes a filing unique.
With the Signal8 stream the 8-K poller above becomes one subscribe message. Filings arrive as events, once each, already carrying the CIK, tickers, company, form, EDGAR accepted-at time and filing link; ownership filings arrive once, with the issuer as subject and the filer in reporting_owner.
# pip install websockets
import asyncio, json, os
import websockets
async def main():
headers = {"Authorization": f"Bearer {os.environ['SIGNAL8_API_KEY']}"}
async with websockets.connect("wss://api.signal8.ai/api/v1/stream", additional_headers=headers) as ws:
await ws.send(json.dumps({
"type": "subscribe", "id": "8k",
"channels": ["filings"], "filters": {"forms": ["8-K"]},
}))
async for raw in ws:
msg = json.loads(raw)
if msg["type"] == "event":
d = msg["data"]
print(d["accepted_at"], d["form"], d["company"], d["accession_number"])
asyncio.run(main())
After a disconnect, send the cursor of the last event you handled as since and the server replays up to 24 hours of missed events before carrying on live. The Python tutorial builds that into a full alert bot.
| EDGAR RSS / Atom feed | Signal8 WebSocket stream | |
|---|---|---|
| Price | Free | Included with Signal8 Pro |
| Delivery | You poll | Pushed on one open connection |
| Missed filings | Anything past the newest 100 between reads | Replayed from your cursor, up to 24 h |
| Ownership forms | Listed once per party | One event, issuer plus reporting_owner |
| Filters | Form type, company or CIK, ownership | Ticker, CIK, form families, 8-K item, market cap, exchange, security type |
| Format | XML | JSON |
| Analysis | None | Optional AI event with event type, significance, summary |
type=8-K becomes "forms": ["8-K"], a CIK feed becomes "ciks": [...], owner=only becomes the ownership forms "4", "3", "5" and their amendments.Open one WebSocket, send one subscribe message, and filings and press releases arrive as events. Resume with a cursor after a disconnect and the server replays up to 24 hours.
Included with Signal8 Pro, $29.50/mo or $294/yr. One API key covers the REST API, the MCP server and the streams.