Export Command¶
Prerequisites¶
- Explicit date bounds are required.
- Strategy loads successfully.
- Runtime BRK-wide parquet available (
STACKSATS_ANALYTICS_PARQUET, managed default~/.stacksats/data/bitcoin_analytics.parquet, or./bitcoin_analytics.parquet).
Command¶
stacksats strategy export \
--strategy simple-zscore \
--start-date 2024-01-01 \
--end-date 2024-12-31 \
--output-dir output
Built-in strategy catalog and expected behavior: Strategies.
Expected output¶
- Artifacts under
output/<strategy_id>/<version>/<run_id>/. - Includes
weights.csv,timeseries_schema.md, andartifacts.json.
Key options¶
--strategy-config <path>: strategy params JSON.--output-dir <dir>: artifact root (defaultoutput).
Troubleshooting¶
- If export fails, verify
--start-dateand--end-dateare both present and ordered. - If runtime data is missing, run
stacksats data doctoror follow Full Data Setup. - If schema checks fail, run
venv/bin/python scripts/sync_objects_schema_docs.py --check.
Next step¶
- Move to agent-facing daily decisions: Decide Daily Command.