LiveBack is a Python-based framework designed for seamless backtesting and live trading of financial strategies. It provides a unified API for strategy development, with pluggable runtime engines for both backtesting and live trading modes.
- Unified Strategy API for both backtesting and live trading
- Support for pair-trading strategies
- Efficient backtesting with vectorized and event-driven options
- Adaptable to various data sources
- Real-time and post-run visualization tools
- Comprehensive metrics and reporting
- Python 3.14
uvpackage manager
- Clone the repository:
git clone <repository-url> cd liveback
- Install dependencies using
uv:uv sync
- Setup pre-commit:
pre-commit install
- Testing:
uv run -m unittest discover -s src/tests
design.md: Project design documentrequirements.uv: Dependency list for the projectmain.py: Entry point for running the frameworksrc/: Contains the core framework componentsdata/: Data clients for historical and live dataexecution/: Execution clients for backtesting and live tradingstrategy/: Strategy base class and user-defined strategiesutils/: Utility functions for data processing and visualizationtests/: Unit tests for the framework
Contributions are welcome! Please submit a pull request or open an issue for discussion.