- 新增 RuleExpr 字段,支持结构化拼接和自由文本两种模式,二选一互斥 - 删除 RuleCode/FormulaText/ApplicationCode/SourceExpression/IsImplemented/VariableCode/TargetCode - 重命名 FormulaJson→ConditionJson, FormulaExpr→RuleExpr, ImplementationScript→VariableExpr, RuleDescription→RuleText - RuleId(bigint)→RuleIds(varchar) 多规则支持 - FormulaCondition: variableCode(string)→variableId(long), thresholdVariableCode→thresholdVariableId - 新增 44 条变量池 seed 数据 - 设计文档同步更新
125 lines
2.5 KiB
JavaScript
125 lines
2.5 KiB
JavaScript
var main = main || {};
|
|
main.formatOptions={
|
|
"trading": {
|
|
"umprice": {
|
|
"precision": 9,
|
|
"grouping": true,
|
|
"rounded": true,
|
|
"percent": false,
|
|
"minDecimals": 9,
|
|
"maxDecimals": 0
|
|
},
|
|
"umpriceP": {
|
|
"percent": true,
|
|
"precision": 2,
|
|
"grouping": false,
|
|
"rounded": true,
|
|
"minDecimals": 2,
|
|
"maxDecimals": 0
|
|
},
|
|
"umpricePR": {
|
|
"precision": 4,
|
|
"grouping": false,
|
|
"rounded": true,
|
|
"percent": false,
|
|
"minDecimals": 4,
|
|
"maxDecimals": 2
|
|
},
|
|
"tradeSinglePrice": {
|
|
"precision": 2,
|
|
"grouping": true,
|
|
"rounded": true,
|
|
"percent": false,
|
|
"minDecimals": 2,
|
|
"maxDecimals": 0
|
|
},
|
|
"premiumRateP": {
|
|
"percent": true,
|
|
"precision": 2,
|
|
"grouping": false,
|
|
"rounded": true,
|
|
"minDecimals": 2,
|
|
"maxDecimals": 0
|
|
},
|
|
"premiumRate": {
|
|
"precision": 4,
|
|
"grouping": false,
|
|
"rounded": true,
|
|
"percent": false,
|
|
"minDecimals": 4,
|
|
"maxDecimals": 2
|
|
},
|
|
"tradePrice": {
|
|
"precision": 2,
|
|
"grouping": false,
|
|
"rounded": true,
|
|
"percent": false,
|
|
"minDecimals": 2,
|
|
"maxDecimals": 0
|
|
},
|
|
"StockEqvNotional": {
|
|
"precision": 2,
|
|
"grouping": true,
|
|
"rounded": true,
|
|
"percent": false,
|
|
"minDecimals": 2,
|
|
"maxDecimals": 0
|
|
},
|
|
"notional": {
|
|
"precision": 2,
|
|
"grouping": true,
|
|
"rounded": true,
|
|
"percent": false,
|
|
"minDecimals": 2,
|
|
"maxDecimals": 0
|
|
},
|
|
"notionalP": {
|
|
"percent": true,
|
|
"precision": 2,
|
|
"grouping": false,
|
|
"rounded": true,
|
|
"minDecimals": 2,
|
|
"maxDecimals": 0
|
|
},
|
|
"volatility": {
|
|
"precision": 4,
|
|
"grouping": false,
|
|
"rounded": true,
|
|
"percent": false,
|
|
"minDecimals": 4,
|
|
"maxDecimals": 2
|
|
},
|
|
"volatilityP": {
|
|
"percent": true,
|
|
"precision": 2,
|
|
"grouping": false,
|
|
"rounded": true,
|
|
"minDecimals": 2,
|
|
"maxDecimals": 0
|
|
},
|
|
"greek": {
|
|
"precision": 2,
|
|
"grouping": false,
|
|
"rounded": true,
|
|
"percent": false,
|
|
"minDecimals": 2,
|
|
"maxDecimals": 0
|
|
},
|
|
"marginRateP": {
|
|
"percent": true,
|
|
"precision": 2,
|
|
"grouping": false,
|
|
"rounded": true,
|
|
"minDecimals": 2,
|
|
"maxDecimals": 0
|
|
},
|
|
"marginRate": {
|
|
"precision": 4,
|
|
"grouping": false,
|
|
"rounded": true,
|
|
"percent": false,
|
|
"minDecimals": 4,
|
|
"maxDecimals": 2
|
|
}
|
|
}
|
|
}; |