kraken-bot/kraken_bot/Model.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

18 lines
447 B
Python

from abc import ABC, abstractmethod
from kraken_bot.MatrixLogger import MatrixLogger
class Model(ABC):
def __init__(self, interval, ascending):
self.interval = interval
self.ascending = ascending
self.log = MatrixLogger(self.__class__.__name__)
@abstractmethod
def since():
pass
@abstractmethod
def update(self, tradable_asset_pairs, ohlc_data, account_balance, trade_balance):
pass