/
fgtmenow
/
tb
Обзор
Документация
Войти
/
fgtmenow
/
tb
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
bot/strategy/base/BaseStrategy.py
18 строк
631 B
Azarev Artem
order placement
19 апр 2025, 01:38
19 апр 2025, 01:38
cd7faee
Код
Авторство
О чём код?
from _common.domain.model.OrderToPlace import OrderToPlace from bot.objects.InstrumentCache import InstrumentCache from bot.objects.Store import Store class BaseStrategy: def __init__(self, name: str): self.name = name self.store = Store() self.model = self.store.model self.instrumentCache = InstrumentCache() def check_entry(self, symbol: str) -> OrderToPlace | None: raise NotImplementedError("This method should be implemented by subclasses") def check_bar(self, symbol: str) -> bool: raise NotImplementedError("This method should be implemented by subclasses")