Skip to main content

nexusquant-sdk

NexusQuant strategy provider Python SDK.

Installation

pip install nexusquant-sdk

Quick start

import nexusquant_sdk as nq

# Authenticate once (opens browser)
nq.auth_login()

# List your strategies
strategies = nq.strategy_list()

# Send a signal
nq.strategy_send_signal_single(
    "my_alpha",
    ticker="AAPL",
    direction="buy",
    price=150.0,
    quantity=100,
    order_type="LIMIT",
)

Authentication

Tokens are stored locally at the path returned by nq.auth_credentials_path().

nq.auth_login()           # opens Cognito Hosted UI, saves tokens
nq.auth_logged_in()       # True if a token is present
nq.auth_refresh()         # force-refresh the ID token via refresh token
nq.auth_logout()          # delete local tokens
nq.auth_credentials_path() # path to the credentials file

Override defaults with environment variables:

Variable Default
NEXUSQUANT_API_ENDPOINT https://api.nexusquant.co
NEXUSQUANT_COGNITO_DOMAIN auth.lookatwallstreet.com
NEXUSQUANT_COGNITO_CLIENT_ID (built-in)
NEXUSQUANT_REDIRECT_URI http://127.0.0.1:8251/callback

Strategy API

# Register / update a strategy
nq.strategy_register("my_alpha", "My Alpha Strategy", output_unit="SHARE_COUNT")

# List strategies
nq.strategy_list()

# Signal history
nq.strategy_signal_history("my_alpha", limit=20)

# Send a single signal
nq.strategy_send_signal_single(
    "my_alpha",
    ticker="AAPL",
    direction="buy",   # "buy" or "sell"
    price=150.0,
    quantity=100,      # share count
    order_type="LIMIT" # "MARKET" or "LIMIT"
)

# Send a multi-route signals map
nq.strategy_send_signals("my_alpha", {"default": {...}})
nq.strategy_send_signals_from_path("my_alpha", "signals.json")

# Subscriber configuration snapshot
nq.strategy_subscriber_config("my_alpha")

Requirements

  • Python 3.10+
  • httpx >= 0.27
  • platformdirs >= 4.2

Metadata

Release files for nexusquant-sdk 0.2.0

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

Source distribution (sdist)

Source distribution for nexusquant-sdk 0.2.0
File Size Uploaded
nexusquant_sdk-0.2.0.tar.gz 37.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nexusquant-sdk 0.2.0
File Interpreter ABI Platform
nexusquant_sdk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 57.1 kB

Release files / nexusquant_sdk-0.2.0.tar.gz

Download URL nexusquant_sdk-0.2.0.tar.gz
Size 37.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a7b9b1c9ce2ef19c2b3060654e192e98328de425a0c598cb49cefb92b415ebb0
BLAKE2b-256 checksum
How to use checksums
967d5607011b977542f3db6014e3c66ff2d212f479f414570bdf9fb7170affed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / nexusquant_sdk-0.2.0-py3-none-any.whl

Download URL nexusquant_sdk-0.2.0-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aefca6f80f9b8ba481adf6e64051da61721b35bcd34cfafe4aa864ae3bfa29f3
BLAKE2b-256 checksum
How to use checksums
aec4dc6fd14ae5dd427ebd198e661b9ed087ed0437bac530c1afe9f795502797
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.0

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