{"uid":"cap_z18wSIhcwS54Sul3a21A2","slug":"finmath-bond-price-calculator-8afc0085","name":"finmath Bond Price 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_price","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_price","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":1081.7571667229854}},"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_vFtD6mxuwNp72U0x3bAr_","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 fair price of a fixed-coupon bond given face value, coupon rate, yield, maturity, and payment frequency using exact deterministic arithmetic.","exampleAgentPrompt":"What's the price of a $1,000 face-value bond with a 5% annual coupon rate, paying semi-annually, maturing in 10 years, if the annual yield is 6%?","exampleUseCases":null,"resultDescription":"Returns a result object with the computed bond price (present value of all cash flows discounted at the given yield) and a meta object with details about the calculation context.","failureModes":["Missing required field (face, coupon_rate, or annual_yield) returns a 4xx validation error","Negative or zero yield/face values may cause arithmetic errors or unexpected results","Implausible inputs (e.g. yield > 100 or years = 0) may return edge-case results without explicit error","Payment failure or insufficient USDC balance returns HTTP 402"],"whenToPreferThis":"Use this endpoint when you need mathematically exact, deterministic bond pricing that LLMs cannot reliably compute in their heads — especially when coupon frequency, precise yield-to-price mapping, or reproducibility across calls matters. Prefer over LLM arithmetic for any production or financial-reporting use case.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:56:20.358Z","isFirstParty":false}