Ngat Config
Overview
Control how runtime settings are modeled and loaded. Use this skill when schema evolution or config correctness impacts startup and worker behavior.
Submodules
config/settings.py: Pydantic models for feed/broker/storage/strategy/settings.config/config.yaml: runtime config (symbols, base/derived timeframes, indicators).config/sample_config.yamland rootconfig.yaml: alternates/examples.
Pros
- Keep typed config contract through Pydantic.
- Keep feed/broker/storage abstraction explicit at configuration level.
Cons
- Keep timeframe validator too narrow for current YAML (
1d/1w/1M/1yunsupported by validator). - Keep duplicate config files with drift risk.
Caveats
- Treat env interpolation as global and invasive in CLI loader.
- Keep naming consistent between
dayvs1d; mixed vocabulary causes runtime failures. - Assume indicators list may be consumed by multiple services; avoid shape changes without fallback.
Forward Features
- Add schema versioning and migration helpers.
- Add strict timeframe enum shared by config, aggregator, API, and frontend.
- Add startup config lint command with actionable error messages.