feat: 新增利率收益率 债券指数小数点精度配置

This commit is contained in:
张名锐
2026-07-31 16:26:06 +08:00
parent b0c06dc673
commit a507d0ce66
2 changed files with 5 additions and 1 deletions
@@ -41,6 +41,8 @@ window.main.swapPricePrecision = {
ExRate: { integerDigits: 2, precision: 8 },
Shibor: { integerDigits: 2, precision: 4 },
FixingRepoRate: { integerDigits: 2, precision: 4 },
RateYield: {integerDigits: 6, precision: 8},
BondIndex: {integerDigits: 6, precision: 4},
// TODO: 利率收益率(6+8)、债券指数(6+4)、黄金期货(6+4)待对应的 UnderlyingInstrumentType 枚举确认后启用。
};
@@ -39,7 +39,9 @@ var swapPricePrecision = (function (global) {
AbroadStockIndex: { integerDigits: 8, precision: 4 },
ExRate: { integerDigits: 2, precision: 8 },
Shibor: { integerDigits: 2, precision: 4 },
FixingRepoRate: { integerDigits: 2, precision: 4 }
FixingRepoRate: { integerDigits: 2, precision: 4 },
RateYield: {integerDigits: 6, precision: 8},
BondIndex: {integerDigits: 6, precision: 4},
// TODO: Add InterestYield, BondIndex and GoldFutures after their enum values are confirmed.
});