[bug fix]

This commit is contained in:
msincenselee 2020-02-13 09:38:44 +08:00
parent 263e226c95
commit a2ba747859

View File

@ -187,7 +187,7 @@ class RiskManagerEngine(BaseEngine):
round(account.frozen * 100 / (account.balance + 0.01), 2), \
self.percent_limit
if len(self.account_dict.values()) > 0:
account = self.account_dict.values()[0]
account = list(self.account_dict.values())[0]
return account.balance, \
account.available, \
round(account.frozen * 100 / (account.balance + 0.01), 2), \