Tools / Macro
Bond yields
get_bond_yields
Government bond yields in one call: the full US Treasury par curve with 1-day to 1-year moves, shape and 2s10s/3m10s/5s30s spreads; TIPS real yields and breakevens; 10-year (and 2-year where quoted) yields for 18 countries with spreads to Bunds and Treasuries; quoted curves for the UK, Germany, Japan, France, Italy and Spain; optional daily US history. Yields in percent, changes in basis points.
Questions it answers
- Is the US yield curve still inverted, and how much did the 10-year move this month?
- Compare Italian and Spanish 10-year spreads over Bunds.
Parameters
| Parameter | Description |
|---|---|
scopeall | us | global = "all" | |
history_monthsinteger = 0 | Months of daily US 2Y/10Y/30Y closes to include (0 = none) |
Use it from your agent
Add the TradingData MCP URL to Claude, ChatGPT, Cursor or any MCP client, then ask in plain words. The model sees this tool's description and calls it with the right parameters.
https://mcp.tradingdata.io