A-share low-frequency quantitative trading framework covering research, backtesting, and execution
Project description
DeltaFQ
Python Open-source Quantitative Framework: Covering the full "Research, Backtest, Trade" lifecycle, building an industrial-grade closed-loop quantitative workflow from scratch to production.
🎓 Official Tutorials
iMOOC - AI Quantitative System Course
Official Course: Deeply deconstructing the framework's architecture from 0 to 1, covering live trading logic and industrial-grade quantitative development. An essential course for mastering DeltaFQ.
📦 Installation
pip install deltafq
For previous version source code, visit: https://pypi.org/project/deltafq/#history
✨ Key Features
- 📥 Multi-source Data - Global multi-market historical/real-time data, ready to use
- 🧠 Rapid Development - Signal-driven architecture, fast implementation with strategy templates
- 📉 Professional Backtesting - High-performance matching engine, deep performance metrics and analysis
- ⚡ Event-driven - Second-level market data distribution, millisecond-level Tick signal processing
- 🤖 Live Gateway - Pluggable adapters, seamless switching between simulation and live trading
⚡ Quick Start
import deltafq as dfq
# 1. Define strategy logic
class MyStrategy(dfq.strategy.BaseStrategy):
def generate_signals(self, data):
bands = dfq.indicators.TechnicalIndicators().boll(data["Close"])
return dfq.strategy.SignalGenerator().boll_signals(data["Close"], bands)
# 2. Minimal backtest & results
engine = dfq.backtest.BacktestEngine()
engine.set_parameters("GOOGL", "2025-07-26", "2026-01-26")
engine.load_data()
engine.add_strategy(MyStrategy(name="BOLL"))
engine.run_backtest()
engine.show_report()
engine.show_chart(use_plotly=False)
🚀 Application Example
DeltaFStation is an open-source quantitative trading cloud platform based on deltafq, integrating data services, strategy management, and trading access with paper and live support. Project: https://github.com/Delta-F/deltafstation/
🔌 Interface Integration
- yfinance ✅ - US, A-shares, HK, Crypto, Indices
- eastmoney ✅ - OTC Funds (Index, QDII, Stock, Bond, Mixed)
- PaperTrade ✅ - Local simulation, tick-driven order matching, position and order management
- miniQMT ✅ - A-share market data integration (
xtquant, requires local miniQMT terminal)
🏗️ Project Architecture
deltafq/
├── data # Data acquisition, cleaning, storage interfaces (stocks, funds)
├── indicators # Technical indicators and factor calculations
├── strategy # Signal generators and strategy base classes
├── backtest # Backtest execution, performance metrics, reporting
├── live # Event engine, gateway abstraction, routing
├── adapters # Pluggable data/trade adapters
├── trader # Execution with order/position management
└── charts # Signal/performance chart components
documents/ # Usage guides and architecture docs
├── LiveEngine.md
└── BacktestEngine.md
🤝 Contributing
- Feedback: Bug reports and contributions are welcome via Issue or Pull Requests.
- WeChat Official Account: Follow
DeltaFQ开源量化for updates, strategies, and quantitative resources.
📄 License
MIT License. See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deltafq-0.8.2.tar.gz.
File metadata
- Download URL: deltafq-0.8.2.tar.gz
- Upload date:
- Size: 45.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8283fe145c754032127c02d12340c85766602068ea518e61e11ae165fafb504
|
|
| MD5 |
15bff0ee670d0ec70d09b623c2d6115e
|
|
| BLAKE2b-256 |
57adb47ea1894f8a4566b9be760fa831c631c0ac0544852c224211743a544e03
|
File details
Details for the file deltafq-0.8.2-py3-none-any.whl.
File metadata
- Download URL: deltafq-0.8.2-py3-none-any.whl
- Upload date:
- Size: 55.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30c622a6a9d8a3c0f0ac1af56c6ec29926c8a31f35d8f315085eb2b2ba2e0fc3
|
|
| MD5 |
a21a3b67e5fda45a74b9464d4bf786fb
|
|
| BLAKE2b-256 |
e8d70a25ed27dde18cbadead627328c442066a31387beb8ebab0710fe40b915e
|