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.4.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.4.tar.gz.
File metadata
- Download URL: quantjourney-1.0.4.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 |
da4937e650886b49d44d55ef4b080545bbb3384063af5ba607af2af1698285c8
|
|
| MD5 |
627148e5ad491741a958a33612d86bc5
|
|
| BLAKE2b-256 |
048dad6425b89c04204f020bf90adbdef1db057e6d99b1b816cda192702da500
|
File details
Details for the file quantjourney-1.0.4-py3-none-any.whl.
File metadata
- Download URL: quantjourney-1.0.4-py3-none-any.whl
- Upload date:
- Size: 22.1 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 |
cb49afa8e72c1a2a4b375bab7a1923bc2fd7160c4510493334ac5244c4ff4eb6
|
|
| MD5 |
8022978e6c27de9ad40dcec1d8b9d592
|
|
| BLAKE2b-256 |
5663b278ad490bdbab12c3c3ad3c7207f6b1d9aea7dc5cf111f2c61ae2c1a590
|