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. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| 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, newest first. Returns |
| 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_balanceA | Get the authenticated account snapshot: collateral balance, equity, and positions. Positions carry per-position risk detail. |
| get_account_summaryA | Get the authenticated account's portfolio summary (equity, margin usage, PnL rollup) — a richer view than |
| get_account_stateA | Get the authenticated account's full state in ONE call: the portfolio summary aggregates plus every open position ( |
| get_account_feesA | Get the authenticated account's effective fee schedule: maker/taker rate in basis points (a NEGATIVE maker rate is a rebate paid TO the maker), fee tier, rolling 30-day traded volume, and any active discounts. This is the forward-looking schedule rate for the scope named by |
| get_portfolio_historyA | Get the authenticated account's portfolio time-series — equity, cumulative trading PnL, and cumulative traded volume — over a selectable window, oldest first. Richer than |
| get_equity_historyA | Get the authenticated account's equity time-series (5s cadence, ~1h window), oldest first. For a longer window, or for PnL and volume series alongside equity, use |
| get_positionsA | Get the authenticated account's open positions. Positions carry per-position risk detail. |
| get_closed_positionsA | Get the authenticated account's closed positions (realized PnL per position). Returns |
| 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. Returns |
| get_fillsA | List the authenticated account's fills (executed trades), newest first. Returns |
| get_funding_paymentsA | Get the authenticated account's funding-payment history, newest first, optionally filtered to a single market. Requires API credentials. |
| get_withdrawalsA | 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. |
| get_cancel_on_disconnectA | Get the authenticated account's cancel-on-disconnect (COD) status. COD is an opt-in dead man's switch: when the account's last authenticated WebSocket connection drops and does not reconnect within the grace window, the exchange cancels all of the account's resting orders. Returns |
| set_cancel_on_disconnectA | Enable or disable cancel-on-disconnect (COD) for the authenticated account. Pass |
| place_orderA | Place an order on a market, buy/sell. Supports limit, market, stop-loss (stop_limit / stop_market), take-profit (take_profit_limit / take_profit_market), and trailing (trailing_stop / trailing_limit) orders. Limit-family orders require 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. |
| get_bridge_assetsA | List the bridgeable chains and, per chain, the depositable assets (USDC, USDX) and withdrawable assets (USDX) with their decimals, minimum amounts, required confirmations, and fees. Public catalog — no credentials needed. Use it to discover valid |
| create_bridge_deposit_addressA | Get or create the authenticated account's cross-chain deposit address on a chain. Sending a supported asset to the returned address credits the account. Idempotent per (account, chain): repeated calls return the same address rather than allocating a new one. Requires API credentials. |
| list_bridge_deposit_addressesA | List the authenticated account's cross-chain deposit addresses across chains. Requires API credentials. |
| list_bridge_depositsA | List the authenticated account's cross-chain (bridge) deposits, newest first. Optionally filter by source |
| get_bridge_depositA | Fetch a single cross-chain (bridge) deposit by id. Only deposits owned by the authenticated account are returned. Requires API credentials. |
| create_bridge_wallet_challengeA | Step 1 of registering a withdrawal wallet: returns the exact |
| register_bridge_walletA | Step 2 of registering a withdrawal wallet: submit the |
| list_bridge_walletsA | List the authenticated account's registered withdrawal wallets. Wallets are not chain-scoped: one EVM address is valid on every supported EVM chain, and the chain is chosen per withdrawal. In this cut an account holds at most one wallet and both |
| 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_service_statusA | Aggregate service health of the exchange stack (indexer / engine / oracle / bots), as used by status pages. Public — no credentials needed. |
| get_deposit_targetA | Get the on-chain deposit target (address/memo) to fund the account. Superseded on the direct surface by the bridge deposit-address tools ( |
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
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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