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