Nexus: perpetuals exchange testnet and zkVM research

Nexus combines a perpetual futures exchange testnet with research into a zero-knowledge virtual machine for proving program execution. The exchange uses synthetic dollar balances, an order book, and a shared margin account. Its zkVM addresses verifiable computation and remains experimental. Trading, building an exchange client, and contributing proof work involve different tools and requirements.

updated

A perpetual contract provides price exposure without a fixed expiry. The exchange handles orders and account risk, while the proving technology concerns computation.

Testnet trading from account access to an executed order

Trading on the testnet requires authenticated account access and synthetic collateral before the matching engine can accept an order that creates exposure. Wallet-signed login can establish a session for managing API keys, while trading requests use request authentication that the SDK handles for supported operations. Faucet funding supplies the test balance. The terminal presents charts, an order book, and an order ticket, while software clients submit orders through the exchange API.

An accepted order and an executed trade are different account states. A limit order may remain open while waiting for compatible liquidity. Fills record execution, and position information shows the resulting exposure. The order history, fills, and account state therefore answer different questions. A request acknowledgement alone does not establish that the entire requested quantity traded, and an open order can still require cancellation.

Can testnet USDX be redeemed for real dollars?

Testnet USDX has no real-world value, so a displayed balance or trading profit does not represent redeemable dollars.

The exchange testnet uses synthetic USDX supplied through a faucet. Dollar quotation makes orders and margin calculations comparable within the test environment, without creating a reserve claim or converting simulated profit into cash. The same limitation applies when account tools display deposit or withdrawal terminology.

The exchange remains a development preview, and the indexer’s cumulative statistics counters reset on redeployment. Real-funds mainnet trading is a separate deployment that is not live in the documented preview. A mainnet configuration entry in software does not establish service availability.

Graphic: Nexus - Can testnet USDX be redeemed for real dollars?

Open full-size image

Cross margin connects positions through one account balance

The exchange cross-margins positions through a shared dollar account, so exposure needs consideration across the account as well as within an individual contract. Collateral supports the combined positions under the venue’s risk model. The matching engine checks margin before accepting orders. Account tools distinguish balance, equity, margin, and withdrawable funds; these fields describe different constraints. Market information exposes initial and maintenance margin rates, plus maximum leverage, with settings specific to the selected market and deployment. Neither a maximum leverage label nor a positive balance establishes that a proposed order will pass the margin check. Funding also contributes to position accounting: contract-level history describes market rates, while account records show funding paid or received.

Order matching, liquidity, and the controls around a quote

The exchange matches its central-limit order book using price-time priority. Compatible orders meet inside the matching engine, and fills settle against the dollar account. Crypto perpetuals include BTC, ETH, and SOL contracts. The broader exchange design also covers perpetuals referencing equities, foreign exchange, and commodities; available contracts come from the deployment’s market directory.

Limit prices and immediate execution

A limit order bounds the acceptable execution price, while market orders seek available liquidity without that limit-price field. Price increments, quantity increments, and size bounds affect order validity. Tick size describes the permitted price step, while lot size concerns quantity. These parameters belong to each contract, and their displayed values can change.

Maker handling and quote management

Post-only handling rejects a limit order that would take liquidity on entry. Batch placement, price or size amendments, and market-scoped cancellation support quote management. Maker and taker fee treatment follows execution behavior. Account fee information reports the standard crypto-group schedule, which does not establish fees for every market. The configured rate limits govern how quickly requests can enter the system.

Graphic: Order matching, liquidity, and the controls around a quote (Nexus)

Open full-size image

A resting quote and a moving order book

Consider two hypothetical testnet limit buy orders that differ only in time-in-force policy: good-till-cancelled, or GTC, and post-only. The account, market status, price, quantity, and order-book states are hypothetical. Both orders target an active market, satisfy its increments and size bounds, and draw on an account with sufficient margin. Let p denote the chosen buy price and a the best available sell price when the engine evaluates the order.

On the normal path, p is below a, so neither order crosses the book and either policy can leave a valid order resting. The order record shows open quantity, while the fill history has no execution from that resting placement.

For the edge case, the sell side moves before evaluation and a becomes equal to or lower than p. The GTC order can match available sell liquidity within its price limit. The exchange rejects the post-only order with WouldTakeLiquidity, producing no fill from that submission.

The post-only rule stays the same while the best sell price changes. Order status and fill records provide an independent check of what happened, separate from the earlier order-book snapshot. A rejection in this case reflects the requested maker policy, even though the price and quantity remain valid.

Terminal, SDKs, and automated exchange access

The terminal and software clients connect to the same exchange API, with interfaces suited to different ways of working. Rust, TypeScript, Python, and Go SDKs provide language-specific clients. The exchange CLI supports shell-based access. A Model Context Protocol server exposes exchange operations to compatible assistants and agents. These options change how a request is constructed and presented. They retain the exchange’s authentication, market rules, and account risk checks.

Client coverage and maturity vary by implementation and release, so a shared API contract does not mean every SDK wraps every operation. Pre-1.0 API changes can require client updates, and testnet credentials belong to their issuing network. Moving a client to another environment involves its credential scope as well as its connection settings.

What does a zkVM proof actually establish?

A zkVM proof establishes correct execution of a specified program against the inputs and output that its verification statement covers. The Nexus zkVM generates cryptographic proofs of program execution. This work concerns computing results that another party can verify, separately from placing perpetual orders.

Program correctness and the application’s rules

Written in Rust, the implementation uses the Stwo proving system within a modular architecture that developers can inspect and extend. Application logic still determines which inputs are acceptable and what the output means. Correctly executing that logic does not by itself establish that its assumptions match the outside world.

Data exposed to the verifier

Public inputs and outputs

Public inputs and outputs form part of the statement that a verifier checks, so deliberately publishing them also releases their contents. A proof can establish the computation behind an output without making the output itself confidential.

Private inputs

Private-input patterns allow a computation to use data without including it as a public input, although the program’s output can still reveal information about it. Privacy therefore depends on the statement and application design, including what the computation releases.

The zkVM remains experimental and is not recommended for production use. Open implementation details support inspection, but they do not remove that deployment limitation.

Proving nodes and the separate compute tooling

Proving nodes contribute computing resources to proof work through the project’s compute tooling. The compute CLI implements wallet registration, node identity, and proof submission, with task difficulty that adapts to performance. This differs from writing an application for the zkVM and from submitting exchange orders. Node participation concerns assigned computation, while exchange participation concerns authenticated account activity and market exposure. Node requirements and available work depend on the compute release, the assigned task, and the active network environment.

Visual outline: Nexus - Proving nodes and the separate compute tooling
Diagram: Proving nodes and the separate compute tooling

Open full-size image

Everyday questions about Nexus

Do I need an API key to read public market prices?

Public market summaries, tickers, and order-book data can be read without trading credentials. Account balances, private fills, and order submission require the relevant authentication. A client that reads a price successfully has not demonstrated that its credentials permit trading, and public market data does not expose another account’s private activity.

Can a registered trading agent withdraw account funds?

Registered agent keys are trade-scoped and cannot authorize withdrawals. The Python agent client also refuses withdrawal operations and agent management before signing or sending those requests. Withdrawals use the HMAC authentication path. The agent can still submit trades that affect the account’s exposure.

What happens to resting orders when a trading client disconnects?

Automatic cancellation depends on an active, opted-in cancel-on-disconnect setting and the account’s authenticated WebSocket connections. The mechanism cancels resting orders after the last such connection drops without reconnecting within the configured grace window. Enabling the account preference alone is insufficient if the exchange-side feature is inactive. Clients that use only REST and never open an authenticated WebSocket are outside this mechanism’s coverage.

Does an accepted pre-trade preview mean that an order was placed?

A pre-trade preview projects an order’s impact without submitting the order. Its acceptance field describes the projected evaluation, alongside margin, equity, fee, and execution estimates. It does not create a live order or record a fill. Actual placement needs an order submission, and the later account records establish whether that submission was accepted and executed.

How can I tell whether a position paid or received funding?

The position’s cumulative funding field uses paid-positive signs: positive means paid funding, and negative means received funding. That total reflects the history that the indexer retains. Account funding records identify individual payments and their direction. A market funding rate describes a different quantity from the account’s payment amount.

Is the Nexus compute CLI the same tool as the exchange CLI?

The compute CLI and exchange CLI perform different jobs. The compute command is nexus-compute-cli, which manages node participation and proof work. The exchange command is nexus, which exposes market data, account information, and trading operations through the Rust exchange SDK. A node ID identifies proof participation, while exchange API credentials authorize account operations.

Are all exchange API operations available through the Python SDK?

The Python SDK wraps a defined subset of its pinned API specification. Its documented exclusions include the bridge-wallet operations and the legacy WebSocket-token endpoint. It does provide the newer token operation for authenticated WebSocket access. An operation’s presence in the exchange contract therefore does not establish a Python wrapper for it; compatibility depends on the SDK release and the operation that the application needs.