diff --git a/scripts/reconcile_qmt_closed_sells.py b/scripts/reconcile_qmt_closed_sells.py index 214dbf0..0cf25d1 100644 --- a/scripts/reconcile_qmt_closed_sells.py +++ b/scripts/reconcile_qmt_closed_sells.py @@ -104,7 +104,8 @@ def plan(): evidence.append({'code':code,'corrections':corrections,'raw':raw,'late':late,'late_order':late_order, 'late_raw':late_raw,'late_final':final,'position':position,'lots':lots,'parent':parent, 'recovery':{'cutover':cutover,'lot_parents':sorted({lot['instruction_id'] for lot in lots}), - 'closed_terminals':closed_terminals,'balancing_sell':quantity}}) + 'closed_terminals':closed_terminals,'balancing_trade_seq':late_seq, + 'balancing_sell':quantity}}) require(abs(expected_delta - amount) <= Decimal('.02'), '逐笔本金不能解释全部剩余资金差,不写入') return {'evidence': evidence, 'cash_before':capital['cash'], 'qmt_cash':expected_cash, 'cash_delta':amount}