Move more checks from market into checks library

This commit is contained in:
2023-02-17 07:20:28 +00:00
parent da67177a18
commit dd3b3521d9
8 changed files with 274 additions and 87 deletions

View File

@@ -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):