Refactor technical indicators module and enhance structure
- Introduced a dedicated sub-package for technical indicators under `data/common/indicators/`, improving modularity and maintainability. - Moved `TechnicalIndicators` and `IndicatorResult` classes to their respective files, along with utility functions for configuration management. - Updated import paths throughout the codebase to reflect the new structure, ensuring compatibility. - Added comprehensive safety net tests for the indicators module to verify core functionality and prevent regressions during refactoring. - Enhanced documentation to provide clear usage examples and details on the new package structure. These changes improve the overall architecture of the technical indicators module, making it more scalable and easier to manage.
This commit is contained in:
@@ -27,16 +27,16 @@
|
||||
- [x] 1.9 Delete the original `data/common/aggregation.py` file.
|
||||
- [x] 1.10 Run tests to verify the aggregation logic still works as expected.
|
||||
|
||||
- [ ] 2.0 Refactor `indicators.py` into a dedicated sub-package.
|
||||
- [ ] 2.1 Create safety net tests for indicators module.
|
||||
- [ ] 2.2 Create a new directory `data/common/indicators`.
|
||||
- [ ] 2.3 Create `data/common/indicators/__init__.py` to mark it as a package.
|
||||
- [ ] 2.4 Move the `TechnicalIndicators` class to `data/common/indicators/technical.py`.
|
||||
- [ ] 2.5 Move the `IndicatorResult` class to `data/common/indicators/result.py`.
|
||||
- [ ] 2.6 Move the utility functions to `data/common/indicators/utils.py`.
|
||||
- [ ] 2.7 Update `data/common/indicators/__init__.py` to expose all public classes and functions.
|
||||
- [ ] 2.8 Delete the original `data/common/indicators.py` file.
|
||||
- [ ] 2.9 Run tests to verify the indicators logic still works as expected.
|
||||
- [x] 2.0 Refactor `indicators.py` into a dedicated sub-package.
|
||||
- [x] 2.1 Create safety net tests for indicators module.
|
||||
- [x] 2.2 Create a new directory `data/common/indicators`.
|
||||
- [x] 2.3 Create `data/common/indicators/__init__.py` to mark it as a package.
|
||||
- [x] 2.4 Move the `TechnicalIndicators` class to `data/common/indicators/technical.py`.
|
||||
- [x] 2.5 Move the `IndicatorResult` class to `data/common/indicators/result.py`.
|
||||
- [x] 2.6 Move the utility functions to `data/common/indicators/utils.py`.
|
||||
- [x] 2.7 Update `data/common/indicators/__init__.py` to expose all public classes and functions.
|
||||
- [x] 2.8 Delete the original `data/common/indicators.py` file.
|
||||
- [x] 2.9 Run tests to verify the indicators logic still works as expected.
|
||||
|
||||
- [ ] 3.0 Refactor `validation.py` for better modularity.
|
||||
- [ ] 3.1 Create safety net tests for validation module.
|
||||
|
||||
Reference in New Issue
Block a user