Quant Pulse
Quant Pulse is a lightweight Python library for generating market signals on demand. It supports various targets (asset classes, markets, etc.) and signal operations through a modular architecture that allows for easy extension and customization.
Current Version: 0.3.9 (alpha)
Core Principles
-
Scoped to financial domain, whether decentralized or centralized.
-
Remain fully open source to promote transparency and wider adoption.
Design Goals
-
Offer automatic trading systems raw or processed data to support decisions-making, embedded directly in-process.
-
Prototype composite signals from raw ones using Jupyter Notebook or similar environments.
Non-Goals
-
Not designed for high‑frequency trading (HFT) or other fast trading systems.
-
Direct interaction with markets is explicitly out of scope.
-
Not a server or service — no network interface is provided; embed it in your own process.
Further Notes
-
The codebase is still stabilizing, and contributions via pull request are not open yet. Key interfaces are subject to refinement; feel free to experiment with modules, but keep in mind that breaking changes may occur.
-
Note: custom signal handlers and services (extending the internal
SignalHandler/Servicebase types) cannot yet be plugged in from an external project — the config-driven loader only resolves modules inside this package's own namespace. External extensibility (e.g. entry-point/plugin registration) is a coming-soon update.
Installation
pip install quant-pulse
Requires Python 3.10+. TA-Lib must be installed on the system before pip install (the Python package wraps the native library).
Modules
Path:
src/quant_pulse
├── handlers # signal handlers
├── services # core services
└── _core # framework internals (abstractions, registries, config)
Handlers:
RSISignal: RSI indicator signal handlerMASignal: MA indicator signal handler (supportssma,ema,wma)ATRSignal: ATR indicator signal handlerDMISignal: DMI indicator signal handler (combines ADX, DI+, DI-)PriceStructSignal: Price structure signal handlerTrendDirectSignal: Trend direction signal handlerMntmQualitySignal: Momentum Quality signal handlerMACDSignal: MACD indicator signal handlerSupertrendSignal: Supertrend signal handler (composesATRSignal)MarketVolumeSignal: tradeable markets on a venue, ranked by 24h quote volume
Services:
CacheManager: factory-pattern based caching to create scoped cachesExchangeClient: abstract base type for exchange implementationsBinanceClient: provides access to OHLCV data from Binance CEXHyperliquidClient: provides access to OHLCV data from Hyperliquid DEXOHLCVFetcher: abstracts OHLCV data fetching and provides caching
Usage
from quant_pulse import Context, ConfigBuilder
cfg = (
ConfigBuilder()
.hyperliquid_client('hl_client')
.cache_manager()
.ohlcv('hl_ohlcv', using=['hl_client', 'cache_manager'])
.signal('rsi_hyperliquid', 'rsi_signal', ohlcv_service='hl_ohlcv')
.build()
)
with Context.from_dict(cfg) as ctx:
sig = ctx.get_signal_handler('rsi_hyperliquid')
out = sig.compute_signal(
target='BTC',
signal_op='compute_rsi',
request={'period': 14, 'timeframe': '1h'}
)
if out.errors:
print('errors:', out.errors)
else:
print(f"latest_rsi: {out.result['latest_rsi']}")
print(f"regime: {out.result['regime']}")
out.result is a plain Python object (dict/list/etc.) — no serialization step, nothing to decode.
ConfigBuilder also has typed shortcuts for other bundled exchange clients (binance_spot_client, binance_mf_client) and a raw .service() escape hatch for anything custom — see builder.py.
A runnable version of the first example is at samples/rsi_sample.py. For the simplest possible no-network usage, see samples/hello_world.py.
Signal Sample
def _compute_signal_impl(self, target: str, signal_op: str, request: Optional[dict]) -> Outcome:
"""
Compute RSI signal
"""
try:
period = int(request['period'])
timeframe = request['timeframe']
ohlcv_fetcher = self._ctx.get_service(self._ohlcv_service_name)
if not ohlcv_fetcher or not hasattr(ohlcv_fetcher, 'retrieve_ohlcv'):
return self._error(f"OHLCV service '{self._ohlcv_service_name}' not found or invalid")
limit = period + 100
candles = ohlcv_fetcher.retrieve_ohlcv(symbol=self._symbol, timeframe=timeframe, limit=limit)
if not candles or len(candles) < period:
return self._error(f"Insufficient candle data: need {period}, got {len(candles) if candles else 0}")
close_prices = np.array([candle.close for candle in candles])
rsi_values = talib.RSI(close_prices, timeperiod=period)
rsi_list = rsi_values[~np.isnan(rsi_values)].round(2).tolist()
latest_rsi = next((float(v) for v in reversed(rsi_values) if not np.isnan(v)), None)
if latest_rsi is None:
return self._error('Failed to compute RSI: all values are NaN')
regime = 'overbought' if latest_rsi >= 70 else 'oversold' if latest_rsi <= 30 else 'neutral'
return Outcome(
result={'symbol': self._symbol, 'rsi': rsi_list, 'latest_rsi': round(latest_rsi, 2), 'regime': regime},
computation=self.get_metadata()['name']
)
except Exception as e:
self.logger.error(f"Error computing RSI: {e}", exc_info=True)
return self._error(str(e))
License
MIT — see LICENSE.
Metadata
Release files for quant-pulse 0.3.9
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 |
|---|---|---|---|---|
| quant_pulse-0.3.9.tar.gz | 100.5 kB | Without provenance | Details for quant_pulse-0.3.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quant_pulse-0.3.9-py3-none-any.whl | Python 3 | none | any | Details for quant_pulse-0.3.9-py3-none-any.whl |
Total release size: 190.9 kB
Release files / quant_pulse-0.3.9.tar.gz
| Download URL | quant_pulse-0.3.9.tar.gz |
|---|---|
| Size | 100.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52165d1f48691ebf2de8c7f6195dc158aa914ec36264c78ff7ec08f85eb797f9
|
|
BLAKE2b-256 checksum How to use checksums |
55e7958b2e8e0e8df9f99c92a4a981aac761b067714cc6fdb987b9328f7758c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Release files / quant_pulse-0.3.9-py3-none-any.whl
| Download URL | quant_pulse-0.3.9-py3-none-any.whl |
|---|---|
| Size | 90.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab9223083d086b2072ffdf8abc9df9008280b07cc70c381c5b516f7fa6609655
|
|
BLAKE2b-256 checksum How to use checksums |
f3df8c4c1aa5b24f237b676f476377bf578991d1d8d5fcaebca6f0f4c39fe8e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Security for quant-pulse 0.3.9
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.