Skip to content

Commit 68db190

Browse files
committed
Initial commit for Strategy
1 parent 827a2d6 commit 68db190

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import logging
2+
from typing import Dict, Any
3+
from abc import abstractmethod
4+
5+
from investing_bot_framework.core.workers import ScheduledWorker
6+
7+
logger = logging.getLogger(__name__)
8+
9+
10+
class Strategy(ScheduledWorker):
11+
"""
12+
Class Strategy
13+
"""
14+
15+
@abstractmethod
16+
def apply_strategy(self) -> None:
17+
pass
18+
19+
def work(self, **kwargs: Dict[str, Any]) -> None:
20+
logger.info("Starting strategy {}".format(self.get_id()))
21+
self.apply_strategy()
22+
23+

0 commit comments

Comments
 (0)