Reverted to MyStrategy instead of Cerebro experiments and implemented base functionality for a Matrix logging mechanism. Reviewed-on: #6
17 lines
493 B
Python
17 lines
493 B
Python
import os
|
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
from kraken_bot.MatrixLogger import MatrixLogger
|
|
|
|
class TradingStrategy(ABC):
|
|
def __init__(self):
|
|
self.investment_count = int(os.getenv('INVESTMENT_COUNT'))
|
|
self.investment_volume = float(os.getenv('INVESTMENT_VOLUME'))
|
|
self.log = MatrixLogger(self.__class__.__name__)
|
|
self.orders = []
|
|
|
|
@abstractmethod
|
|
def update(self, tradable_asset_pairs, ohlc_data, market_analysis, account_balance):
|
|
pass
|