[bug fix]
This commit is contained in:
parent
b9a1f08c07
commit
59c1b6710f
@ -768,12 +768,12 @@ class CtaEngine(BaseEngine):
|
|||||||
|
|
||||||
if len(vt_accountid) > 0:
|
if len(vt_accountid) > 0:
|
||||||
account = self.main_engine.get_account(vt_accountid)
|
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:
|
else:
|
||||||
accounts = self.main_engine.get_all_accounts()
|
accounts = self.main_engine.get_all_accounts()
|
||||||
if len(accounts) > 0:
|
if len(accounts) > 0:
|
||||||
account = 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
|
2), 100
|
||||||
else:
|
else:
|
||||||
return 0, 0, 0, 0
|
return 0, 0, 0, 0
|
||||||
|
Loading…
Reference in New Issue
Block a user