Tesouro Direto
Access Brazilian government bond data, current yields, and ANBIMA term structures directly within LLM workflows.
Tesouro Direto provides seamless access to Brazilian government fixed-income securities and ANBIMA yield curves for LLM agents. Built as a standalone Python counterpart to the R package GetTDData, it interfaces directly with the official Tesouro Transparente CKAN open data portal without external dependencies. The server fetches historical daily prices, current rate snapshots, per-maturity statistics, and implied inflation curves using token-efficient data formatting, automated daily local caching, and fallback resilience.
Key Features
01Access historical prices, daily yields, and current rate snapshots for Brazilian government bonds (LFT, LTN, NTN-B, etc.).
02Extract ANBIMA term structures (ETTJ) including real, nominal, and implicit-inflation yield curves.
03Deliver token-efficient CSV outputs with optional monthly and yearly aggregations for long time series.
04Implement daily local caching with automatic fallback handling during portal downtimes.
05Provide built-in bond catalog resources and pre-configured analysis prompts for AI agents.
067 GitHub stars
Use Cases
01Analyze historical yield trends and performance metrics for specific Brazilian government bonds.
02Compare individual bond returns against the ANBIMA benchmark real and nominal yield curves.
03Evaluate Brazilian market-implied inflation expectations across various maturity dates.