quantcentral-sdk-python
Quantcentral.ai public Python SDK — strategy engine, 30+ indicators, stats, pairs analysis, market calendars.
Part of the Quantcentral.ai ecosystem.
Status
v0.1.0 — initial extraction from the QuantStack monorepo. The public surface is stable for the listed modules; the cloud platform (orchestration, runners, AI agents, risk engine, marketplace) is not part of this package and remains proprietary.
Install
pip install quantcentral-sdk
Requires Python 3.12+.
Quickstart
from quantcentral import StrategyBase, indicators
from quantcentral.strategy import Param
class SmaCross(StrategyBase):
fast = Param(10, type=int, min=2, max=200, label="Fast SMA")
slow = Param(50, type=int, min=2, max=400, label="Slow SMA")
def initialize(self):
self.closes: list[float] = []
def on_bar(self, bar):
self.closes.append(bar.close)
if len(self.closes) < self.slow:
return
fast_sma = indicators.sma(self.closes, self.fast)
slow_sma = indicators.sma(self.closes, self.slow)
if fast_sma > slow_sma and not self.get_position(bar.symbol).qty:
self.buy(bar.symbol, qty=100)
elif fast_sma < slow_sma:
self.close_position(bar.symbol)
The strategy runs unchanged in any Quantcentral runner (local, cloud, replay). Hosting the runner / data feed is out of scope for this SDK — you provide bars, the strategy reacts.
Modules
| Module | Purpose |
|---|---|
quantcentral.strategy |
StrategyBase lifecycle (initialize, on_bar, on_tick), Param / @input parameter descriptors. |
quantcentral.indicators |
30+ pure-Python indicators: sma, ema, rsi, macd, bollinger_bands, atr, adx, vwap, crossover, … |
quantcentral.stats |
mean, stdev, correlation, linear_regression, rolling_mean, z_score, max_drawdown, … |
quantcentral.pairs |
Cointegration helpers: compute_hedge_ratio, compute_zscore, half_life, is_cointegrated. |
quantcentral.contracts |
msgspec / pydantic schemas for Bar, Quote, Order, Fill, Position, RunSpec, … |
quantcentral.calendar |
Market calendars for NYSE, NASDAQ, TSX, LSE, JPX, ASX (via exchange_calendars) plus FOREX (24/5) and CRYPTO (24/7). |
License
Apache-2.0 — see LICENSE for details. Attribution requirements in NOTICE.
Development
git clone git@github.com:QuantCentral-ai/quantcentral-sdk-python.git
cd quantcentral-sdk-python
python -m venv venv && source venv/bin/activate
pip install -e ".[dev]"
pytest
Tracking: https://github.com/QuantCentral-ai/quantcentral-planning
Metadata
Release files for quantcentral-sdk 0.1.0
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 |
|---|---|---|---|---|
| quantcentral_sdk-0.1.0.tar.gz | 48.8 kB | With provenance | Details for quantcentral_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quantcentral_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for quantcentral_sdk-0.1.0-py3-none-any.whl |
Total release size: 85.8 kB
Release files / quantcentral_sdk-0.1.0.tar.gz
| Download URL | quantcentral_sdk-0.1.0.tar.gz |
|---|---|
| Size | 48.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e574594093c9aba87fdeb9554bff54179763a9ff1c263b7956fe7910524003e
|
|
BLAKE2b-256 checksum How to use checksums |
573eeafc3633e9bb49a6fcf17ed5f09e26d1a6d9de639d88a9e7e16f0ef6a903
|
| 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 May 8, 2026.
Transparency logRelease files / quantcentral_sdk-0.1.0-py3-none-any.whl
| Download URL | quantcentral_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 37.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12504124e8b110f5d6a103416dc084ee1588933e2f1a48159212c3323b34939a
|
|
BLAKE2b-256 checksum How to use checksums |
5d0242a45a778ebad50a61a265eba9f0d9a96c7b4c271c4a3b71e6ea32dd39ea
|
| 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 May 8, 2026.
Transparency logSecurity for quantcentral-sdk 0.1.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for quantcentral_sdk-0.1.0.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 May 8, 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.