Merger arbitrage: terms, background, and announcement
What you build: a script that finds a signed merger agreement and pulls its terms, how the deal came about, and what the companies announced.
The result: for Varonis Systems, a cash price of $49.75 per share from Proofpoint, the proxy's “Background of the Merger” section, and the press release of October 15, 2026.
The script
Step 1's 8-K feeds steps 4 and 5, and step 2's proxy feeds step 3.
import os
import requests
API = "https://api.secblast.com"
KEY = os.environ["SECBLAST_API_KEY"]
def get(path, **params):
r = requests.get(API + path, params=params, headers={"Authorization": f"Bearer {KEY}"}, timeout=30)
r.raise_for_status()
return r
# 1. Find the deal: the price per share and the counterparty. The call returns up to three
# matching 8-Ks, newest first; the script takes the newest.
deals = get("/v3/events/8k/1.01", ticker="VRNS", filed_from="2026-09-01", filed_to="2026-11-16",
event_type="merger_acquisition", min_confidence="0.8", limit=3).json()["data"]
deal = deals[0]
terms = {f["name"]: f["value"] for f in deal["events"][0]["fields"]}
print(terms)
# 2 and 3. Find the merger proxy's background section, and read it.
proxy = get("/v3/sections", section="background_of_the_merger", ticker="VRNS", limit=1).json()["data"][0]
proxy_text = get(f"/v3/filings/{proxy['filing']['accession']}/sections/background_of_the_merger/text").json()["text"]
# 4 and 5. List the 8-K's documents, and read the press release.
accession = deal["filing"]["accession"]
documents = get(f"/v3/filings/{accession}/documents").json()["data"]
release = next(d for d in documents if d["type"] == "EX-99.1")
print(get(f"/v3/filings/{accession}/documents/{release['seq']}/text").text)
What each step returns
1. Find the deal. Item 1.01 events with event_type=merger_acquisition give the counterparty and the price per share (or the exchange ratio for a stock deal). limit=3 returns the three newest matching 8-Ks, and the script takes the first. Each field has a confidence. accuracy is measured on a fixed test set: here, for cash_per_share, 21 filings (n), every price returned was right (precision 1.0), and 86 percent of the prices were found (recall 0.8571). To scan every company, leave out ticker and keep a filing-date window of at most 366 days.
{
"data": [
{
"filing": {
"accession": "0001213900-26-109901",
"form_type": "8-K",
"filing_date": "2026-10-15",
"primary_cik": "0001361113",
"primary_name": "VARONIS SYSTEMS INC"
},
"item_code": "1.01",
"events": [
{
"event_type": "merger_acquisition",
"confidence": 0.85,
"fields": [
{"name":"counterparty","value":"Proofpoint, Inc.","confidence":0.8},
{"name":"cash_per_share","value":"49.75","confidence":0.85},
{"name":"price_per_share","value":"49.75","confidence":0.8}
]
}
]
}
],
"has_more": false,
"next_cursor": null,
"accuracy": {"fields":{"cash_per_share":{"n":21,"precision":1,"recall":0.8571}}}
}2. Find the proxy's background section. The sections route finds “Background of the Merger” in the merger proxy (DEFM14A), with its size.
{
"data": [
{
"filing": {
"accession": "0001213900-26-120640",
"form_type": "DEFM14A",
"filing_date": "2026-11-16",
"primary_name": "VARONIS SYSTEMS INC",
"status": "provisional"
},
"family": "merger",
"section": {
"key": "background_of_the_merger",
"heading_text": "Background of the Merger",
"text_bytes": 43231
}
}
],
"has_more": true,
"next_cursor": "eyJhIjoiMDAwMTIxMzkwMC0yNi0xMjA2NDAi…"
}3. Read it. Section text comes in pieces: pass next_offset back as offset for the next piece, or leave out length for the whole section.
{
"accession": "0001213900-26-120640",
"section": "background_of_the_merger",
"heading_text": "Background of the Merger",
"text_total_bytes": 43231,
"next_offset": 500,
"text": "Background of the Merger\nAs part of the Company’s ongoing consideration and evaluation of its long-term strategic goals and plans, the Company Board and the Company’s management have periodically reviewed, considered and assessed the Company’s operations and financial performance, …"
}4. List the 8-K's documents. The merger agreement is EX-2.1 and the press release is EX-99.1.
{
"data": [
{"seq":1,"type":"8-K","filename":"ea0308610-8k_varonis.htm","size_bytes":86059},
{
"seq": 2,
"type": "EX-2.1",
"filename": "ea030861001ex2-1.htm",
"description": "AGREEMENT AND PLAN OF MERGER, DATED AS OF OCTOBER 15, 2026, BY AND AMONG VARONIS SYSTEMS, INC., PROOFPOINT, INC. AND VAIL MERGER SUB, INC",
"size_bytes": 731411
},
{
"seq": 4,
"type": "EX-99.1",
"filename": "ea030861001ex99-1.htm",
"description": "PRESS RELEASE ISSUED BY PROOFPOINT, INC. AND VARONIS SYSTEMS, INC., DATED OCTOBER 15, 2026",
"size_bytes": 38421
}
]
}5. Read the press release as plain text.
Exhibit 99.1
Proofpoint to Acquire Varonis in a $6.3 Billion Transaction
Combination creates a new cybersecurity powerhouse to deliver a complete security platform that protects against AI-accelerated threats and data risks
MIAMI, FL and SUNNYVALE, CA – October 15, 2026 – Varonis Systems, Inc. (Nasdaq: VRNS) (“Varonis”), the data and AI security leader, and Proofpoint, Inc. …Markdown version: /docs/workflows/merger-arbitrage.md