Coverage for source/agent/agents/trading_algorithm_base.py: 83%
6 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-08-01 20:51 +0000
« prev ^ index » next coverage.py v7.8.0, created at 2025-08-01 20:51 +0000
1# agent/agents/trading_algorithm_base.py
3# global imports
4import numpy as np
5from abc import ABC, abstractmethod
7# local imports
9class TradingAlgorithmBase(ABC):
10 """"""
12 @abstractmethod
13 def perform_action(self, trend_predictions: int, market_data: np.ndarray) -> int:
14 """
15 Performs the trading action based on the trend predictions and market data.
17 Parameters:
18 trend_predictions (np.ndarray): The predicted trends.
19 market_data (np.ndarray): The current market data.
21 Returns:
22 (int): The result of the trading action.
23 """
25 pass