fix(swaptrade): 修复平仓比例显示精度问题
- 调整平仓比例显示精度为4位小数 - 修改掉期利率输入格式配置,设置精度为4并保留尾随零 - 确保数值显示的一致性和准确性
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//otcformat禁止千分位分组
|
||||
window.otcformat.options.disableGrouping = true;
|
||||
|
||||
const inputFormatSwapRate = Object.freeze({ precision: otcformat.trading.premiumRateP.precision, append: '%' });
|
||||
const inputFormatSwapRate = Object.freeze({ precision: 4, append: '%', trimTailZeros: false });
|
||||
const inputFormatTradePrice = Object.freeze({ precision: otcformat.trading.tradePrice.precision, append: '' });
|
||||
const inputFormatTradeAmount = Object.freeze({ precision: otcformat.trading.notional.precision, append: '' });
|
||||
const inputFormatEqvNotional = Object.freeze({ precision: 2, append: '', negative: true, trimTailZeros: false });
|
||||
|
||||
Reference in New Issue
Block a user