kraken-bot/kraken_bot/TradingStrategy.py
Eric Meehan e2034cfa65 Post log messages to Matrix (#6)
Reverted to MyStrategy instead of Cerebro experiments and implemented base functionality for a Matrix logging mechanism.

Reviewed-on: #6
2025-02-09 15:48:04 +00:00

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