Skip to main content

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/login and /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


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.2.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

quantjourney-1.0.2-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file quantjourney-1.0.2.tar.gz.

File metadata

  • Download URL: quantjourney-1.0.2.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for quantjourney-1.0.2.tar.gz
Algorithm Hash digest
SHA256 40f7c206c2fcff998f2810bbedb50cf6b6b796f555a81ee32633fb05ecb4e442
MD5 cc5b5e5163c19a8069028c57fa7d2764
BLAKE2b-256 70031c2e6bc06f313508f6240dd326e485aa3c1a7ecb47e6e99f08afc1b63325

See more details on using hashes here.

File details

Details for the file quantjourney-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: quantjourney-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for quantjourney-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b482e5810e8f5464f7bc67948fb61b06a26c2d489445bd25acbf536a029f0b48
MD5 d368c3ea663c183aed248984dd18421d
BLAKE2b-256 f6cf2637eb35a23545152f08f74e9eeebc67524123df5ac9705bbcc536e2134c

See more details on using hashes here.

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