- Introduced a modular repository structure by creating separate repository classes for `Bot`, `MarketData`, and `RawTrade`, improving code organization and maintainability. - Updated the `DatabaseOperations` class to utilize the new repository classes, enhancing the abstraction of database interactions. - Refactored the `.env` file to update database connection parameters and add new logging and health monitoring configurations. - Modified the `okx_config.json` to change default timeframes for trading pairs, aligning with updated requirements. - Added comprehensive unit tests for the new repository classes, ensuring robust functionality and reliability. These changes improve the overall architecture of the database layer, making it more scalable and easier to manage.
15 lines
444 B
Python
15 lines
444 B
Python
"""
|
|
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
|
|
|
|
__all__ = [
|
|
"BaseRepository",
|
|
"DatabaseOperationError",
|
|
"BotRepository",
|
|
"MarketDataRepository",
|
|
"RawTradeRepository",
|
|
] |