golden_互换结清后待实现归零.json 的 RealizedPnl 0->8.219(f4ffe710 修复后未重录,8.219为正确值); SwapReEodDeleteManualCashRecordTest.Step1 恢复 [Ignore](与类头契约一致,避免污染入库 golden)。
35 lines
1015 B
JSON
35 lines
1015 B
JSON
{
|
|
"Scenario": "互换结清后待实现归零",
|
|
"Description": "攒10天后互换,InterestIncomeSum应≈当天新计",
|
|
"Input": {
|
|
"Trade": null,
|
|
"Positions": null,
|
|
"PreEodPositions": null,
|
|
"FlowEvents": null,
|
|
"PosiLongNotional": 10000.0,
|
|
"PosiShortNotional": null,
|
|
"CloseNational": null,
|
|
"GrossPrice": null,
|
|
"OrginPv": 10000.0,
|
|
"SettleDate": "2026-05-07T00:00:00"
|
|
},
|
|
"Expected": {
|
|
"PositionCount": 1,
|
|
"EodPositions": [
|
|
{
|
|
"PositionId": 1001,
|
|
"InterestIncomeSum": 0.821917808219178082191780822,
|
|
"InterestProfitSum": 0.821917808219178082191780822,
|
|
"TdInterestIncome": 0.8219178082191780821917808219,
|
|
"TdCloseInterest": 8.21917808219,
|
|
"TdInterestPrincipal": 10000.0,
|
|
"RealizedInterest": 8.21917808219,
|
|
"RealizedPnl": 8.21917808219,
|
|
"SwapPositionValue": 0.821917808219178082191780822,
|
|
"InterestFeeSum": 0.0
|
|
}
|
|
]
|
|
},
|
|
"Source": "synthetic",
|
|
"RecordedAt": null
|
|
} |