Skip to main content

Quantcentral.ai command-line client (qc) — manage backtest runs, results, and credentials from the terminal.

Project description

quantcentral-cli

PyPI version Python versions License: Apache-2.0

Command-line client for the Quantcentral.ai platform — manage backtest runs, results, and credentials from the terminal.

Part of the Quantcentral.ai ecosystem.

Install

pip install quantcentral-cli

Requires Python 3.12+. Provides a single executable: qc.

Quickstart

# 1. Point qc at your control-api deployment (default: http://localhost:8080).
qc auth set-url https://api.quantcentral.ai

# 2. Save your bearer token. Issued by control-api / SSO.
qc auth login                         # prompts (hidden input)

# 3. Verify.
qc auth status

# 4. Submit a run.
qc run create ./run-bundle.json --start

# 5. Watch.
qc run list
qc run show <run-id>

# 6. Pull results.
qc run result <run-id> --output result.json

Commands

Command Purpose
qc auth login Store the bearer token (JWT) issued by control-api.
qc auth logout Remove the stored token.
qc auth status Show the configured API URL and the JWT subject (no signature check).
qc auth set-url <url> Persist the control-api URL.
qc run create <bundle.json> POST a run bundle to /v1/runs. Use --start to start immediately.
qc run start <run-id> Start a created run.
qc run cancel <run-id> Cancel a running run.
qc run list List recent runs (Rich table).
qc run show <run-id> Print run metadata as JSON.
qc run result <run-id> Fetch the result JSON; --output PATH writes to file.

Configuration

Path / env Purpose
~/.config/quantcentral/token Bearer token (mode 600).
~/.config/quantcentral/config.toml [api] url = "..."
$QC_CONFIG_DIR Override config directory (useful for tests / CI).
$QC_API_URL Override API base URL (takes precedence over disk).
$QC_TOKEN Override bearer token (takes precedence over disk).

Roadmap

v0.1.0 ships the auth and run subcommand families — enough to drive a full backtest lifecycle against control-api. Future versions are planned to add:

Subcommand Status
qc strategy scaffold/validate/push v0.2 — scaffolds strategies using quantcentral-sdk's StrategyBase.
qc optim sweep/show v0.2 — parameter optimization sweeps.
qc feed list/test v0.3 — data feed inspection.
qc broker list/test v0.3 — broker connectivity check.
qc mcp inspect v0.3 — local MCP tool introspection.

License

Apache-2.0 — see LICENSE for details. Attribution requirements in NOTICE.

Development

git clone git@github.com:QuantCentral-ai/quantcentral-cli.git
cd quantcentral-cli
python -m venv venv && source venv/bin/activate
pip install -e ".[dev]"
pytest

Tracking: https://github.com/QuantCentral-ai/quantcentral-planning

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

quantcentral_cli-0.1.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

quantcentral_cli-0.1.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file quantcentral_cli-0.1.0.tar.gz.

File metadata

  • Download URL: quantcentral_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quantcentral_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1b38ed6bf0578276f03ba37a71d48ed970180120e5ff144b80db494084a6e632
MD5 fa3ec77f655b33089ad8335d33744812
BLAKE2b-256 c97c862e7f93bb6178753816568e6061111726c3d404e773db7e6e1193b70730

See more details on using hashes here.

Provenance

The following attestation bundles were made for quantcentral_cli-0.1.0.tar.gz:

Publisher: release.yml on QuantCentral-ai/quantcentral-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quantcentral_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for quantcentral_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d6a6a476ee1116156cda45b10417a7d457967f77bc1bb339491bdd670802fcd
MD5 5e02fc94d957a0a2e1a6e7955af794cd
BLAKE2b-256 8573192234abd1ed8d4470d6b901ebf2a58ebe8867cc7464b961fb055f456377

See more details on using hashes here.

Provenance

The following attestation bundles were made for quantcentral_cli-0.1.0-py3-none-any.whl:

Publisher: release.yml on QuantCentral-ai/quantcentral-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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