# Going-concern disclosures

**Result:** the script below finds 10-K and 10-Q filings (annual and quarterly reports) that mention both “substantial doubt” and “going concern”, the words of a going-concern warning. It prints the count, then the newest filings, each with a link and the passage. For November 16 to 20, 2026, 457 filings mention both phrases. It printed (3 of 20 filings shown):

```text
457 filings mention both phrases.
The newest 20:
2026-11-20 10-Q CYBERLOQ TECHNOLOGIES, INC.
    https://www.sec.gov/Archives/edgar/data/1437517/000149315226053576/form10-q.htm
    Accordingly, there is substantial doubt about the entity’s ability to
    continue as a going concern within one year after the financial statements
    are issued.
2026-11-20 10-Q Madison Technologies Inc.
    https://www.sec.gov/Archives/edgar/data/1318268/000175392626002217/g086038_10q.htm
    …matters raise substantial doubt about our ability to continue as a going
    concern for a period of twelve months from the issuance date of these
    consolidated financial statements.
2026-11-20 10-Q SPECIFICITY, INC.
    https://www.sec.gov/Archives/edgar/data/1840102/000152013826000513/spty-20260930_10q.htm
    These circumstances raise substantial doubt about the Company’s ability to
    continue as a going concern for a period of 12 months from the date of
    this report.
```

The count includes filings that say there is no substantial doubt.

## The script

**Run it:**

- Save the script as `going_concern.py` beside [`helper.py`](https://www.secblast.com/docs/workflows#helper-used-by-every-example), and run `python going_concern.py`.
- It makes 1 request per 100 matching filings: 5 for this window. Runs on the Free plan ([limits](https://www.secblast.com/docs/rate-limits)).

**First call:** step 1 of the script as a curl command, with your key in the `Authorization: Bearer` header. It returned (1 of 100 shown):

```bash
curl -sS -G -H "Authorization: Bearer $SECBLAST_API_KEY" \
  'https://api.secblast.com/v3/search' \
  -d 'q=%22substantial%20doubt%22%20%22going%20concern%22' \
  -d 'forms=10-K,10-Q' \
  -d 'filed_from=2026-11-16' \
  -d 'filed_to=2026-11-20' \
  -d 'group=filing' \
  -d 'sort=date' \
  -d 'limit=100' \
  -d 'snippets=1'
```

```json
{
  "data": [
    {
      "accession": "0001493152-26-053576",
      "form_type": "10-Q",
      "filing_date": "2026-11-20",
      "entities": [{"cik":"0001437517","name":"CYBERLOQ TECHNOLOGIES, INC."}],
      "documents": [
        {
          "seq": 1,
          "filename": "form10-q.htm",
          "url": "/v3/filings/0001493152-26-053576/documents/1",
          "snippets": [
            {
              "text": "losses are anticipated in the development of its business. Accordingly, there is substantial doubt about the entity’s ability to continue as a going concern within one year after the financial statements are issued.\n\nThe accompanying"
            }
          ]
        }
      ]
    }
  ],
  "total": {"filings":457},
  "has_more": true,
  "next_cursor": "eyJ2IjoxLCJzIjoiZGF0ZS5kZXNjLmZpbGluZy4wIiwiaCI6IjEyNzQ1YzU5MThmM2RiMjgiLCJnIjo1NjI0ODg3MjA5MTAyNzM4MTM3LCJrIjp7ImsxIjoyMDc3MywiazIiOjE3OTQ4Njc5NDEsImFjY19pZCI6MTQ5MzE1MjI2MDUyNjExLCJzZXEiOjF9fQ"
}
```

```python
import re
import textwrap

from helper import get  # helper.py: www.secblast.com/docs/workflows

# The filing dates to search, both included.
FILED_FROM, FILED_TO = "2026-11-16", "2026-11-20"
SHOW = 20  # how many filings to print, newest first
SENTENCE_END = re.compile(r"(?<=[.!?])\s+(?=[A-Z“(])")
DOUBT = re.compile(r"substantial doubt|going concern", re.IGNORECASE)

def passage(text):
    """The passage cut to whole sentences, from the first that matches.

    A cut at either end is marked with an ellipsis.
    """
    parts = SENTENCE_END.split(" ".join(text.split()))
    if len(parts) > 1 and not parts[-1].endswith((".", "!", "?")):
        parts.pop()  # the last sentence is cut off
    while len(parts) > 1 and not DOUBT.search(parts[0]):
        parts.pop(0)  # sentences before the match
    out = " ".join(parts)
    if out[:1].islower():
        out = "…" + out
    return out if out.endswith((".", "!", "?")) else out + "…"

# 1. Search 10-K and 10-Q text filed in the window for both phrases, one
# result per filing, newest first, with the passage that matched.
results, cursor = [], None
while True:
    page = get(
        "/v3/search",
        q='"substantial doubt" "going concern"',
        forms="10-K,10-Q",
        filed_from=FILED_FROM,
        filed_to=FILED_TO,
        group="filing",
        sort="date",
        snippets=1,
        limit=100,
        cursor=cursor,
    ).json()
    results += page["data"]
    cursor = page["next_cursor"]
    if not page["has_more"]:
        break

# 2. Print the count, then the newest SHOW filings, each with a link to the
# matching document on SEC.gov and the passage.
print(f"{len(results)} filings mention both phrases.")
print(f"The newest {min(SHOW, len(results))}:")
for r in results[:SHOW]:
    filer = r["entities"][0]
    doc = (r["documents"] or [{}])[0]  # the first matching document
    text = " ".join(s["text"] for s in doc.get("snippets", []))
    folder = f"{int(filer['cik'])}/{r['accession'].replace('-', '')}"
    link = f"https://www.sec.gov/Archives/edgar/data/{folder}/"
    print(r["filing_date"], r["form_type"], filer["name"])
    print("   ", link + (doc.get("filename") or ""))
    print(textwrap.indent(textwrap.fill(passage(text), 74), "    "))

```

## What each step returns

**1. Search the text.** The parameters:

- `q`: two phrases in quotes must both appear, each as written, in the same document.
- `forms=10-K,10-Q` also matches amendments (10-K/A and 10-Q/A).
- `filed_from` and `filed_to` are filing dates in New York time.
- `group=filing` returns one result per filing, with its matching documents under `documents`.
- `sort=date` puts the newest first.
- `snippets=1` adds one passage around a match. It can come from any part of the document, such as a risk factor.
- `limit` is 100, the most a page holds.

`total.filings` counts the matches on all pages. While `has_more` is `true`, the script passes `next_cursor` back as `cursor`. The first call above shows its answer.

**2. Print the filings.** `SHOW` sets how many print, newest first. The link goes to the first matching document, which can be an exhibit. The passage is cut to whole sentences, from the first with either phrase; “…” marks a cut.

## Going further

- **Resolved doubts:** some passages say an earlier doubt “has been alleviated”. A text match on such wordings flags those filings.
- **Another window:** set `FILED_FROM` and `FILED_TO` to the filing dates you want.
