{"uid":"cap_a5i1nRkGXxQjlllVCqhBK","slug":"finmath-bond-convexity-calculator-195b8fd0","name":"finmath Bond Convexity Calculator","description":"Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.","url":"https://finmath.qzqh5rrbkz.workers.dev/v1/bond_convexity","method":"POST","headers":{},"bodySchema":{"type":"object","required":["face","coupon_rate","annual_yield"],"properties":{"face":{"type":"number","description":"face"},"freq":{"type":"number","description":"freq"},"years":{"type":"number","description":"years"},"coupon_rate":{"type":"number","description":"coupon_rate"},"annual_yield":{"type":"number","description":"annual_yield"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"face":1000,"freq":2,"years":10,"coupon_rate":0.05,"annual_yield":0.04},"response":{"meta":{"tool":"bond_convexity","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":75.47246678915187}},"exampleRequest":{"face":1000,"freq":2,"years":10,"coupon_rate":0.05,"annual_yield":0.04},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yaX-UOA9YDCe2FgDD5-BF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the convexity of a bond given face value, coupon rate, yield, maturity, and payment frequency","exampleAgentPrompt":"Calculate the convexity of a $1,000 face value bond with a 5% annual coupon rate, 4% annual yield, 10 years to maturity, and semi-annual payments (freq=2).","exampleUseCases":null,"resultDescription":"Returns a result object containing the computed bond convexity value (a dimensionless measure of the curvature of the price-yield relationship), plus a meta object with calculation details such as inputs echoed back and any auxiliary values.","failureModes":["Missing required fields (face, coupon_rate, or annual_yield) returns a validation error","Negative yield or coupon values may produce unexpected results or errors","Zero years to maturity or zero frequency may cause division-by-zero","Payment is required in USDC via x402 protocol; missing payment returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need exact, deterministic bond convexity arithmetic rather than relying on LLM estimation. Ideal for interest rate risk management, duration-convexity hedging strategies, bond pricing analytics, or any fixed income workflow where numerical precision is critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:46:14.116Z","isFirstParty":false}