From 59c1b6710f31b9d496254d5de9598a18e630d190 Mon Sep 17 00:00:00 2001 From: msincenselee Date: Wed, 11 Mar 2020 23:09:33 +0800 Subject: [PATCH] [bug fix] --- vnpy/app/cta_strategy_pro/engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/app/cta_strategy_pro/engine.py b/vnpy/app/cta_strategy_pro/engine.py index ccad4831..87883d12 100644 --- a/vnpy/app/cta_strategy_pro/engine.py +++ b/vnpy/app/cta_strategy_pro/engine.py @@ -768,12 +768,12 @@ class CtaEngine(BaseEngine): if len(vt_accountid) > 0: account = self.main_engine.get_account(vt_accountid) - return account.balance, account.avaliable, round(account.frozen * 100 / (account.balance + 0.01), 2), 100 + return account.balance, account.available, round(account.frozen * 100 / (account.balance + 0.01), 2), 100 else: accounts = self.main_engine.get_all_accounts() if len(accounts) > 0: account = accounts[0] - return account.balance, account.avaliable, round(account.frozen * 100 / (account.balance + 0.01), + return account.balance, account.available, round(account.frozen * 100 / (account.balance + 0.01), 2), 100 else: return 0, 0, 0, 0