{"uid":"cap_Yq8CP_SEXV5V4YmzPxdPA","slug":"bond-price-yield-calculator-24k-labs-d2091d4f","name":"Bond Price & Yield Calculator (24K Labs)","description":"Clean price or yield-to-maturity plus current yield, Macaulay and modified duration and convexity from coupon, face, maturity and coupon frequency.","url":"https://api.24klabs.ai/api/v1/bond-price-yield","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ytm":{"type":"number"},"face":{"type":"number"},"frequency":{"type":"number"},"coupon_rate":{"type":"number"},"years_to_maturity":{"type":"number"}}},"responseSchema":{"type":"json","example":{"price":925.61,"current_yield":5.4,"modified_duration":7.66}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XDnj6jm58oC_x5Nvz5-Ag","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates bond price or yield-to-maturity, current yield, Macaulay duration, modified duration, and convexity from coupon rate, face value, maturity, and coupon frequency.","exampleAgentPrompt":"Calculate the price, yield-to-maturity, Macaulay duration, modified duration, and convexity for a bond with a 5% annual coupon, $1,000 face value, 10 years to maturity, and semi-annual coupon payments, given a yield of 4.5%.","exampleUseCases":[{"title":"Corporate bond pricing for portfolio","prompt":"I'm evaluating a corporate bond with a 6% coupon paid semi-annually, $1,000 face value, and 7 years until maturity. The market yield is 5.8%. Can you give me the clean price, current yield, and duration?"},{"title":"Interest rate sensitivity analysis","prompt":"I need to know how sensitive my Treasury bond is to interest rate moves — it has a 3% annual coupon, $10,000 face value, matures in 15 years, and yields 3.5%. Get me the modified duration and convexity."},{"title":"Yield-to-maturity calculation from price","prompt":"A bond is trading at $950 with a $1,000 face value, 4% semi-annual coupon, and 5 years to maturity. What's the yield-to-maturity and Macaulay duration?"}],"resultDescription":"Returns the computed bond price or yield-to-maturity, current yield, Macaulay duration, modified duration, and convexity as numerical values, enabling full fixed-income analytics from basic bond parameters.","failureModes":["Invalid coupon frequency causes computation error","Maturity date in the past yields undefined results","Yield or price inputs out of realistic bounds return errors","Missing required fields (coupon, face, maturity) return 400 validation errors","Negative coupon rate or face value rejected"],"whenToPreferThis":"Choose this endpoint when you need fast, precise fixed-income analytics — price, yield, duration, and convexity — without running a full Bloomberg terminal or building your own bond math. Ideal for portfolio risk tools, agent-driven financial analysis, or any workflow that needs bond sensitivity metrics on demand at low per-call cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:19.525Z","isFirstParty":false}