Ngat Cli
Overview
Control process startup and command semantics for the trading engine. Use this skill when command UX, startup order, and runtime wiring need edits.
Submodules
start: load config, login, build feed/broker/storage/strategies, createEngine, run forever.stop: placeholder command; does not terminate remote workers.generate-timeframe: startTimeframeGeneratorWorkerthrough Ray.
Pros
- Keep runtime composition in one entrypoint.
- Keep environment substitution logic close to command parsing.
Cons
- Mix command setup and domain wiring in one file.
- Duplicate login calls and partial unused variables.
Caveats
yaml.SafeLoaderhook overrides all strings to run env substitution; treat as fragile.startenters infinite loop afterengine.start(); Ctrl+C is only local exit path.stopis informational only; do not rely on it for process control.
Forward Features
- Add explicit lifecycle commands (
status,shutdown,restart-worker). - Add config validation command before startup.
- Add dry-run smoke test command that checks Redis and broker connectivity only.