Skip to main content

A comprehensive Python quantitative finance library

Project description

DeltaFQ

中文 | English

Version Platform Python Build License

A Python-based quantitative trading system development framework focused on strategy research, backtesting execution, and performance visualization. Simulated trading and live trading features are under development.

Installation

pip install deltafq
  • Optional components like Plotly and TA-Lib can be installed via pip install deltafq[viz] and pip install deltafq[talib].

Core Modules

deltafq/
├── data        # Data acquisition, cleaning, storage interfaces
├── indicators  # Technical indicators and factor calculations
├── strategy    # Signal generators and strategy base classes
├── backtest    # Backtest execution, performance metrics, reporting
├── charts      # Signal/performance chart components
└── trader      # Trading execution and risk control (ongoing expansion)

Quick Start (BOLL Strategy)

import deltafq as dfq

symbol = "AAPL"
fetcher = dfq.data.DataFetcher()
indicators = dfq.indicators.TechnicalIndicators()
signals = dfq.strategy.SignalGenerator()
engine = dfq.backtest.BacktestEngine(initial_capital=100_000)
reporter = dfq.backtest.PerformanceReporter()
chart = dfq.charts.PerformanceChart()

data = fetcher.fetch_data(symbol, "2023-01-01", "2023-12-31", clean=True)
bands = indicators.boll(data["Close"], period=20, std_dev=2)
signal_series = signals.boll_signals(price=data["Close"], bands=bands, method="cross_current")

trades_df, values_df = engine.run_backtest(symbol, signal_series, data["Close"], strategy_name="BOLL")

reporter.print_summary(symbol, trades_df, values_df, title=f"{symbol} BOLL Strategy", language="en")
chart.plot_backtest_charts(values_df=values_df, benchmark_close=data["Close"], title=f"{symbol} BOLL Strategy")

Community & Contributing

  • Welcome to provide feedback and submit improvements via Issue or PRs.

License

MIT License. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deltafq-0.5.2.tar.gz (38.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deltafq-0.5.2-py3-none-any.whl (47.5 kB view details)

Uploaded Python 3

File details

Details for the file deltafq-0.5.2.tar.gz.

File metadata

  • Download URL: deltafq-0.5.2.tar.gz
  • Upload date:
  • Size: 38.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for deltafq-0.5.2.tar.gz
Algorithm Hash digest
SHA256 d142ecfbe51e1b0b22f81f06ba47d49384a751f9873068af490629ea935e0bc6
MD5 6c81a065fb938c3d3f0e88f158b991c9
BLAKE2b-256 45aa2dffcc943b4ae0c7c651e7e784eed6f08afaaeca241f40174a1238b9e7b7

See more details on using hashes here.

File details

Details for the file deltafq-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: deltafq-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 47.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for deltafq-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f72c5dcf8d1b4b10df038c5730fe1d61dc87813e1d9461a4a606144a439d8b0b
MD5 0d0f5850c8f89cb523540ae4b68df314
BLAKE2b-256 4b58fbd7d971d1633e9fe55f06ab42586d57706cadb711aca841a0b01fef5b1e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page