{"openapi":"3.1.0","info":{"title":"Bond Price and Yield Calculator (2016)","version":"2016.1.0","description":"Prices a fixed-coupon bond from maturity, coupon rate, yield, par value and payment frequency, or solves the yield that matches a given price. selectCells reads at most 256 cells per request (including repeated cells). For licenseClass reference-only, cellOverrides, selectCells and trace may address only declared fio.yaml input/output port cells; trace traversal stops at that boundary. Verification level: scenario-independent-arithmetic. Price and yield come from Formualizer’s JavaScript port of the workbook’s VBA macro; the macro itself does not run.","x-formualizer-Provenance":{"publisher":"National Taiwan University (Prof. Jr-Yan Wang)","publisherPageUrl":"https://homepage.ntu.edu.tw/~jryanwang/courses/Financial%20Computation%20or%20Financial%20Engineering%20(graduate%20level)/FC_graduate.htm","sourceUrl":"https://homepage.ntu.edu.tw/~jryanwang/courses/Mathematics%20for%20Management%20(undergraduate%20level)/Calculate%20Bond%20Prices.xlsm","workbookFilename":"Calculate-Bond-Prices-macro-free.xlsx","workbookSha256":"c5591d0a1f219af0b41034892e6350d6f947008b4d931722f1dcd7a2e93b354e","workbookBytes":8541,"format":"xlsx","licenseClass":"open-academic","upstreamArtifact":{"sourceUrl":"https://homepage.ntu.edu.tw/~jryanwang/courses/Mathematics%20for%20Management%20(undergraduate%20level)/Calculate%20Bond%20Prices.xlsm","workbookFilename":"Calculate Bond Prices.xlsm","workbookSha256":"ff0fad5943b81a900481b21c5e6a3c9984e0d6765950de10e610d50c87a6a920","workbookBytes":28652,"format":"xlsm"},"derivativeNotes":"Remove the VBA project, the two ActiveX controls with their drawings and preview images, and the matching relationships and content types; mark the workbook as xlsx. No cell, formula or cache edits.","editionEvidence":"The file properties give a last-modified date of 2016-09-18.","dateNotes":"The edition is the file's last-modified year, not a confirmed publication date.","retrievedAt":"2026-11-22"},"x-formualizer-VerificationLevel":"scenario-independent-arithmetic","x-formualizer-WorkbookDownload":{"mode":"catalog-bytes","sourceUrl":"https://homepage.ntu.edu.tw/~jryanwang/courses/Mathematics%20for%20Management%20(undergraduate%20level)/Calculate%20Bond%20Prices.xlsm","sha256":"c5591d0a1f219af0b41034892e6350d6f947008b4d931722f1dcd7a2e93b354e","bytes":8541,"upstreamArtifact":{"sourceUrl":"https://homepage.ntu.edu.tw/~jryanwang/courses/Mathematics%20for%20Management%20(undergraduate%20level)/Calculate%20Bond%20Prices.xlsm","workbookFilename":"Calculate Bond Prices.xlsm","workbookSha256":"ff0fad5943b81a900481b21c5e6a3c9984e0d6765950de10e610d50c87a6a920","workbookBytes":28652,"format":"xlsm"}},"x-formualizer-Flows":[{"id":"price_bond","title":"Price a bond from its yield","kind":"single","inputPorts":["time_to_maturity_years","annual_coupon_rate","discount_interest_rate","par_value","payment_frequency"],"outputPorts":["bond_price"]},{"id":"price_with_check_table","title":"Price a bond and compare with the check table","kind":"single","inputPorts":["time_to_maturity_years","annual_coupon_rate","discount_interest_rate","par_value","payment_frequency"],"outputPorts":["bond_price","periodic_coupon_payment","check_sheet_price_20_payments"]},{"id":"solve_yield","title":"Solve the yield from a price","kind":"single","inputPorts":["time_to_maturity_years","annual_coupon_rate","par_value","payment_frequency","market_price"],"outputPorts":["solved_yield"]}]},"paths":{"/evaluate":{"post":{"operationId":"evaluateWorkbook","parameters":[{"name":"tablePort","in":"query","description":"Table input port receiving NDJSON rows or Arrow IPC; omit for scenario envelopes","schema":{"type":"string","enum":[]}},{"name":"flow","in":"query","description":"Named input/output flow (default: price_bond)","schema":{"type":"string","enum":["price_bond","price_with_check_table","solve_yield"],"default":"price_bond"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inputs":{"$ref":"#/components/schemas/Inputs"}},"required":["inputs"]}},"application/x-ndjson":{"schema":{"type":"string","description":"Table rows with tablePort, otherwise scenario envelopes"}},"application/vnd.apache.arrow.stream":{"schema":{"type":"string","format":"binary"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"Workbook outputs","content":{"application/json":{"schema":{"type":"object","properties":{"outputs":{"$ref":"#/components/schemas/Outputs"}}}},"application/x-ndjson":{"schema":{"type":"string","description":"Scenario results, one JSON envelope per line"}}}}}}},"/evaluate-batch":{"post":{"operationId":"evaluateWorkbookBatch","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scenarios":{"type":"array","items":{"type":"object","properties":{"id":{},"inputs":{"$ref":"#/components/schemas/Inputs"}},"required":["inputs"]}}},"required":["scenarios"]}},"application/x-ndjson":{"schema":{"type":"string","description":"Scenario envelopes, one per line"}}}},"responses":{"200":{"description":"Scenario results (including per-scenario errors)","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{},"outputs":{"$ref":"#/components/schemas/Outputs"},"error":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}}},"application/x-ndjson":{"schema":{"type":"string"}}}}}}},"/ports":{"get":{"operationId":"describePorts","responses":{"200":{"description":"Workbook manifest and ports","content":{"application/json":{"schema":{"type":"object","properties":{"manifest":{"type":"object"},"ports":{"type":"array","items":{"type":"object"}}}}}}}}}},"/types.d.ts":{"get":{"operationId":"typeDeclarations","responses":{"200":{"description":"TypeScript Inputs, Outputs and Client declarations","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/v1/models/{slug}/{edition}/workbook.xlsx":{"get":{"summary":"Download catalog workbook or follow publisher redirect","description":"Download mode: catalog-bytes. Reference-only workbooks redirect to the publisher. The sha256 and bytes metadata pin the catalog file, which may be a sanitized derivative. When present, upstreamArtifact separately pins the publisher file. fio.yaml remains downloadable.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","enum":["bond-price-yield"]}},{"name":"edition","in":"path","required":true,"schema":{"type":"string","enum":["2016"]}}],"responses":{"200":{"description":"Catalog workbook bytes; upstreamArtifact separately identifies publisher bytes when sanitized","headers":{"x-workbook-sha256":{"schema":{"type":"string"},"description":"c5591d0a1f219af0b41034892e6350d6f947008b4d931722f1dcd7a2e93b354e"},"x-workbook-bytes":{"schema":{"type":"integer"},"description":"8541"}}}}}}},"components":{"schemas":{"Inputs":{"type":"object","properties":{"time_to_maturity_years":{"type":"number","minimum":0.5,"maximum":100,"description":"Time to maturity in years","default":10},"annual_coupon_rate":{"type":"number","minimum":0,"maximum":1,"description":"Annual coupon rate as a decimal (0.08 is 8%)","default":0.08},"discount_interest_rate":{"type":"number","minimum":0,"maximum":1,"description":"Annual discount rate (yield) as a decimal","default":0.4347129575908184},"par_value":{"type":"number","minimum":0,"description":"Par (face) value","default":100},"payment_frequency":{"type":"integer","minimum":1,"maximum":2,"description":"Coupon payments per year (1 or 2)","default":2},"market_price":{"type":"number","minimum":0,"description":"Bond price to solve the yield for","default":20}},"required":[],"additionalProperties":false},"Outputs":{"type":"object","properties":{"bond_price":{"type":"number","description":"Bond price: discounted coupons plus discounted par"},"solved_yield":{"type":"number","description":"Annual yield that reproduces the market price, found by bisection between 0 and 1"},"periodic_coupon_payment":{"type":"number","description":"Coupon paid each period"},"check_sheet_price_20_payments":{"type":"number","description":"Price from the workbook's own 20-payment check table; comparable only when maturity times frequency is 20"}},"required":["bond_price","solved_yield","periodic_coupon_payment","check_sheet_price_20_payments"],"additionalProperties":false}}}}