{"api":{"id":"api_32419f16e597c3c62ded27c0","slug":"brazil-tesouro-direto-prices","name":"Brazil Tesouro Direto Bond Prices API","description":"Daily buy and sell rates and prices of Brazil's Tesouro Direto government bonds by type and maturity, newest first, as typed rows from the Treasury's open data.","kind":"ready_made","visibility":"public","domain":"tesourotransparente.gov.br","source_url":"https://www.tesourotransparente.gov.br/ckan/dataset/df56aa42-484a-4a59-8184-7676580c81e3/resource/796d2059-14e9-44e3-80c9-2d9e30b405c1/download/PrecoTaxaTesouroDireto.csv","category":"finance","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":9,"created_at":"2026-12-06T04:53:59.364Z","updated_at":"2026-12-06T04:53:59.364Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"id","type":"string","description":"Bond type, maturity date and quote date together, unique per quote.","required":true,"coverage":1,"example":"Tesouro Selic|2031-03-01|2026-12-04"},{"name":"bond_type","type":"string","description":"Name of the Tesouro Direto bond.","required":false,"coverage":1,"example":"Tesouro Selic"},{"name":"maturity_date","type":"date","description":"Day the bond matures.","required":false,"coverage":1,"example":"2031-03-01"},{"name":"base_date","type":"date","description":"Day of the quote.","required":false,"coverage":1,"example":"2026-12-04"},{"name":"buy_rate","type":"number","description":"Annual rate in percent when buying, morning quote.","required":false,"coverage":1,"example":0.12},{"name":"sell_rate","type":"number","description":"Annual rate in percent when selling, morning quote.","required":false,"coverage":1,"example":0.13},{"name":"buy_price","type":"number","description":"Unit price in BRL when buying.","required":false,"coverage":1,"example":20345.49},{"name":"sell_price","type":"number","description":"Unit price in BRL when selling.","required":false,"coverage":1,"example":20326.46},{"name":"base_price","type":"number","description":"Base unit price in BRL for the day.","required":false,"coverage":1,"example":20326.46}],"inputs":[{"name":"bond_type","type":"string","description":"Exact bond name, for example Tesouro Selic, Tesouro Prefixado or Tesouro IPCA+. Leave empty for all bonds.","example":"Tesouro Selic"},{"name":"start_date","type":"string","description":"Only quotes on or after this date (YYYY-MM-DD).","example":"2026-11-01"},{"name":"maturity_year","type":"integer","description":"Only bonds maturing in this year.","example":2031}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"base_date":{"description":"Day of the quote.","format":"date","type":"string"},"base_price":{"description":"Base unit price in BRL for the day.","type":"number"},"bond_type":{"description":"Name of the Tesouro Direto bond.","type":"string"},"buy_price":{"description":"Unit price in BRL when buying.","type":"number"},"buy_rate":{"description":"Annual rate in percent when buying, morning quote.","type":"number"},"id":{"description":"Bond type, maturity date and quote date together, unique per quote.","type":"string"},"maturity_date":{"description":"Day the bond matures.","format":"date","type":"string"},"sell_price":{"description":"Unit price in BRL when selling.","type":"number"},"sell_rate":{"description":"Annual rate in percent when selling, morning quote.","type":"number"}},"required":["id"],"title":"Brazil Tesouro Direto Bond Prices API","type":"object"},"samples":[{"id":"Tesouro Selic|2031-03-01|2026-12-04","bond_type":"Tesouro Selic","maturity_date":"2031-03-01","base_date":"2026-12-04","buy_rate":0.12,"sell_rate":0.13,"buy_price":20345.49,"sell_price":20326.46,"base_price":20326.46},{"id":"Tesouro Selic|2029-03-01|2026-12-04","bond_type":"Tesouro Selic","maturity_date":"2029-03-01","base_date":"2026-12-04","buy_rate":0.07,"sell_rate":0.08,"buy_price":20419.39,"sell_price":20404.39,"base_price":20404.39},{"id":"Tesouro Selic|2027-03-01|2026-12-04","bond_type":"Tesouro Selic","maturity_date":"2027-03-01","base_date":"2026-12-04","buy_rate":0.07,"sell_rate":0.08,"buy_price":20445.64,"sell_price":20434.66,"base_price":20434.66}],"validation":{"checked_at":"2026-12-06T04:53:59.363Z","field_coverage":{"base_date":1,"base_price":1,"bond_type":1,"buy_price":1,"buy_rate":1,"id":1,"maturity_date":1,"sell_price":1,"sell_rate":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_32419f16e597c3c62ded27c0/run","openapi":"https://pullrow.dev/v1/apis/api_32419f16e597c3c62ded27c0/openapi.json","contract":"https://pullrow.dev/v1/apis/api_32419f16e597c3c62ded27c0/contract.json","page":"https://pullrow.dev/catalog/brazil-tesouro-direto-prices"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Reads the Treasury's single open data file (about 15 MB, daily quotes since 2002) in 250 KB pieces, newest rows first; a wide filter far back in time can take a minute or more.","Rates are annual percentages and prices are in Brazilian reais (BRL) as published; decimal commas are converted to numbers.","The file is refreshed once per business day and holds the morning quotes only.","bond_type must match a Treasury name exactly (ignoring case and accents), for example Tesouro Selic, Tesouro Prefixado, Tesouro IPCA+ or Tesouro IPCA+ com Juros Semestrais.","Open data from Tesouro Nacional: attribute the source when you reuse it.","The Treasury's file server is sometimes slow (a first batch can take over a minute); runs allow up to two minutes per piece read."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"id","label":"ID","description":"Bond type, maturity date and quote date together, unique per quote.","group":"Technical","shown":false,"written":false},{"name":"bond_type","label":"Bond type","description":"Name of the Tesouro Direto bond.","group":"Basics","shown":true,"written":false},{"name":"maturity_date","label":"Maturity date","description":"Day the bond matures.","group":"Dates","shown":true,"written":false},{"name":"base_date","label":"Base date","description":"Day of the quote.","group":"Dates","shown":true,"written":false},{"name":"buy_rate","label":"Buy rate","description":"Annual rate in percent when buying, morning quote.","group":"Basics","shown":true,"written":false},{"name":"sell_rate","label":"Sell rate","description":"Annual rate in percent when selling, morning quote.","group":"Basics","shown":true,"written":false},{"name":"buy_price","label":"Buy price","description":"Unit price in BRL when buying.","group":"Pay","shown":true,"written":false},{"name":"sell_price","label":"Sell price","description":"Unit price in BRL when selling.","group":"Pay","shown":true,"written":false},{"name":"base_price","label":"Base price","description":"Base unit price in BRL for the day.","group":"Pay","shown":true,"written":false}],"inputs":[{"name":"bond_type","label":"Bond type","help":"Exact bond name, for example Tesouro Selic, Tesouro Prefixado or Tesouro IPCA+. Leave empty for all bonds.","example":"Tesouro Selic","written":false},{"name":"start_date","label":"Start date","help":"Only quotes on or after this date (YYYY-MM-DD).","example":"2026-11-01","written":false},{"name":"maturity_year","label":"Maturity year","help":"Only bonds maturing in this year.","example":"2031","written":false}]}},"incidents":[]}