Move more checks from market into checks library
This commit is contained in:
@@ -5,8 +5,8 @@ from asgiref.sync import sync_to_async
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from core.models import Strategy
|
||||
from core.util import logs
|
||||
from core.trading import active_management
|
||||
from core.util import logs
|
||||
|
||||
log = logs.get_logger("scheduling")
|
||||
|
||||
@@ -24,8 +24,7 @@ async def job():
|
||||
log.debug(f"Found {len(strategies)} strategies")
|
||||
for strategy in strategies:
|
||||
log.debug(f"Running strategy {strategy.name}")
|
||||
ams = active_management.ActiveManagement(strategy)
|
||||
|
||||
ams = active_management.ActiveManagement(strategy) # noqa
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
||||
Reference in New Issue
Block a user