Crystrat
Ultra-clean, fast, and safe live trading framework for complex strategies.
Milestones M0–M2 are implemented: bootstrap, Crypto.com market data (trades/bars/books) with metrics, and a paper OMS/Execution pipeline.
Quick Start
- Create venv and install editable:
- PowerShell:
python -m venv .venv; .\.venv\Scripts\Activate.ps1; pip install -e . - If the
crystratscript is not on PATH, usepython -m crystrat.cli.main.
- PowerShell:
- Configure
config.example.yaml:exchanges: [cryptocom]to enable live market databar_intervals: [1m]to build OHLCV barsbook_depth: 50for L2 depth
Run Examples
- Print trades (Crypto.com):
python -m crystrat.cli.main run --config config.example.yaml --strategy examples.print_trades:PrintTrades
- Print bars (requires
bar_intervals):python -m crystrat.cli.main run --config config.example.yaml --strategy examples.print_bars:PrintBars
- Demo order (paper OMS, fills at top-of-book):
python -m crystrat.cli.main run --config config.example.yaml --strategy examples.demo_order:DemoOrder
- Minimal starter:
python -m crystrat.cli.main run --config config.example.yaml --strategy examples.simple_strategy:MyStrat
Commands
crystrat runloads config and strategy, starts the runtime.crystrat statusprints basic environment and version.
Layout
src/crystrat/infra/*event bus, logging, config, metricssrc/crystrat/connect/crypto_com/*Crypto.com REST + WS connectorssrc/crystrat/marketdata/*MD runtime and OHLCVsrc/crystrat/exec/*OMS/Execution (router, paper broker, risk)src/crystrat/strategy/*Strategy base + loadersrc/crystrat/cli/*CLI entrypointsexamples/*demo strategiestests/*minimal sanity tests
Refer to plan.txt and TODO.md for the detailed roadmap and progress.
Metadata
Release files for crystrat 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| crystrat-0.0.1.tar.gz | 13.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| crystrat-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.9 kB
Release files / crystrat-0.0.1.tar.gz
| Download URL | crystrat-0.0.1.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d03a111d7205424de4c949012a77979c9daffbf02e73ad876e21c78140cb4676
|
|
BLAKE2b-256 checksum How to use checksums |
b55260eaf11bc774911a3cc3436df59ea9c3fe52ada075eb45eda9be2fa8aa3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / crystrat-0.0.1-py3-none-any.whl
| Download URL | crystrat-0.0.1-py3-none-any.whl |
|---|---|
| Size | 21.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d644ba2f8c7a771325c441bad21e683f6139b3d9a8aea50122562b78cea58038
|
|
BLAKE2b-256 checksum How to use checksums |
b2a7da2c6143dd5ae60c125c9e35aeca680b5df2bbfb80415eae3b6801b73255
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for crystrat 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.