pythonPython SDK

A Python SDK for interacting with the Nexus DEX

Overview

The Nexus Python SDK provides a simple interface for trading, accessing market data, and managing accounts on the Nexus DEX. This SDK supports both REST and WS API connections.

Installation

# Install via pip
pip install nexus-sdk

Quick Start

from nexus import RESTClient

# Initialize client
client = RESTClient({
    "base_url": "https://api.nexus.xyz",
    "chain_config": {
        "rpc_url": "https://rpc.nexus.xyz",
        "private_key": "your_private_key", # optional - include for write operations
    }
})

# Get market data
products = client.list_products()
tokens = client.list_tokens()

Last updated