Skip to main content
GET
Tesouro Direto rates and prices

Overview

Tesouro Direto posted buy and sell rates and prices per title, newest base date first. Tesouro Nacional open data under ODbL 1.0: credit Tesouro Nacional.

Coverage

Coverage varies by dataset and date. Check current dataset coverage before drawing conclusions from missing data.

Try the API

Request and response schema

Example

Source and licence

This data is Tesouro Nacional open data (“Taxas dos Títulos Ofertados pelo Tesouro Direto”), under the Open Database License (ODbL) 1.0. Every row carries source (Tesouro Nacional) and licence (ODbL-1.0). When you reuse it, credit Tesouro Nacional, and offer a database you derive from it under the same licence. The rates are the platform’s posted morning buy and sell quotes, in % a year as published, not trades. They can be negative. A null price is a side the title was not on sale on. With no dates, the newest base date comes first; one base date holds about 60 titles.

Example response

Rows of api.treasury_direct run on the source file of 2026-11-16, before the first deploy; replace with a live response after it. This excerpt omits pagination links.

FAQ

When present, follow next_page_url to request the next page. See pagination and errors.
Yes. Connect an agent through the MCP server.
Python DataFrames

Headers

Authorization
string

Optional Bearer token for signed-in or Pro access.

Query Parameters

title
string

Title type as published, e.g. Tesouro IPCA+. Omit for every title.

maturity
string<date>

One maturity (YYYY-MM-DD). Omit for every maturity.

from
string<date>

Start date (YYYY-MM-DD).

to
string<date>

End date (YYYY-MM-DD).

limit
integer

Rows per page, subject to your tier.

Required range: x >= 1
cursor
string

Cursor from the next page URL.

details
boolean
default:false

Include request diagnostics.

Response

The v2 envelope.

data
any[]
required

Always a list. Rows as the endpoint returned them; null stays null.

meta
object
required
next_page_url
string

Present only when more rows remain. It carries one opaque cursor.