9fin 2.1 Instruments: bonds and loans
APIs used in this notebook
| API | Version | Endpoints |
|---|---|---|
| Entity | 0.5.7 | GET /v0/entity/{nf_id} |
| Instruments (Bonds & Loans) | 0.10.1 | GET /v0/instruments/bonds-and-loansGET /v0/instruments/bonds-and-loans/{nf_id} |
The Bonds and Loans API on its own. Screen the universe on the terms you care about, pull a single record in full, and follow any instrument back to the company that issued it.
What an instrument is
One tranche. Not a deal, not an issuer, but a single line of debt: this bond, this term loan. It has its own nf_ins_... identifier.
Tranches belong to deals. A record carries a deal_id and a tranche_seq, so the two tranches of a dual currency deal share the deal_id and differ by sequence. That pair matters beyond this API: when one of our articles links an instrument inline it uses exactly those two values, which is how notebook 2.2 gets from a story to a security.
The issuer is a reference, not a name. Every record carries entity_nf_id, so an instrument always leads to a company and a company always leads to its debt stack.
The fields you will filter on most:
| Field | |
|---|---|
instrument_type | Bond or Loan |
instrument_status_name | Priced, In market, Pulled. Where the line is in its life |
grade | a list, because a record can be classified more than one way: IG, HY, LL, NR |
redeemed | whether it is still outstanding |
benchmark | FIXED, or the floating rate reference such as EURIBOR or SOFR |
reg_144a_isin, reg_s_isin, other_isin | ISINs, by placement. Same pattern for FIGIs |
%run "9fin 0.1 Authentication - getting a token.ipynb"
import pandas as pd
BONDS = "/v0/instruments/bonds-and-loans"
pd.set_option("display.max_colwidth", 120)
One record, to see the whole shape:
api_get(BONDS, limit=1)["items"][0]
Thirty one fields. Both endpoints return the same ones, so choosing between them is about access pattern rather than depth: filter to find, fetch by id to follow.
What you can filter and sort on
The same field__operator convention as the Entity API, and the filters combine.
| Field | Operators |
|---|---|
instrument_type, debt_security_ref_name, currency_ref_code, country_ref_name | contains, eq, in, isnull, neq |
entity_nf_id | contains, eq, in, isnull, neq |
reg_144a_isin, reg_s_isin, other_isin | contains, eq, in, isnull, neq |
amount, coupon | eq, gt, gte, in, isnull, lt, lte, neq |
maturity, issue_date, price_date | eq, gt, gte, in, isnull, lt, lte, neq |
grade | contains, isnull |
redeemed | eq, isnull, neq |
sort_by takes field__asc or field__desc. Pages are up to 200.
grade takes contains rather than eq, because it is a list.
Screening on terms
A maturity wall: dollar investment grade bonds of half a billion or more, still outstanding, due between 2030 and 2032, soonest first.
screen = api_get(BONDS, instrument_type__eq="Bond", currency_ref_code__eq="USD",
grade__contains="IG", redeemed__eq="false", amount__gte=500_000_000,
maturity__gte="2030-01-01", maturity__lt="2033-01-01",
sort_by="maturity__asc", limit=10)
pd.DataFrame(screen["items"])[["currency_ref_code", "amount", "coupon", "maturity",
"debt_security_ref_name", "entity_nf_id"]]
Sample output, captured October 2026. Static snapshot, not live data.
| currency_ref_code | amount | coupon | maturity | debt_security_ref_name | entity_nf_id |
|---|---|---|---|---|---|
| USD | 750000000.000000000 | 6.848000000 | 2030-01-03 | Senior Notes | nf_ent_ba9878b7c08746ac838c8274d333fbe4 |
| USD | 750000000.000000000 | 5.380000000 | 2030-01-07 | Senior Notes | nf_ent_3dbfbccd799f4fa7aaea4112cf081b3d |
| USD | 1200000000.000000000 | 5.350000000 | 2030-01-07 | Senior Notes | nf_ent_1fa0c624b54e4becb7780a82fad3a88c |
| USD | 800000000.000000000 | 5.300000000 | 2030-01-08 | Senior Notes | nf_ent_3b11d1c2df9b47f5b67b239bf4ecf470 |
| USD | 700000000.000000000 | 4.950000000 | 2030-01-09 | Senior Notes | nf_ent_b2756c44c05345edb376456bae8b4e21 |
| USD | 2500000000.000000000 | 4.238000000 | 2030-01-09 | Senior Notes | nf_ent_b417ec0530774691a0914165bb1c911c |
| USD | 600000000.000000000 | 5.250000000 | 2030-01-09 | Senior Notes | nf_ent_369343ae1e9c4ba98ba66b47b9cb8d9c |
| USD | 750000000.000000000 | 0.800000000 | 2030-01-09 | Senior FRNs | nf_ent_b417ec0530774691a0914165bb1c911c |
| USD | 1250000000.000000000 | 5.125000000 | 2030-01-09 | Senior Notes | nf_ent_f1601142c9a74195a6560d3022f2f21e |
| USD | 1000000000.000000000 | 6.174000000 | 2030-01-09 | Senior Notes | nf_ent_fcfc1ad159744d52b184fe743f79aae5 |
Amounts come back as full numbers rather than millions, and coupons as percentages.
Change the question and only the filters change. The same screen in euros, floating rather than fixed:
floating = api_get(BONDS, instrument_type__eq="Bond", currency_ref_code__eq="EUR",
redeemed__eq="false", benchmark__neq="FIXED", benchmark__isnull="false",
sort_by="maturity__asc", limit=5)
pd.DataFrame(floating["items"])[["amount", "coupon", "benchmark", "maturity", "debt_security_ref_name"]]
Sample output, captured October 2026. Static snapshot, not live data.
| amount | coupon | benchmark | maturity | debt_security_ref_name |
|---|---|---|---|---|
| 750000000.000000000 | 0.590000000 | EURIBOR | 2026-11-03 | Senior Preferred Notes |
| 1500000000.000000000 | 0.400000000 | EURIBOR | 2026-11-04 | Senior FRNs |
| 150000000.000000000 | 2.300000000 | EURIBOR | 2026-11-23 | Senior Preferred Notes |
| 1500000000.000000000 | 0.700000000 | EURIBOR | 2026-11-26 | Senior Non-Preferred Notes |
| 850000000.000000000 | 0.450000000 | E | 2026-11-28 | Senior FRNs |
A company's whole debt stack
If you arrive from notebook 0.2 holding an nf_ent_..., one filter gives you everything we have for that issuer.
INEOS = "nf_ent_48a73557382f4c398ac5e6990bbbc8a8"
held = api_get(BONDS, entity_nf_id__eq=INEOS, sort_by="maturity__asc", limit=200)["items"]
len(held)
Sample output, captured October 2026. Static snapshot, not live data.
72
pd.DataFrame(held).groupby(["instrument_type", "redeemed"]).size()
Sample output, captured October 2026. Static snapshot, not live data.
instrument_type redeemed
Bond False 7
True 18
Loan False 11
True 36
dtype: int64
Only the outstanding lines:
pd.DataFrame([i for i in held if not i["redeemed"]])[
["instrument_type", "currency_ref_code", "amount", "coupon", "maturity", "debt_security_ref_name"]].head(8)
Sample output, captured October 2026. Static snapshot, not live data.
| instrument_type | currency_ref_code | amount | coupon | maturity | debt_security_ref_name |
|---|---|---|---|---|---|
| Bond | EUR | 400000000.000000000 | 6.625000000 | 2028-05-15 | Senior Secured Notes |
| Bond | USD | 425000000.000000000 | 6.750000000 | 2028-05-15 | Senior Secured Notes |
| Loan | EUR | 350000000.000000000 | 2.750000000 | 2028-11-05 | Term Loan B |
| Loan | USD | 845000000.000000000 | 2.500000000 | 2028-11-05 | Term Loan B |
| Bond | USD | 725000000.000000000 | 7.500000000 | 2029-04-15 | Senior Secured Notes |
| Bond | EUR | 850000000.000000000 | 6.375000000 | 2029-04-15 | Senior Secured Notes |
| Loan | USD | 1191000000.000000000 | 3.250000000 | 2030-02-13 | Term Loan B |
| Loan | USD | 1188000000.000000000 | 3.250000000 | 2030-02-13 | Term Loan B |
One instrument in full
Every record carries an nf_id, and that id has an endpoint of its own.
with_isin = next(i for i in held if i["reg_144a_isin"] or i["reg_s_isin"] or i["other_isin"])
one = api_get(f"{BONDS}/{with_isin['nf_id']}")
{k: one[k] for k in ["nf_id", "debt_security_ref_name", "currency_ref_code", "amount",
"coupon", "maturity", "instrument_status_name", "grade", "purpose"]}
Sample output, captured October 2026. Static snapshot, not live data.
{'nf_id': 'nf_ins_a9bde44f6be14057a37afc85ab3a7abd',
'debt_security_ref_name': 'Senior Secured Notes',
'currency_ref_code': 'USD',
'amount': '570000000.000000000',
'coupon': '9.000000000',
'maturity': '2015-05-15',
'instrument_status_name': 'Priced',
'grade': ['HY'],
'purpose': ['Refinancing']}
And its identifiers, which is what you key your own systems on:
{k: one[k] for k in ["reg_144a_isin", "reg_s_isin", "other_isin",
"reg_144a_figi", "reg_s_figi", "other_figi", "deal_id", "tranche_seq"]}
Sample output, captured October 2026. Static snapshot, not live data.
{'reg_144a_isin': None,
'reg_s_isin': 'XS0508553764',
'other_isin': None,
'reg_144a_figi': None,
'reg_s_figi': 'BBG0000MFRT3',
'other_figi': None,
'deal_id': 'KvvbAQZL',
'tranche_seq': 1}
Going the other way: instrument to issuer
entity_nf_id is on every record, so any instrument leads to its company and from there to everything else we hold.
issuers = {i["entity_nf_id"]: api_get(f"/v0/entity/{i['entity_nf_id']}") for i in screen["items"][:5]}
pd.DataFrame([{"issuer": issuers[i["entity_nf_id"]]["street_name"],
"sector": issuers[i["entity_nf_id"]]["industry_1"],
"country": issuers[i["entity_nf_id"]]["country_ref_name"],
"maturity": i["maturity"]} for i in screen["items"][:5]])
Sample output, captured October 2026. Static snapshot, not live data.
| issuer | sector | country | maturity |
|---|---|---|---|
| Ally Financial | Financials | United States | 2030-01-03 |
| Athene Global Funding | Financials | United States | 2030-01-07 |
| General Motors | Consumer Discretionary | United States | 2030-01-07 |
| Hyundai Capital Services | Financials | South Korea | 2030-01-08 |
| Toyota Financial Services | Financials | Japan | 2030-01-09 |
An ISIN works the same way, when that is what you hold:
by_isin = api_get(BONDS, reg_144a_isin__eq="US69362BBF85")["items"][0]
api_get(f"/v0/entity/{by_isin['entity_nf_id']}")["street_name"], by_isin["maturity"]
Sample output, captured October 2026. Static snapshot, not live data.
('Public Service Electric & Gas', '2031-09-15')
The four calls
| Call | Gives you |
|---|---|
GET /v0/instruments/bonds-and-loans with filters | a screen of the universe on any terms |
the same, with entity_nf_id__eq | one company's whole debt stack |
GET /v0/instruments/bonds-and-loans/{nf_id} | one tranche in full |
GET /v0/entity/{entity_nf_id} | the issuer behind any instrument |
grade is a list, so filter it with contains. And deal_id with tranche_seq identifies a tranche across the platform, which is the subject of the next notebook.
Notebook 2.2 starts from a news story and descends to the instrument it discusses. Notebook 2.3 measures how much of the news corpus can be tied to an instrument that way.