Goal
Refactor TimeSeriesService into MarketDataService and add a storage-first workflow.
Why
ARGUS should use stored historical data before calling external APIs again. This keeps data access centralized and prepares the project for analytics and reporting workflows that can reuse saved market data.
Scope
- Rename or refactor
TimeSeriesService into MarketDataService
- Check DuckDB for requested historical price bars first
- Return stored price bars if the full requested data is available
- Call the API client only if no matching stored data is found
- Normalize fetched API data into internal models
- Save fetched historical data to DuckDB before returning it
- Keep client access inside
MarketDataService
Out of scope
- Partial range handling: if only part of the requested data exists, treat it as not found
Acceptance criteria
Goal
Refactor
TimeSeriesServiceintoMarketDataServiceand add a storage-first workflow.Why
ARGUS should use stored historical data before calling external APIs again. This keeps data access centralized and prepares the project for analytics and reporting workflows that can reuse saved market data.
Scope
TimeSeriesServiceintoMarketDataServiceMarketDataServiceOut of scope
Acceptance criteria
TimeSeriesServiceis refactored or renamed toMarketDataServiceMarketDataServiceNote
Priority: Should