nexus-exchange-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NEXUS_EXCHANGE_API_KEY | No | HMAC API key id (x-api-key). Required for account/trade tools. | |
| NEXUS_EXCHANGE_API_URL | No | API base URL. Defaults to https://exchange.nexus.xyz/api/exchange. | https://exchange.nexus.xyz/api/exchange |
| NEXUS_EXCHANGE_API_SECRET | No | HMAC secret (hex). Required for account/trade tools. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_marketsA | List all tradable markets with their current summary (mark price, 24h change, volume, open interest, funding). Public — no credentials needed. |
| get_tickerA | Get the ticker (last price, bid/ask, 24h stats) for one market, e.g. "BTC-USDX-PERP". Public — no credentials needed. |
| get_orderbookA | Get the current order book (bids/asks with price + size) for one market. Public — no credentials needed. |
| list_market_specsA | List all markets with their static specs (tick size, lot size, leverage, contract details) — the raw market definitions without live summary stats. Public — no credentials needed. (Use |
| get_tickersA | Get tickers (last price, bid/ask, 24h stats) for ALL markets in one call. Public — no credentials needed. |
| get_mark_priceA | Get the current mark price for one market. Public — no credentials needed. |
| get_market_statusA | Get a market's trading status and halt info (whether trading is open, halted, or in auction). Public — no credentials needed. |
| get_tradesA | Get recent public trades (prints) for one market. Public — no credentials needed. |
| get_candlesB | Get OHLCV candles for one market. Public — no credentials needed. Timeframe is one of 1s, 1m, 5m, 1h (default 1m). |
| get_funding_historyA | Get the funding-rate history for one perpetual market. Public — no credentials needed. |
| get_funding_samplesA | Get the dense per-tick funding premium-index samples for one perpetual market (60s cadence, up to 480 points = 8h). Finer-grained than |
| get_market_risk_paramsA | Get one market's risk parameters: margin requirements and maximum leverage, from the engine's market registry. Public — no credentials needed. |
| get_statsA | Get aggregate venue statistics (volume, trades, throughput) plus rolling unique-trader counts. Public — no credentials needed. |
| get_stats_historyA | Get the venue's per-second throughput history (ring buffer, up to 3600 points). Public — no credentials needed. |
| get_demo_accountA | Get a live, public demo account snapshot (balance, equity, positions). No credentials needed — useful to show the account flow before API keys are wired up. |
| get_demo_positionsA | Get the public demo account's open positions. No credentials needed. |
| get_demo_ordersA | Get the public demo account's open orders. No credentials needed. |
| get_balanceB | Get the authenticated account snapshot: collateral balance, equity, and positions. Requires API credentials. |
| get_account_summaryA | Get the authenticated account's portfolio summary (equity, margin usage, PnL rollup) — a richer view than |
| get_equity_historyA | Get the authenticated account's equity time-series (5s cadence, ~1h window), oldest first. Requires API credentials. |
| get_positionsB | Get the authenticated account's open positions. Requires API credentials. |
| get_closed_positionsA | Get the authenticated account's closed positions (realized PnL per position). Requires API credentials. |
| get_open_ordersA | Get the authenticated account's resting (open) orders. Requires API credentials. |
| get_orderA | Get a single order by its id (status, fills, remaining size). Pass |
| get_order_historyA | Get the authenticated account's terminal-status order history (filled / cancelled / rejected / expired), newest first. Requires API credentials. |
| get_fillsB | List the authenticated account's recent fills (executed trades). Requires API credentials. |
| get_funding_paymentsA | Get the authenticated account's funding-payment history, newest first, optionally filtered to a single market. Requires API credentials. |
| get_withdrawalsB | List the authenticated account's withdrawal history. Requires API credentials. |
| list_depositsB | List the authenticated account's deposit history. Requires API credentials. |
| get_rate_limit_statusA | Get the authenticated account's current rate-limit status (remaining request budget). Useful for an agent to pace itself. Requires API credentials. |
| get_adl_historyA | Get the auto-deleveraging (ADL) events that touched a given account. Requires API credentials. |
| place_orderA | Place an order on a market. Supports limit and market orders, buy/sell. For limit orders a |
| place_orders_batchA | Submit multiple orders in one request. Each order has the same shape as |
| cancel_orderA | Cancel a resting order. Pass |
| amend_orderA | Amend a resting order's price and/or size in one atomic cancel-replace operation. At least one of |
| preview_orderA | Preview an order without submitting it: projects the margin, equity, and fee impact of the order. Takes the same arguments as |
| get_market_adl_eventsA | Get the auto-deleveraging (ADL) settlement history for one market — the events where the engine force-closed positions to cover a shortfall. Requires API credentials. |
| deposit_collateralB | Deposit USDX collateral into the authenticated account. |
| claim_creditA | Claim synthetic USDX credit from the testnet faucet, up to a per-key daily allowance (default 500 USDX, resets midnight UTC). Pass |
| submit_depositA | Submit a (testnet/synthetic) deposit for the authenticated account via the deposits ledger ( |
| claim_faucetA | Claim the fixed testnet faucet amount of synthetic USDX for the authenticated account, subject to a per-wallet cooldown and cumulative cap. Unlike |
| adjust_isolated_marginA | Add or remove isolated margin on an open position. Fails if the position is not in isolated margin mode (MarginModeNotIsolated), if there is no open position in the market (NoOpenPosition), or if a removal breaches the margin floor. |
| list_agentsA | List the delegated agent keys registered for the authenticated wallet (address, label, expiry). Requires API credentials. |
| register_agentA | Register a delegated agent key so an AI agent can trade on a wallet's behalf without holding the wallet key. Authorized by an EIP-712 signature from the OWNER WALLET over |
| revoke_agentA | Revoke a previously registered delegated agent key by its address. Destructive: the agent can no longer trade on the wallet's behalf. To avoid an accidental revoke you must pass |
| loginA | Sign in with an EVM wallet to get a 24h session token. Submit an EIP-191 personal_sign signature over the exact message "Sign in to Nexus Exchange". This server cannot sign for you — produce the signature in the wallet and pass it as |
| list_api_keysA | List the HMAC API keys for the authenticated wallet (key ids and metadata; never the secrets). Authenticates with a session token from |
| create_api_keyA | Create a new HMAC API key for the authenticated wallet. The secret is returned ONCE and never shown again — store it immediately. Authenticates with a session token from |
| delete_api_keyA | Delete (revoke) an HMAC API key by its key id. Destructive: any caller using that key stops working. You must pass |
| get_ws_tokenA | Mint a short-lived (60s, single-use) token for an authenticated per-account WebSocket stream (order/fill/position updates). Uses the current |
| get_ws_token_legacyA | Mint a short-lived (60s, single-use) token for the legacy public |
| get_healthA | Health check for the exchange gateway (liveness/readiness). Public — no credentials needed. |
| get_readinessA | Engine readiness probe: 200 once every configured market has received its first oracle price this run, 503 while any market is still in the oracle warm-up window. Distinct from |
| get_service_statusA | Aggregate service health of the exchange stack (indexer / engine / oracle / bots), as used by status pages. Public — no credentials needed. |
| get_deposit_targetC | Get the on-chain deposit target (address/memo) to fund the account. Not yet available — the gateway exposes deposit submission but no deposit-address endpoint yet. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nexus-xyz/nexus-exchange-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server