Parameters, response columns and types are generated from the SQL catalog and
render under Endpoints → Rates in the sidebar. This page carries what a schema
cannot: how each rate is quoted, and which vertices are B3’s extrapolation.
Overview
Five functions over two B3 files Silo ingests daily. Nothing is interpolated or spliced; the one derived column iscontract_month.
future_curve(p_root, p_trade_date)— every outright contract of one root (DI1,DOLorWDO) on one session, nearest maturity first. Default rootDI1; default session: the newest one held for that root.future_series(p_ticker, p_from, p_to)— one DI1, DOL or WDO contract through time.future_nth_series(p_root, p_rank, p_from, p_to)(catalog v84) — the Nth nearest contract of one root through time:p_rank2 is the 2nd contract. See The Nth contract through time. The same contracts are inpanelasid_typefuture(settlement_rate,settlement_price,open_interest), next to tickers and funds.curve(p_curve, p_trade_date)— one reference curve on one session, every vertex. Default:PRE, the newest session held.curve_history(p_curve, p_tenor_days, p_from, p_to)— one of B3’s fixed vertices through time.
Calling them
The same five functions answer on every surface. Pick the root or the curve with one argument; leave the date out for the newest session.root, ticker, start, end);
silo.rpc(name, **params) takes the SQL names and checks them before sending.
The local serve/ adapter has no /v1 route for these four: use the Data API,
the SDK or the MCP server.
v2
DI1 futures
The source is B3’s Price Report (BVBG.086.01), one row per session and
outright DI1 contract, from 2018-01-02; B3’s older reports are empty.
- DI1 is quoted in rate.
settlement_rateand theopen_px/low_px/high_px/avg_px/close_pxcolumns are % a.a. on 252 business days, so the low rate is the high price.settlement_priceis the PU: R$ per contract, 100,000 at maturity. contract_monthis the first day of the month the ticker names, read with B3’s month letters (FJanuary,GFebruary,HMarch,JApril,KMay,MJune,NJuly,QAugust,USeptember,VOctober,XNovember,ZDecember). The contract matures on that month’s first business day. The business days to maturity are not stored and not computed here.- Nothing is made continuous.
future_seriesfollows one contract from listing to expiry. For a constant maturity, read B3’s own curve below.
The Nth contract through time
future_nth_series answers “the 2nd dollar future since 2020” without a manual
roll. On each session it ranks the contracts of the root by maturity and serves
the one at p_rank.
- The session’s own month is left out. DI1, DOL and WDO mature on the first
business day of the contract month, so in November the 1st DOL is
DOLZ26and the 2ndDOLF27. On 2026-11-03, the dayDOLX26matured, ranks 1, 2 and 3 wereDOLZ26,DOLF27andDOLG27. - Every row keeps its ticker. The roll shows where the ticker changes.
- Nothing is adjusted or spliced. The price jumps at each roll, so a return across a ticker change is not a return. Compute returns within one ticker.
- Rank is by maturity, not liquidity. Past the 1st or 2nd dollar contract, open interest is small.
- A session with fewer than
p_rankcontracts has no row. Default window: 12 months; more than 1,000 rows is refused (22023).
Dollar futures (DOL, WDO)
future_curve("DOL") and future_curve("WDO") return the same columns as DI1,
but the dollar futures are quoted in price, not rate: BRL per USD 1,000, per
B3’s contract specification (DOL is USD 50,000 per contract, WDO the mini USD
10,000; both mature on the first business day of the contract month). The
open_px / low_px / high_px / avg_px / close_px columns and
settlement_price are that price exactly as B3 publishes it, with no
conversion, and settlement_rate is null where B3 prints none. Any other
root is refused with 22023, which lists the three.
COTAHIST has no futures: the DOL* codes in the cash tape (DOLA11, DOLB11 …)
are ETFs, not the future.
Reference curves
The source is B3’s reference-rate file (TaxaSwap.txt), every vertex of three
curves, from 2008-01-02. Read rate_basis before comparing two curves.
B3 defines implied inflation as
(1 + PRE) / (1 + DPL) − 1 at the same tenor.
It carries an inflation risk premium: market pricing, not an expectation.
DPL’s shortest vertices lean on the current month’s IPCA projection.
Fixed and moving vertices
B3 publishes every curve on one grid:- Fixed vertices (
vertex_type = F) sit at nominal tenors, whichvertex_codecarries: 1, 7, 14, 21, 30, 60, 90 … 360 … 720 … 1800 … 10800 calendar days. The actualcalendar_daysis a day or two longer when the nominal date is not a business day. The 30-day vertex was 30 days on 2008-01-02 and 31 on 2026-09-25. - Moving vertices (
M) sit at the maturities of B3’s contracts.
curve_history serves a fixed vertex by its nominal tenor (p_tenor_days). Any
other tenor raises 22023 listing the fixed ones, because an interpolated tenor
is a choice of method. Read curve and interpolate in the notebook; B3’s own
method for PRE and DPL is flat-forward on 252 business days.
Freshness
coverage() has a di_futures row (DI1), a
dollar_futures row (DOL and WDO) and a reference_curves row. The two futures
rows read the same file, so they share a landed_at; the reference-rate file
logs its own. Both futures histories miss 2021-01-04 (B3 serves a malformed
file) and 2021-06-10 (an empty one). History comes
from a backfill, so a span that starts later than the dates above was not
loaded; it is not missing at B3.
Limits
All four refuse above one 1,000-row page (22023). One session is about 50 DI1
contracts and about 300 vertices per curve. For the two histories, narrow
p_from / p_to: a daily series fits about four years per call.