Skip to main content

Nuant Quantitative System SDK

Project description

Getting Started

Nuant Quantitative System SDK is a purpose-built SDK for decentralized finance. It enables a unified lifecycle that supports research, protocol-level simulation, backtesting, optimization, and live monitoring. Designed to empower quants, researchers, and developers, NQS makes it easy to experiment, iterate, and bring DeFi protocols and strategies from concept to execution.

This repository is the public endpoint for the nqs-sdk package, available on PyPI, providing all the tools needed to build, test, and run strategies within a single, integrated environment.

Prerequisites

Before installing the NQS SDK, ensure you have:

  • Python 3.12 or 3.13
  • pip package manager

Installation

Install the NQS SDK using pip:

pip install nqs-sdk

Note: This installation will also include several other packages provided by Nuant.

Environment Configuration

Get your API key from

https://agents.nuant.ai/subscribe

This following command creates a nuant-quantlib.toml file with the required proxy configuration for accessing Nuant’s GraphQL API. Make sure to replace YOUR_API_KEY.

(
echo "[proxy]"
echo 'url = "https://data.app.nuant.com/graphql"'
echo 'api-key = "YOUR_API_KEY" # <- the one, you got previously'
) > nuant-quantlib.toml

Then, export it as an environment variable:

export QUANTLIB_CONFIG=/path/to/nuant-quantlib.toml

Verify Installation

First, verify that the installation was successful:

import nqs_sdk
print(f"NQS SDK version: {nqs_sdk.__version__}")

Quick Start

Basic Use Case

Here’s a simple example to get you started with the NQS SDK:

from nqs_sdk import Simulation
from nqs_sdk.protocols import UniswapV3
import json

# Initialize simulation with protocols and configuration
# You can use the example config or create your own with create_config.py
uniswap_v3 = UniswapV3Factory() # factory for all UniswapV3 instances
sim = Simulation([uniswap_v3], "./examples/configs/basic_config.yml")

# Run the simulation
all_observables_str = sim.run() # this intermediate step will be fixed soon
all_observables = json.loads(all_observables_str)

# Access results
print(f"Simulation completed with {len(all_observables)} observables")

Getting Involved

Now that you have the NQS SDK installed and understand the basics, you might want to:

Known issues and roadmap

Coming soon:

  • API stabilisation
  • API examples with arbitrageur or other multi-agents scenarios

And later:

  • Compound V2 support, more protocols will follow

  • Open Rust API to extend core interfaces directly in Rust

  • API for external data provider

    (currently the NQS SDK uses quantlib and data.app.nuant.com for data handling)

  • EVM based any protocol executions

Known issues:

  • Support of Python 3.11
  • Support of Linux arm64

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

nqs_sdk-0.6.4-cp313-cp313-win_amd64.whl (12.0 MB view details)

Uploaded CPython 3.13Windows x86-64

nqs_sdk-0.6.4-cp313-cp313-manylinux_2_28_x86_64.whl (14.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

nqs_sdk-0.6.4-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (22.6 MB view details)

Uploaded CPython 3.13macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

nqs_sdk-0.6.4-cp312-cp312-win_amd64.whl (12.0 MB view details)

Uploaded CPython 3.12Windows x86-64

nqs_sdk-0.6.4-cp312-cp312-manylinux_2_28_x86_64.whl (14.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

nqs_sdk-0.6.4-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (22.6 MB view details)

Uploaded CPython 3.12macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file nqs_sdk-0.6.4-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: nqs_sdk-0.6.4-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 12.0 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for nqs_sdk-0.6.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 429546c521b7da6c573dca866e20cc984e11cb82028d6d6d82b76123ac09cf6f
MD5 5c2da7353002986a35d62a125a37659e
BLAKE2b-256 83d8b1d7ee833035d3b2e7c41e21e450ba36b69c899652e091c874ff29850e53

See more details on using hashes here.

File details

Details for the file nqs_sdk-0.6.4-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nqs_sdk-0.6.4-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8e83ea2f4a08ef8a0e029b5afbb69f26874783e6e73b1608c19cb4b7dd2b7fa2
MD5 1d28546c2a7a32d0853e6301e09382fc
BLAKE2b-256 a478f6dfc4c48cd20a126077a36b164d5006f2b5d61a4010b99a5f98e7083b4c

See more details on using hashes here.

File details

Details for the file nqs_sdk-0.6.4-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for nqs_sdk-0.6.4-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 533f6d1037c9aa3485552b99c190ad98bfdfecd2cd57c7883a6d409f656e8824
MD5 7f0fd153b664f996d628c979696f79cf
BLAKE2b-256 32734e83757593d9e4568d4635fd6296b9f94733f9db7b15d95d4b52a86d5fef

See more details on using hashes here.

File details

Details for the file nqs_sdk-0.6.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: nqs_sdk-0.6.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 12.0 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for nqs_sdk-0.6.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ba8681975b9a0f39df7d5a2c4f6d31186f9d956ccc73f1307d97f3fcabf7043a
MD5 bfd5c3448d06319b27f24ae8d1a19f09
BLAKE2b-256 1bc1b03a610a29f830f338a7722ed49547ab54481ff50840f70c864403ac6a6f

See more details on using hashes here.

File details

Details for the file nqs_sdk-0.6.4-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nqs_sdk-0.6.4-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b06d7179a2b753c140ed3229ca121d9139e0a8f3a03c376ec8f34e5a35240d91
MD5 bb40d4c2a2fc383ebaf7c00b57ff210c
BLAKE2b-256 e3a59db6dfafe0f3efe0ebe77dc60dd64aeac18d6d9a94e7466f32b6ba64b294

See more details on using hashes here.

File details

Details for the file nqs_sdk-0.6.4-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for nqs_sdk-0.6.4-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 04b10c8337cf763e6ac4e786ff522fa1290df3bded5b0a74d9222aa2b40cfb88
MD5 85a1ffd89d90645bbae38fa9711f1d3f
BLAKE2b-256 56fcb90187cba6183f1d72537168efb8f3c8c1ccc8ecb28b3b2d8cef1e96f5c6

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