Bond Calculator

Web API 仕様

Bond Calculator の計算機能を Web API として公開しています。
以下の Web API を Excelで簡単に試してみることができます。⇒ サンプル ダウンロード

日本国債 - 固定利付債


価格/利回り計算API
リクエスト URL https://financierjgbapi.azurewebsites.net/api/jgbfixedrate/GetPriceAndYield
サンプルURL https://financierjgbapi.azurewebsites.net/api/jgbfixedrate/GetPriceAndYield?compoundYieldPercent=0.15&couponRatePercent=0.1&maturityDate=2050-06-20&tradeDate=2019-08-26
パラメータ 価格price
単利(%)simpleYieldPercent
複利(%)compoundYieldPercent
クーポン率(%)couponRatePercent
償還日maturityDate
約定日tradeDate
レスポンス フォーマット JSON
サンプルJSON {"price":98.509543786472278, "simpleYieldPercent":0.15031752510178389, "compoundYieldPercent":0.15}
計算結果 価格 pricenumber 型
単利(%) simpleYieldPercentnumber 型
複利(%) compoundYieldPercentnumber 型
経過利息計算API
リクエスト URL https://financierjgbapi.azurewebsites.net/api/jgbfixedrate/GetAccruedInterest
サンプルURL https://financierjgbapi.azurewebsites.net/api/jgbfixedrate/GetAccruedInterest?lastCouponDate=2019-06-20&couponRatePercent=0.1&tradeDate=2019-08-26
パラメータ 前回利払日lastCouponDate
クーポン率(%)couponRatePercent
約定日tradeDate
レスポンス フォーマット JSON
サンプルJSON {"settlementDate":"2019-08-27T00:00:00","lapsedDays":68,"accruedInterest":0.0186301}
計算結果 受渡日 settlementDateDate 型
経過日数 lapsedDaysnumber 型
経過利息 accruedInterestnumber 型
価格感応度計算API
リクエスト URL https://financierjgbapi.azurewebsites.net/api/jgbfixedrate/GetSensitivity
サンプルURL https://financierjgbapi.azurewebsites.net/api/jgbfixedrate/GetSensitivity?maturityDate=2050-06-20&couponRatePercent=0.1&price=99&tradeDate=2019-08-26
パラメータ 償還日maturityDate
クーポン率(%)couponRatePercent
価格price
約定日tradeDate
レスポンス フォーマット JSON
サンプルJSON {"yearFracToMaturity":31.004109589041096,"duration":30.489632780379,"convexity":956.63032273437136}
計算結果 残存年数 yearFracToMaturitynumber 型
デュレーション durationnumber 型
コンベクシティ convexitynumber 型
キャッシュフロー計算API
リクエスト URL https://financierjgbapi.azurewebsites.net/api/jgbfixedrate/GetShiftedCashflow
サンプルURL https://financierjgbapi.azurewebsites.net/api/jgbfixedrate/GetShiftedCashflow?firstCouponDate=2018-06-20&maturityDate=2050-06-20&couponRatePercent=0.1&tradeDate=2019-08-26
パラメータ 初回利払日firstCouponDate
償還日maturityDate
クーポン率(%)couponRatePercent
約定日tradeDate
レスポンス フォーマット JSON
サンプルJSON [{"period":{"start":"2019-08-26T00:00:00","end":"2019-12-20T00:00:00"}, "yearFraction":0.31780821917808222, "accYearFraction":0.31780821917808222, "amount":0.05}, {"period":{"start":"2019-12-20T00:00:00","end":"2020-06-22T00:00:00"}, "yearFraction":0.50684931506849318, "accYearFraction":0.8246575342465754, "amount":0.05}]
計算結果 スタート日 period.startDate 型
エンド日 period.endDate 型
期間年数 yearFractionnumber 型
年数 accyearFractionnumber 型
金額 amountnumber 型