2025-06-06 21:54:45 +08:00
|
|
|
"""
|
|
|
|
|
This package contains all the repository classes for database operations.
|
|
|
|
|
"""
|
|
|
|
|
from .base_repository import BaseRepository, DatabaseOperationError
|
|
|
|
|
from .bot_repository import BotRepository
|
|
|
|
|
from .market_data_repository import MarketDataRepository
|
|
|
|
|
from .raw_trade_repository import RawTradeRepository
|
4.0 - 3.0 Implement strategy analysis tables and repository for backtesting
- Added `StrategyRun` and `StrategySignal` models to track strategy execution sessions and generated signals, respectively, ensuring a clear separation from live trading data.
- Introduced `StrategyRepository` for managing database operations related to strategy runs and signals, including methods for creating, updating, and retrieving strategy data.
- Updated `DatabaseOperations` to integrate the new repository, enhancing the overall architecture and maintaining consistency with existing database access patterns.
- Enhanced documentation to reflect the new database schema and repository functionalities, ensuring clarity for future development and usage.
These changes establish a robust foundation for strategy analysis and backtesting, aligning with project goals for modularity, performance, and maintainability.
2025-06-12 15:29:14 +08:00
|
|
|
from .strategy_repository import StrategyRepository
|
2025-06-06 21:54:45 +08:00
|
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
|
"BaseRepository",
|
|
|
|
|
"DatabaseOperationError",
|
|
|
|
|
"BotRepository",
|
|
|
|
|
"MarketDataRepository",
|
|
|
|
|
"RawTradeRepository",
|
4.0 - 3.0 Implement strategy analysis tables and repository for backtesting
- Added `StrategyRun` and `StrategySignal` models to track strategy execution sessions and generated signals, respectively, ensuring a clear separation from live trading data.
- Introduced `StrategyRepository` for managing database operations related to strategy runs and signals, including methods for creating, updating, and retrieving strategy data.
- Updated `DatabaseOperations` to integrate the new repository, enhancing the overall architecture and maintaining consistency with existing database access patterns.
- Enhanced documentation to reflect the new database schema and repository functionalities, ensuring clarity for future development and usage.
These changes establish a robust foundation for strategy analysis and backtesting, aligning with project goals for modularity, performance, and maintainability.
2025-06-12 15:29:14 +08:00
|
|
|
"StrategyRepository",
|
2025-06-06 21:54:45 +08:00
|
|
|
]
|