QuantJourney SDK
Project description
QuantJourney Python SDK
High-quality, lightweight client for the QuantJourney API.
- Package:
quantjourney - Import:
quantjourney.sdk
Features
- Simple, requests-based HTTP client with automatic JSON handling
- Auth helpers for
/auth/loginand/auth/refresh - Lazy connector endpoints (e.g.,
qj.eod.get_historical_prices) - Domain proxy for
/d/<domain>.<method>calls - Config via environment (QJ_API, QJ_TENANT_ID, etc.)
Install
- PyPI:
pip install quantjourney - From GitHub:
pip install "git+https://github.com/QuantJourneyOrg/_repo_quantjourney_sdk.git#subdirectory=sdk"
Quick Start
from quantjourney.sdk import QuantJourney
qj = QuantJourney(api_url="http://localhost:8001", tenant_id="jakub")
# or: qj = QuantJourney.from_env()
# Login to obtain tokens
qj.auth.login(tenant_id="jakub", user_id="alice", password="secret")
# Use connectors
prices = qj.eod.get_historical_prices(symbols=["AAPL"], start_date="2025-01-01", end_date="2025-02-01", frequency="1d", exchanges=["US"]) # dict
print(len(prices.get("data", [])))
See USAGE.md for more examples.
License
Proprietary. All rights reserved.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quantjourney-1.0.3.tar.gz
(14.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quantjourney-1.0.3.tar.gz.
File metadata
- Download URL: quantjourney-1.0.3.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c208908258d0ca30fecec571b2252bc60df788d76b5d70b884b42048b0c1ae3
|
|
| MD5 |
8189ec85c55f98c3bdebaa45e6104828
|
|
| BLAKE2b-256 |
7aaadd6aaf4f9c9249e6ea7afc58b135bc7e32ad2b8af3685817040952afc918
|
File details
Details for the file quantjourney-1.0.3-py3-none-any.whl.
File metadata
- Download URL: quantjourney-1.0.3-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0aa28e9ae64c694ef23e12b5434a87d73f9a5ab52f3d353dedfe3295e64f38c
|
|
| MD5 |
b360a78d9ba3b58c8f4e0d7f19ac2cd5
|
|
| BLAKE2b-256 |
33e049bf35de4c2c618a3b27d89fc989846716ee32ea5a2380605e588fb9b02c
|