保留抵销晚到卖出的逐笔序号
This commit is contained in:
parent
b687a39230
commit
6a10784019
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue