NexusQuant strategy provider CLI
Project description
nexusquant-cli
Command line tool for NexusQuant strategy providers.
It supports browser login through Cognito, stores tokens locally, refreshes tokens, and calls the Nexus strategy provider APIs. Provider commands require a Cognito user with custom:userType=strategyProvider or custom:userType=admin.
Install
python3 -m pip install -e .
Login
nexusquant auth
nexusquant auth --status
nexusquant auth --refresh
nexusquant auth --logout
Tokens are stored in the current OS user's config directory, for example ~/Library/Application Support/nexusquant-cli/credentials.json on macOS. The file is written with 0600 permissions when supported.
Strategy Commands
Create or update a strategy:
nexusquant strategy create \
--strategy-id my_alpha_001 \
--name "My Alpha" \
--schema-file schema.json \
--output-unit SHARE_COUNT
List strategies registered by the current provider. Admin users see all strategies:
nexusquant strategy list
List signal history for one strategy:
nexusquant strategy signal my_alpha_001 --history --limit 20
Send a single signal:
nexusquant strategy signal my_alpha_001 \
--strategy-name "My Alpha" \
--ticker AAPL \
--direction bull \
--price 150.25 \
--level 0.8 \
--quantity 100 \
--order-type MARKET
--order-type is a signal-level setting. Use MARKET for market orders or NORMAL for limit orders; NORMAL uses the signal --price as the limit reference. If omitted, the service defaults to MARKET.
Send a multi-route signals map:
nexusquant strategy signal my_alpha_001 \
--strategy-name "My Alpha" \
--signals-file signals.json
Get non-PII subscriber config for a strategy:
nexusquant strategy sub config my_alpha_001
JSON Inputs
--schema-file must contain the strategy_schema object accepted by nexus-service, for example:
{
"type": "object",
"properties": {
"window": {
"type": "integer",
"default": 14,
"title": "Window",
"source": "user"
}
},
"required": []
}
--signals-file must contain a JSON object whose keys are default or user ids:
{
"default": {
"ticker": "AAPL",
"time": "2026-04-26T19:30:00Z",
"price": 150.25,
"level": 0.8,
"direction": "bull",
"order_type": "NORMAL",
"quantity": 100,
"metadata": {}
}
}
Environment Overrides
Normal use does not require configuration. For staging or local development:
| Variable | Meaning |
|---|---|
NEXUSQUANT_API_ENDPOINT |
API endpoint host, default https://api.nexusquant.co; CLI calls /api/... under it |
NEXUSQUANT_API_BASE_URL |
Optional full API base override, e.g. https://api.nexusquant.co/api |
NEXUSQUANT_COGNITO_DOMAIN |
Cognito Hosted UI host, default auth.lookatwallstreet.com |
NEXUSQUANT_COGNITO_CLIENT_ID |
Cognito app client id |
NEXUSQUANT_REDIRECT_URI |
OAuth callback, default http://127.0.0.1:8251/callback |
There is also a hidden typo-compatible alias: nexusquant startegy ... maps to nexusquant strategy ....
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
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 nexusquant_cli-0.1.1.tar.gz.
File metadata
- Download URL: nexusquant_cli-0.1.1.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3349693fd0bfcd4afb28ba28c1458f76edc9ba53eb16d59ff4c148f0ea9a98b
|
|
| MD5 |
7557cee76281d02a7b03a14356a8c131
|
|
| BLAKE2b-256 |
64bbf721c228c08447826fb03eaaa3cc79de6af6aada5feaedb2ff311b79260f
|
File details
Details for the file nexusquant_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nexusquant_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14920e4a18a784b5e7942f9087dd5a669c0c31b5e5ee8def19d17cfdb12e6105
|
|
| MD5 |
0df3ff5a8a08733f8c93cb0be864e15b
|
|
| BLAKE2b-256 |
47f6431967111117d1e1373911c89eb28ecc61b5ebdc04f01c55214509ddc201
|