You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A modular, open-source quantitative research and backtesting framework designed for clarity and extensibility. Perfect for researchers, students, and developers interested in quantitative finance.
A modular, open-source quantitative research and backtesting framework built for clarity, reproducibility, and extensibility. Ideal for researchers, students, and engineers building and testing systematic strategies.
51
+
52
+
---
53
+
54
+
## Why this project
55
+
56
+
QuantResearchStarter aims to provide a clean, well-documented starting point for quantitative research and backtesting. It focuses on:
57
+
58
+
* **Readability**: idiomatic Python, type hints, and small modules you can read and change quickly.
59
+
* **Testability**: deterministic vectorized backtests with unit tests and CI.
60
+
* **Extensibility**: plug-in friendly factor & data adapters so you can try new ideas fast.
61
+
62
+
---
63
+
64
+
## Key features
53
65
54
-
- **Data Management**: Download real data or generate synthetic data for testing
55
-
- **Factor Library**: Implement momentum, value, size, and volatility factors
56
-
- **Backtesting Engine**: Vectorized backtester with transaction costsand constraints
57
-
- **Risk Metrics**: Comprehensive performance and risk analytics
58
-
- **Modular Design**: Easy to extend with new factors and strategies
59
-
- **Production Ready**: Type hints, tests, CI/CD, and documentation
66
+
* **Data management** — download market data or generate synthetic price series for experiments.
67
+
* **Factor library** — example implementations of momentum, value, size, and volatility factors.
> The code above is illustrative—see `examples/` for fully working notebooks and scripts.
140
+
141
+
---
142
+
143
+
## CLI reference
144
+
145
+
Run `qrs --help` or `qrs <command> --help` for full usage. Main commands include:
146
+
147
+
* `qrs generate-data` — create synthetic price series or download data from adapters
148
+
* `qrs compute-factors` — calculate and export factor scores
149
+
* `qrs backtest` — run the vectorized backtest and export results
150
+
151
+
---
152
+
153
+
## Project structure (overview)
154
+
155
+
```
156
+
QuantResearchStarter/
157
+
├─ src/quant_research_starter/
158
+
│ ├─ data/ # data loaders & adapters
159
+
│ ├─ factors/ # factor implementations
160
+
│ ├─ backtest/ # backtester & portfolio logic
161
+
│ ├─ analytics/ # performance and risk metrics
162
+
│ ├─ cli/ # command line entry points
163
+
│ └─ dashboard/ # optional Streamlit dashboard
164
+
├─ examples/ # runnable notebooks & example strategies
165
+
├─ tests/ # unit + integration tests
166
+
└─ docs/ # documentation source
167
+
```
168
+
169
+
---
170
+
171
+
## Tests & CI
172
+
173
+
We include unit tests and a CI workflow (GitHub Actions). Run tests locally with:
174
+
175
+
```bash
176
+
pytest -q
177
+
```
178
+
179
+
The CI pipeline runs linting, unit tests, and builds docs on push/PR.
180
+
181
+
---
182
+
183
+
## Contributing
184
+
185
+
Contributions are very welcome. Please follow these steps:
186
+
187
+
1. Fork the repository
188
+
2. Create a feature branch
189
+
3. Add tests for new behavior
190
+
4. Open a pull request with a clear description and rationale
191
+
192
+
Please review `CONTRIBUTING.md` and the `CODE_OF_CONDUCT.md` before submitting.
193
+
194
+
---
195
+
196
+
## AI policy — short & practical
197
+
198
+
**Yes — you are allowed to use AI tools** (ChatGPT, Copilot, Codeium, etc.) to help develop, prototype, or document code in this repository.
199
+
200
+
A few friendly guidelines:
201
+
202
+
* **Be transparent** when a contribution is substantially generated by an AI assistant — add a short note in the PR or commit message (e.g., "Generated with ChatGPT; reviewed and adapted by <your-name>").
203
+
* **Review and test** all AI-generated code. Treat it as a helpful draft, not final production-quality code.
204
+
* **Follow licensing** and attribution rules for any external snippets the AI suggests. Don’t paste large verbatim copyrighted material.
205
+
* **Security & correctness**: double-check numerical logic, data handling, and anything that affects trading decisions.
206
+
207
+
This policy is intentionally permissive: we want the community to move fast while keeping quality and safety in mind.
208
+
209
+
---
210
+
211
+
## License
212
+
213
+
This project is licensed under the MIT License — see the `LICENSE` file for details.
214
+
215
+
---
216
+
217
+
## Acknowledgements
218
+
219
+
Built with inspiration from open-source quant libraries and the research community. If you use this project in papers or public work, a short citation or mention is appreciated.
0 commit comments