get_bond_data
Retrieve historical prices and yields for Brazilian Tesouro Direto bonds as CSV, filtered by asset, date range, and daily, monthly, or yearly frequency.
Instructions
Historical daily prices and yields of Tesouro Direto bonds.
Returns CSV. For daily data the columns are `ref_date`, `yield_bid`
(decimal annual rate), `yield_bid_pct`, `price_bid` (R$), `asset_code` and
`matur_date`. For monthly/yearly data each row is the mean over the period,
with the number of observations and first/last dates.
If the result exceeds `max_rows`, the most recent observations are kept and
a truncation note is included in the CSV comments.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_bond_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | Optional precise end date (YYYY-MM-DD), overriding last_year. | |
| max_rows | No | Maximum rows returned (most recent observations are kept). | |
| frequency | No | Observation frequency: daily raw data, or monthly/yearly means. | daily |
| last_year | No | Last calendar year of the series. Defaults to the current year. | |
| asset_code | No | Optional single maturity filter, matched as a case-insensitive substring, e.g. 'NTN-B Principal 150835' or '150835'. | |
| first_year | No | First calendar year of the series (minimum 2005). | |
| start_date | No | Optional precise start date (YYYY-MM-DD), overriding first_year. | |
| asset_codes | No | Bond families: LTN, LFT, NTN-B, NTN-B Principal, NTN-F, NTN-C, RendA+, Educa+ (official names also accepted). Omit for all bonds. | |
| force_download | No | Ignore today's cached file and download the source again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |