Bond Calculator¶
Bond valuation, yield calculations, and fixed-income analysis tools.
Setup¶
from agno.agent import Agent
from enhancedtoolkits.calculators import BondCalculatorTools
agent = Agent(
name="Bond Analyst",
model="gpt-4",
tools=[BondCalculatorTools()]
)
Available Functions¶
calculate_bond_price()- Bond valuation calculationscalculate_bond_yield()- Yield to maturity and current yieldcalculate_duration()- Modified and Macaulay durationcalculate_convexity()- Bond convexity analysis