[bug fix]
This commit is contained in:
parent
6a6d6ab19d
commit
9f7cf0c2b5
@ -1483,7 +1483,7 @@ class CtaSpreadTemplate(CtaTemplate):
|
|||||||
f'今仓{self.act_pos.short_td}/昨{self.act_pos.short_yd}, 不满足{act_close_volume}')
|
f'今仓{self.act_pos.short_td}/昨{self.act_pos.short_yd}, 不满足{act_close_volume}')
|
||||||
return []
|
return []
|
||||||
if self.pas_pos.long_pos < pas_close_volume:
|
if self.pas_pos.long_pos < pas_close_volume:
|
||||||
self.write_error(f'账号 {self.pas_vt_symbol} 多单持仓{self.pas_pos.longt_pos}'
|
self.write_error(f'账号 {self.pas_vt_symbol} 多单持仓{self.pas_pos.long_pos}'
|
||||||
f'今仓{self.pas_pos.long_td}/昨{self.pas_pos.long_yd}, 不满足{act_close_volume}')
|
f'今仓{self.pas_pos.long_td}/昨{self.pas_pos.long_yd}, 不满足{act_close_volume}')
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user