9fin 2.2 Instruments: from a story to the bond it is about
APIs used in this notebook
| API | Version | Endpoints |
|---|---|---|
| News & Content v2 | 0.3.41 | GET /v2/news/headlinesGET /v2/news/{uuid} |
| Instruments (Bonds & Loans) | 0.10.1 | GET /v0/instruments/bonds-and-loansGET /v0/instruments/bonds-and-loans/{nf_id} |
A credit story names a company, and often a particular security. This notebook goes the whole way: a headline, the article, the issuer, and finally the single tranche the piece discusses, with its ISIN and terms.
How an article points at an instrument
Two different links, and they behave differently.
To a company, through the entities block. Always present, always resolved to an nf_ent_.... That is notebook 1.1.
To an instrument, through a link inside the article text. When our editorial references a specific security it links it as a URL of the form:
9fin.com/company/<Company>/instruments/<deal_id>-<tranche_seq>
Those last two values are the instrument's own deal_id and tranche_seq, the same pair you saw in notebook 2.1. So the link is not decoration: it is a foreign key sitting in the prose, and matching it against the issuer's instruments identifies the exact tranche.
Not every article carries one. The reliable place to find them is the Bond Legal QuickTake tag, which marks covenant analysis of a specific bond offering memorandum, so the piece is written about one instrument by definition.
The issuer comes off the article itself, so no Entity call is needed. If you hold Bonds and Loans without News, notebook 2.1 reaches the same records without a story.
%run "9fin 0.1 Authentication - getting a token.ipynb"
import re
import pandas as pd
BONDS = "/v0/instruments/bonds-and-loans"
pd.set_option("display.max_colwidth", 120)
Finding articles that name a security
9fin-Bond Legal QuickTake is the sharpest filter in the catalogue for this. Across all content
roughly three articles in ten carry a machine-readable instrument link; among these, most do.
Not all, though, so the next step picks the first article that actually links one rather than assuming the newest does.
heads = api_get("/v2/news/headlines", content_tags__in="9fin-Bond Legal QuickTake",
source_type="9fin", limit=10)["items"]
pd.DataFrame([{"published": h["published_at"][:10], "issuer": (h["entities"].get("main") or {}).get("name"),
"title": h["title"][:62]} for h in heads])
Sample output, captured October 2026. Static snapshot, not live data.
| published | issuer | title |
|---|---|---|
| 2026-10-28 | Solaris Energy | Solaris Energy — Bond Legal QuickTake (Indenture dated 1 Octob |
| 2026-10-28 | Intrum Justitia | Intrum — Bond Legal QuickTake (Prelim dated July 6 2026) (9fin |
| 2026-09-24 | Intertek | Intertek — Bond Legal QuickTake (Final OM dated 25 September 2 |
| 2026-10-27 | Bending Spoons | Bending Spoons — Bond Legal QuickTake (Prelim dated 27 October |
| 2026-10-27 | Bison Oil & Gas | Bison Oil & Gas — Bond Legal QuickTake (Prelim OM dated 26 Oct |
| 2026-10-26 | Recordati | Recordati — Bond Legal QuickTake (Prelim dated 26 October 2026 |
| 2026-01-23 | Asurion | Asurion — Bond Legal QuickTake (Prelim OM dated 22 Jan 2026)(9 |
| 2026-10-21 | Radiology Partners | Radiology Partners — Bond Legal QuickTake (Prelim OM dated 20 |
| 2026-10-20 | AmWINS Group | AmWINS Group — Bond Legal QuickTake (Prelim OM dated 20 Oct 20 |
| 2026-09-25 | InPost | InPost — Bond Legal QuickTake (Final OM dated 1 Oct 2026) (9fi |
The link is an inline reference to an instrument record, which looks like
9fin.com/company/<Company>/instruments/<deal_id>-<tranche_seq> in the markdown body. One regular expression finds it, and the same expression chooses an article worth following.
LINK = re.compile(r"9fin\.com/company/[^/]+/instruments/([\w]+)-(\d+)")
bodies = (api_get(f"/v2/news/{h['uuid']}") for h in heads)
article = next(a for a in bodies if LINK.search(a["content"]["body"]))
article["title"]
Sample output, captured October 2026. Static snapshot, not live data.
'Intrum — Bond Legal QuickTake (Prelim dated July 6 2026) (9fin)'
Pulling the instrument link out of the text
Running the expression over the body returns the deal_id and tranche_seq of everything the
article links. Those two values together are the instrument's permalink.
linked = {(deal, int(seq)) for deal, seq in LINK.findall(article["content"]["body"])}
linked
Sample output, captured October 2026. Static snapshot, not live data.
{('urd8Jkpc', 1)}
Who the article is about
The entities block gives the issuer without any name matching.
issuer = article["entities"]["main"]
issuer
Sample output, captured October 2026. Static snapshot, not live data.
{'nf_id': 'nf_ent_fb3f227790cc45e5aeebf24733626ad3',
'name': 'Intrum Justitia',
'country_code': 'SE'}
Matching the link to a record
Now the two halves meet. Pull the issuer's instruments and keep the ones whose deal_id and tranche_seq match what the article linked.
held = api_get(BONDS, entity_nf_id__eq=issuer["nf_id"], limit=200)["items"]
len(held)
Sample output, captured October 2026. Static snapshot, not live data.
28
matched = [i for i in held if (i["deal_id"], i["tranche_seq"]) in linked]
pd.DataFrame(matched)[["nf_id", "instrument_type", "currency_ref_code", "amount",
"coupon", "maturity", "debt_security_ref_name"]]
Sample output, captured October 2026. Static snapshot, not live data.
| nf_id | instrument_type | currency_ref_code | amount | coupon | maturity | debt_security_ref_name |
|---|---|---|---|---|---|---|
| nf_ins_951c76e9aae94446a4b1efef979b2e09 | Bond | EUR | 525000000.000000000 | 7.000000000 | 2031-07-15 | Senior Secured Notes |
That is the descent finished: a headline became a specific security, and nothing along the way was matched on a name.
The tranche in full
The matched nf_id has its own endpoint, exactly as in notebook 2.1.
bond = api_get(f"{BONDS}/{matched[0]['nf_id']}")
{k: bond[k] for k in ["debt_security_ref_name", "currency_ref_code", "amount", "coupon",
"benchmark", "issue_date", "maturity", "instrument_status_name", "grade"]}
Sample output, captured October 2026. Static snapshot, not live data.
{'debt_security_ref_name': 'Senior Secured Notes',
'currency_ref_code': 'EUR',
'amount': '525000000.000000000',
'coupon': '7.000000000',
'benchmark': None,
'issue_date': '2026-07-24',
'maturity': '2031-07-15',
'instrument_status_name': 'Priced',
'grade': ['HY']}
{k: bond[k] for k in ["reg_144a_isin", "reg_s_isin", "other_isin", "deal_id", "tranche_seq"]}
Sample output, captured October 2026. Static snapshot, not live data.
{'reg_144a_isin': 'XS3438545017',
'reg_s_isin': 'XS3438544630',
'other_isin': None,
'deal_id': 'urd8Jkpc',
'tranche_seq': 1}
If the ISINs come back empty, look at instrument_status_name. A Bond Legal QuickTake often covers a preliminary offering memorandum, so the deal is still in market and no ISIN has been assigned yet. The same record fills in once it prices.
Doing it across a set of articles
The same four steps, wrapped once, so you can run it over a feed rather than a single story.
def instruments_in(article):
"""The instrument records an article links inline."""
linked = {(d, int(s)) for d, s in LINK.findall(article["content"]["body"])}
if not linked or not article["entities"].get("main"):
return []
held = api_get(BONDS, entity_nf_id__eq=article["entities"]["main"]["nf_id"], limit=200)["items"]
return [i for i in held if (i["deal_id"], i["tranche_seq"]) in linked]
rows = []
for head in heads[:6]:
full = api_get(f"/v2/news/{head['uuid']}")
for instrument in instruments_in(full):
rows.append({"article": full["title"][:44], "type": instrument["instrument_type"],
"currency": instrument["currency_ref_code"], "maturity": instrument["maturity"],
"isin": instrument["reg_144a_isin"] or instrument["reg_s_isin"] or instrument["other_isin"]})
pd.DataFrame(rows)
Sample output, captured October 2026. Static snapshot, not live data.
| article | type | currency | maturity | isin |
|---|---|---|---|---|
| Intrum — Bond Legal QuickTake (Prelim dated | Bond | EUR | 2031-07-15 | XS3438545017 |
| Bending Spoons — Bond Legal QuickTake (Preli | Bond | USD | 2032-01-31 | US081933AA18 |
| Bending Spoons — Bond Legal QuickTake (Preli | Bond | EUR | 2032-01-31 | XS3548829228 |
The descent, step by step
| Step | Call |
|---|---|
| find stories about a security | /v2/news/headlines with content_tags__in=9fin-Bond Legal QuickTake |
| read one | /v2/news/{uuid} |
| the issuer | the article's entities.main.nf_id |
| the issuer's debt | /v0/instruments/bonds-and-loans?entity_nf_id__eq=... |
| the exact tranche | match deal_id and tranche_seq against the article's links |
deal_id with tranche_seq is a foreign key that travels outside the Instruments API, into the text of the journalism.
Notebook 2.3 measures how far this goes: what share of a year of articles can be tied to an instrument this way, and which tags are worth filtering on.