From 9f7cf0c2b5d6f4a8e28af4c21851ec81ed420300 Mon Sep 17 00:00:00 2001 From: msincenselee Date: Mon, 10 Jan 2022 09:45:05 +0800 Subject: [PATCH] [bug fix] --- vnpy/app/cta_strategy_pro/template_spread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/app/cta_strategy_pro/template_spread.py b/vnpy/app/cta_strategy_pro/template_spread.py index a6dd8d93..76b292c9 100644 --- a/vnpy/app/cta_strategy_pro/template_spread.py +++ b/vnpy/app/cta_strategy_pro/template_spread.py @@ -1483,7 +1483,7 @@ class CtaSpreadTemplate(CtaTemplate): f'今仓{self.act_pos.short_td}/昨{self.act_pos.short_yd}, 不满足{act_close_volume}') return [] 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}') return []