Skip to main content

quantjourney-api

Python SDK for the public/product qj-api contract.

Canonical package metadata:

Field Value
Repository _repo_qj_api_sdk
Distribution quantjourney-api
Python import qj.api
Runtime client QJ
Backend boundary qj-api / https://api.quantjourney.cloud
Version 0.1.3
Git tag api-v0.1.3

quantjourney-api is the public product/API SDK. The quantjourney umbrella package lives in packages/quantjourney and installs quantjourney-api.

from qj.api import QJ, QuantJourneyAPI

qj = QJ.from_env()
health = qj.health()
capabilities = qj.capabilities()

# Provider connectors through qj-api
profile = qj.fmp.get_company_profile(symbol="NVDA")
gdp = qj.fred.get_series(series_id="GDP")
filings = qj.sec.get_recent_filings(limit=5)
trades = qj.massive.get_stock_trades(ticker="AAPL", limit=100)
legacy_quotes = qj.polygon.get_stock_quotes(ticker="AAPL", limit=100)
cpi = qj.tradingeconomics.get_historical_indicators(
    country="United States",
    indicator="Consumer Price Index CPI",
)
macro_revision = qj.dbnomics.get_series(
    provider_code="ECB",
    dataset_code="EXR",
    series_code="D.USD.EUR.SP00.A",
    revision="<commit-sha>",
)

# Research-source expansion (requires a backend with these routes deployed)
approvals = qj.openfda.get_drug_approvals(search='sponsor_name:"PFIZER"', limit=5)
attention = qj.apewisdom.get_mentions(filter="all-stocks")
pageviews = qj.wikimedia.get_pageviews(article="Apple_Inc.")
fear_greed = qj.alternative.get_fear_greed(limit=30)
dvol = qj.deribit.get_dvol(currency="BTC")
fees = qj.defillama.get_protocol_fees(protocol_slug="aave", data_type="dailyRevenue")

# Provider-agnostic domain routes
routes = qj.domains.list()
prices = qj.domains.equity.pricing.get_historical_prices(symbol="NVDA")

# Product API surfaces
analytics = qj.analytics.registry()
ratios = qj.ratios.available(source="eod")
indicators = qj.technical.available()

# Compatibility aliases
qj2 = QuantJourneyAPI.from_env()

Local smoke from this checkout:

python scripts/qj_api_smoke.py --env .env
python scripts/endpoint_matrix.py --env .env
python scripts/endpoint_matrix.py --env .env --list
python scripts/endpoint_matrix.py --env .env --group connectors --allow-failures
python scripts/endpoint_matrix.py --env .env --group connector_examples --include-connector-examples --allow-failures
python scripts/connector_matrix.py --env .env

scripts/connectors.json stores one smoke example per connector. The endpoint matrix verifies every connector route; connector_matrix.py runs the examples and prints a compact result table.

The September research-source expansion adds openfda, apewisdom, wikimedia, alternative, quiver, ember, opensky, manifold, deribit, mempool, blockscout and blockchain, plus DefiLlama fee/revenue methods. Calls use the normal QJ tenant/scopes and credentials. Configure upstream Quiver and Ember keys in QJ Data Sources; do not send them as SDK method parameters. Provider data remains in the response's value envelope.

Environment variables:

Variable Purpose
QJ_API_URL qj-api base URL, default https://api.quantjourney.cloud
QJ_API_TOKEN bearer token
QJ_AUTH_URL qj-auth base URL for token exchange
QJ_API_KEY QJ_live_* API key used to mint QJ_API_TOKEN
QJ_API_CLIENT_ID service account client id for client_credentials
QJ_API_CLIENT_SECRET QJ_svc_* service secret for client_credentials
QJ_API_TENANT_ID optional tenant projection
QJ_API_TEAM_ID optional team projection

Install from PyPI:

pip install quantjourney-api==0.1.3

quantjourney-common-sdk is installed automatically as a dependency. Local development can still use editable path installs for sibling checkouts.

The new surface keeps the smaller qj.api namespace, uses quantjourney-common-sdk for auth/transport, exposes dynamic qj-api connector clients, and keeps warehouse data-plane concerns in quantjourney-data.

Metadata

Release files for quantjourney-api 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quantjourney-api 0.1.3
File Size Uploaded
quantjourney_api-0.1.3.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quantjourney-api 0.1.3
File Interpreter ABI Platform
quantjourney_api-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 kB

Release files / quantjourney_api-0.1.3.tar.gz

Download URL quantjourney_api-0.1.3.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a44c36079917bb6f3b4e1e5315f81826550006ebc4c17aa15b0685e5c9b99ae2
BLAKE2b-256 checksum
How to use checksums
4b77e7ced236e16bea4977f2752fad6414913dc9d7152d554b85d4b38a52e88e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 6, 2026.

Transparency log

Release files / quantjourney_api-0.1.3-py3-none-any.whl

Download URL quantjourney_api-0.1.3-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e30bcfb605c9de69a577f829a79372ecd4ba1605c28a33dd25143ef6ebb485d
BLAKE2b-256 checksum
How to use checksums
fc54a796447f29740d72622aff2bb3c67a07959de8e3df12b9004674f384f22e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 6, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page