confluence-engine
A pluggable trading-strategy framework for Python: technical indicators, market-data adapters (crypto/forex/idx), a backtester, and a clean Strategy interface you implement yourself. Bring your own signal logic and scoring — the framework stays out of your way.
Install
pip install confluence-engine
Quickstart
from confluence_engine import (
AdapterConfig, StrategyConfig, BreakoutDemo,
get_adapter, calculate_indicators, run_backtest,
)
cfg = StrategyConfig()
df = get_adapter("crypto", AdapterConfig(exchange="binance")).fetch_ohlcv("BTC/USDT", "1h", limit=300)
df = calculate_indicators(df, cfg.ema_fast, cfg.ema_slow, cfg.rsi_length)
print(run_backtest(df, BreakoutDemo(), cfg))
Write your own strategy
from confluence_engine import Strategy, Signal, StrategyConfig
import pandas as pd
class MyStrategy:
name = "my-strategy"
def generate_signal(self, df: pd.DataFrame, config: StrategyConfig) -> Signal:
last = df.iloc[-1]
if last["rsi"] < 25:
return {"signal": "BUY", "reason": "deeply oversold", "score": 0.8,
"stop_loss": None, "take_profit": None}
return {"signal": "HOLD", "reason": "wait", "score": 0.0,
"stop_loss": None, "take_profit": None}
Pass an optional scorer=lambda df, config: 0.0..1.0 to run_strategy / run_backtest; signals scoring below config.confidence_threshold are downgraded to HOLD.
License
MIT
Metadata
Release files for confluence-engine 0.1.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 | Actions |
|---|---|---|---|---|
| confluence_engine-0.1.1.tar.gz | 16.5 kB | With provenance | Details for confluence_engine-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| confluence_engine-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for confluence_engine-0.1.1-py3-none-any.whl |
Total release size: 34.9 kB
Release files / confluence_engine-0.1.1.tar.gz
| Download URL | confluence_engine-0.1.1.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f16107d85039ae52caefa870e39c91bec636aa493138c69101e8ed0dbe80e2a9
|
|
BLAKE2b-256 checksum How to use checksums |
3abaf4077f3b6ddc7c538d9ef5acdb08d69ff835a683b9c78852d505eb8c7bfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 18, 2026.
Transparency logRelease files / confluence_engine-0.1.1-py3-none-any.whl
| Download URL | confluence_engine-0.1.1-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47147b1e7f1e35c6858c67285e6194aec7dd33dd01679872bf887c9786dec5c8
|
|
BLAKE2b-256 checksum How to use checksums |
9cde907233b72f3ac3bd5489cd7a2845769e2b89a92f2da4820db056ec2b50a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 18, 2026.
Transparency logSecurity for confluence-engine 0.1.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for confluence_engine-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 18, 2026.
Transparency logA 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.