Compare commits
2 Commits
0bf3329b61
...
8d9fe15346
Author | SHA1 | Date | |
---|---|---|---|
8d9fe15346 | |||
2b6f00a889 |
@ -25,6 +25,8 @@ async def job():
|
||||
for strategy in strategies:
|
||||
log.debug(f"Running strategy {strategy.name}")
|
||||
ams = active_management.ActiveManagement(strategy) # noqa
|
||||
ams.run_checks()
|
||||
ams.execute_actions()
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
@ -62,6 +62,7 @@ class ActiveManagement(object):
|
||||
self.balance_usd = self.strategy.account.client.get_balance(
|
||||
return_usd=True
|
||||
)
|
||||
return self.balance_usd
|
||||
else:
|
||||
return self.balance_usd
|
||||
else:
|
||||
@ -69,6 +70,7 @@ class ActiveManagement(object):
|
||||
self.balance = self.strategy.account.client.get_balance(
|
||||
return_usd=False
|
||||
)
|
||||
return self.balance
|
||||
else:
|
||||
return self.balance
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user