Quickstart¶
StackSats is a Python library for quantitative Bitcoin dollar-cost averaging (DCA) accumulation. Use this page for the canonical first-run path as a package user.
The core problem is whether a dynamic DCA model can robustly acquire more BTC than uniform DCA for the same fixed budget and allocation horizon. For the full framing, start from The Stacking Sats Problem.
1) Choose your install mode¶
| Use case | Install mode | Command |
|---|---|---|
| I want to use StackSats | package install | pip install stacksats |
| I am working from a checkout | editable install | python -m pip install -c requirements/constraints-maintainer.txt -e ".[dev,all]" |
Recommended first run:
If you are working from this repository checkout instead:
python -m venv venv
source venv/bin/activate
venv/bin/python -m pip install --upgrade pip
venv/bin/python -m pip install -c requirements/constraints-maintainer.txt -e ".[dev,all]"
For plotting or animation commands later, install visual extras:
2) Run the packaged demo¶
Optional demo lifecycle commands:
This runs a packaged example through the canonical lifecycle and writes artifacts under:
3) Use the full strategy lifecycle CLI¶
After the demo succeeds, move to the full strategy and data command families.
Use these pages next:
4) Inspect outputs¶
Primary run artifacts are written under:
Typical files:
backtest_result.jsonmetrics.json- plot
.svgfiles
5) What to read next¶
- Task Hub
- Full Data Setup
- Notebook Demo
- First Strategy Run
- Minimal Strategy Examples
- Strategies
- Framework Boundary
- CLI Commands
- Migration Guide
- FAQ
Success Criteria¶
A successful quickstart run should produce all of the following:
- CLI command exits without traceback.
- Backtest summary is printed.
- Backtest artifacts are written under one run directory.
Troubleshooting¶
- If command import fails, confirm you installed either the package or the editable checkout from repo root.
- If you want the canonical BRK workflow next, use Full Data Setup.
- If dates or outputs look wrong, run explicit lifecycle commands from CLI Commands.
- If upgrading and old helper names fail, use Migration Guide.
- If you need minimal copy-paste templates, use Minimal Strategy Examples.