qmax

Qubic DEX aggregator: best-price quotes across QX and QSwap, order books, candles, trade plans.

我该使用它吗

质量与安全性

A
描述质量
98%
模式完整度
92%
命名质量
80%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

发现(1)

  • LOWTool 'qmax_list_pools' description lacks action verb在 qmax_list_pools 中

基于对工具定义和协议合规性的自动分析。

上下文开销

~5,757token 数(工具定义)
~1.5 KB典型响应大小
对注意力有显著影响(占 128k 上下文窗口的 4.50%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "qmax": {
      "url": "https://qmax.exchange/api/mcp"
    }
  }
}

远程端点

https://qmax.exchange/api/mcpstreamable-http

它能做什么

工具清单

工具(19)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢qmax_list_assets(query, category, limit)

Lists assets that trade on QX and/or QSwap, most liquid first, or searches by symbol. Use this first to find the right asset symbol and to see which markets it trades on ('QX', 'QSwap' or both: only assets on both can be split for a better price). Returns: { count, assets: [{ id, symbol, category ('contract' shares or 'token'), venues, priceQu, liquidityQu, activity }] }. Prices are QU per unit.

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "description": "Part of a symbol to search for, e.g. 'QD'",
      "type": "string",
      "maxLength": 32
    },
    "category": {
      "description": "Only smart-contract shares or only tokens",
      "type": "string",
      "enum": [
        "contract",
        "token"
      ]
    },
    "limit": {
      "default": 25,
      "description": "Most assets to return",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_get_quote(side, asset, qty, slippage_bps, split)

Prices an order and finds the cheapest route across the QX order book and the QSwap pool, splitting the order across both when that is cheaper. Nothing is placed. Returns the total in QU, the average price, each leg (venue, quantity, price range, fees, price impact), what each single market alone would cost, a plain-English line saying what the routing saved, and warnings. All amounts are QU; quantities are whole units. The quote is a snapshot: prices move, so re-quote before acting.

输入模式

{
  "type": "object",
  "properties": {
    "side": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ]
    },
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one."
    },
    "qty": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991,
      "description": "How many units of the asset"
    },
    "slippage_bps": {
      "default": 100,
      "description": "Slippage tolerance in basis points (100 = 1%), applied to the limits in route[].execution",
      "type": "integer",
      "minimum": 0,
      "maximum": 1000
    },
    "split": {
      "default": true,
      "description": "false prices the best single market only",
      "type": "boolean"
    }
  },
  "required": [
    "side",
    "asset",
    "qty"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_build_plan(side, asset, qty, slippage_bps, holdings_qx, ...)

Quotes an order and returns the exact transactions a wallet must sign to carry it out, in order. QMax signs nothing and sends nothing: you (or the user) sign each step with your own wallet and broadcast it. Steps (in order): any share-management move needed first (selling shares that the other market manages), then one call per market. Each step: kind, description, destination (a smart contract by index), inputType (procedure number), amountQu to attach (QU that may leave the wallet; unused QU is refunded by the contracts) and payloadBase64 (the call's input bytes). 'maxOutlayQu' is the most QU that can leave the wallet across all steps, so check it against your own spending limit BEFORE signing. Sending a step moves real funds. For a sell, pass how many shares the wallet holds under QX management and under QSwap management (holdings_qx, holdings_qswap) so the right moves are planned. Buys need no holdings.

输入模式

{
  "type": "object",
  "properties": {
    "side": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ]
    },
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one."
    },
    "qty": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "slippage_bps": {
      "default": 100,
      "type": "integer",
      "minimum": 0,
      "maximum": 1000
    },
    "holdings_qx": {
      "default": 0,
      "description": "Selling only: units of this asset the wallet holds that QX manages",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "holdings_qswap": {
      "default": 0,
      "description": "Selling only: units of this asset the wallet holds that QSwap manages",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "side",
    "asset",
    "qty"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_get_health(asset)

A 0 to 100 score and A to E grade for an asset, from its QX order book, its QSwap pool and six months of trades, with flags and plain-English reasons (most important first). Flags include thin-book, wide-spread, quiet, few-trades, new-listing, volume-spike, one-sided, pool-dominated and wash-suspected / bot-burst (a single wallet churning tiny same-size swaps against itself, which inflates trade counts but not volume). Many assets grade D or E because QX markets are thin: that is information, not an error. It is an automated estimate from public data and NOT advice; the absence of 'wash-suspected' is not proof of a clean market (large wash trades are not detectable from this data). Omit 'asset' to get every asset's grade in one call.

输入模式

{
  "type": "object",
  "properties": {
    "asset": {
      "description": "Leave out for all assets (grade, score, flags, top reason each)",
      "type": "string",
      "minLength": 1,
      "maxLength": 32
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_get_tape(asset, limit, since, venue)

The most recent trades on both markets in one feed, newest first: time, market, asset, quantity, QU, price and direction. The direction is the TAKER's side (the person who started the trade): 'buy' or 'sell'. Rows also carry the transaction hash. The answer includes 'flow24h', the last 24 hours of buy versus sell volume, and 'latestId': pass it back as 'since' to get only newer trades. Served from memory, so cheap to poll.

输入模式

{
  "type": "object",
  "properties": {
    "asset": {
      "description": "Only this asset (leave out for all)",
      "type": "string",
      "minLength": 1,
      "maxLength": 32
    },
    "limit": {
      "default": 30,
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "since": {
      "description": "Only trades newer than this id (the latestId from an earlier call)",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "venue": {
      "type": "string",
      "enum": [
        "QX",
        "QSwap"
      ]
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_get_flow(asset, window, venue)

Buy and sell volume (QU and units), trade counts and net pressure (positive = more buying) over the last hour or 24 hours, for one asset or the whole market. Direction is the taker's side. 'partial' is true while the server is still loading the window.

输入模式

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one."
    },
    "window": {
      "default": "24h",
      "type": "string",
      "enum": [
        "1h",
        "24h"
      ]
    },
    "venue": {
      "type": "string",
      "enum": [
        "QX",
        "QSwap"
      ]
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_get_sellers(asset)

For the last 7 days: the wallets that sold the asset on QX or QSwap, how long each had held the units (each unit sold is matched, first in first out, to the purchase it came from), what they paid and whether they sold above or below that, with a plain-language reading ("what the numbers say"). Read from the public Qubic archive, so the first call for an asset starts the reading and answers status "working" with its progress and what is known so far: call again in 30 to 60 seconds until status is "ready" (a reading takes a minute or two and is kept for six hours). The chain shows who sold and what they paid, not why. Free.

输入模式

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one."
    }
  },
  "required": [
    "asset"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_swap_quote(from, to, qty, slippage_bps, compare)

Plans swapping one token for another as two linked trades: sell 'from' for QU (leg 1), then buy 'to' with the QU (leg 2), each routed across QX and QSwap by the best route. Read-only: nothing is signed. Returns both quotes, 'upfrontQu' (QU the wallet must hold BEFORE leg 1 for its flat fees), 'expectedOutQty' (what you should get) and 'minOutQty' (guaranteed by the limits only if neither price moves past the slippage limit), plus warnings. Leg 2 can only be sized exactly after leg 1 settles, from the wallet's real balance, so a swap is never one atomic transaction: if leg 1 completes and leg 2 cannot proceed you are left holding QU. Both tokens must trade on QX or QSwap; QU itself is not a swap leg (use qmax_get_quote).

输入模式

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Token to sell"
    },
    "to": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Token to buy"
    },
    "qty": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991,
      "description": "How many units of 'from' to sell"
    },
    "slippage_bps": {
      "default": 100,
      "type": "integer",
      "minimum": 0,
      "maximum": 1000
    },
    "compare": {
      "default": false,
      "description": "Also plan the same swap forced onto each single market (QX or QSwap per leg) and say what QMax's route is worth against them (bestDeal). Slower.",
      "type": "boolean"
    }
  },
  "required": [
    "from",
    "to",
    "qty"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_get_wallet_ledger(identity, days)

Every QX and QSwap buy and sell a wallet made (read from public on-chain transfers, so any 60-letter identity works): price, QU net of fees, estimated fees, running position, and average-cost realized profit, plus current positions with unrealized profit and loss. ESTIMATED. Read 'warnings' and 'truncated': the archive has no events for about 10 to 14 June 2026, units that arrived before the window or by transfer have no known cost (selling them is not counted as profit), and QSwap liquidity changes appear as transfers. Unrealized P&L uses the mid or pool price, which can mislead on thin markets. Takes a few seconds and many archive reads, so ask once and keep the answer. Not tax advice.

输入模式

{
  "type": "object",
  "properties": {
    "identity": {
      "type": "string",
      "pattern": "^[A-Z]{60}$",
      "description": "The wallet's 60-letter identity"
    },
    "days": {
      "default": 180,
      "type": "integer",
      "minimum": 1,
      "maximum": 365
    }
  },
  "required": [
    "identity"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_get_liquidity_positions(identity)

Every QSwap pool a wallet has liquidity in (public chain data, so any 60-letter identity works): its liquidity units, share of the pool, what removing it all would pay (QU and tokens, before QSwap's flat 100,000 QU fee) and its value in QU at the pool's own price, read live from the contract. Read-only. Adding or removing liquidity is done in the QMax app with a wallet; this tool never builds or signs one. Check 'complete': when false, a pool could not be read and its positions are missing. 'earnedFeesQu' is already inside what removing pays, nothing pays it separately. Values are estimates at the pool's price, which can be far from what the tokens sell for on a thin market.

输入模式

{
  "type": "object",
  "properties": {
    "identity": {
      "type": "string",
      "pattern": "^[A-Z]{60}$",
      "description": "The wallet's 60-letter identity"
    }
  },
  "required": [
    "identity"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_get_liquidity_pool(asset)

A QSwap pool's reserves (QU and tokens), total liquidity units and price, read from the contract. Use it to see how deep a pool is before talking about providing liquidity. Adding or removing liquidity each cost a flat 100,000 QU on top of any deposit. Read-only.

输入模式

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one."
    }
  },
  "required": [
    "asset"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_get_candles(asset, range, interval, venue)

Open, high, low, close, QU volume, units and trade count per candle, built from every trade QX and QSwap logged (a minute wide at the finest; about six months back, which is all the Qubic archive has: its trade records begin in April 2026). A candle exists only where something traded, so a gap means no trades. The response also gives the last 24 hours of volume across both markets. Returns: { asset, range, interval, venue, candles: [{ t (ms), o, h, l, c, volumeQu, volumeQty, trades }], truncated?, available?, volume24hQu, trades24h }. Prices are QU per unit.

输入模式

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one."
    },
    "range": {
      "default": "7d",
      "description": "How far back to look. 'all' is everything QMax has (about six months).",
      "type": "string",
      "enum": [
        "1d",
        "7d",
        "30d",
        "90d",
        "all"
      ]
    },
    "interval": {
      "description": "Candle width: a minute up to a day (default suits the range). One answer holds at most the latest 5,000 candles",
      "type": "string",
      "enum": [
        "1m",
        "5m",
        "15m",
        "30m",
        "1h",
        "4h",
        "1d"
      ]
    },
    "venue": {
      "default": "auto",
      "description": "Which market's prices: QX (order book), QSwap (pool), 'all' (treat both as one market), or 'auto' (the market the live price comes from).",
      "type": "string",
      "enum": [
        "auto",
        "QX",
        "QSwap",
        "all"
      ]
    }
  },
  "required": [
    "asset"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_get_price_history(asset, range)

The asset's price over time as points (ms timestamp, price in QU, and for recently recorded points the best bid, ask and pool price). Points before 'recordedSince' were rebuilt from past trades as hourly volume-weighted averages (marked src 'trades'); after it QMax recorded the price about every 10 minutes. Use qmax_get_candles for OHLC and volume.

输入模式

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one."
    },
    "range": {
      "default": "7d",
      "description": "How far back to look. 'all' is everything QMax has (about six months).",
      "type": "string",
      "enum": [
        "1d",
        "7d",
        "30d",
        "90d",
        "all"
      ]
    }
  },
  "required": [
    "asset"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_get_order_book(asset, levels)

What is resting on the QX order book (grouped by price, with cumulative size and cost from the best price outward, best bid/ask, spread) and the QSwap pool (reserves, price, and how far trades of 0.1% to 5% of the pool would move the price). Use it to judge depth before sizing an order.

输入模式

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one."
    },
    "levels": {
      "default": 15,
      "description": "Price levels per side of the QX book",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "asset"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_check_arbitrage(asset, min_profit_qu, min_profit_pct, max_cost_qu)

Searches, live and at full depth, for a profitable buy-on-one-market, sell-on-the-other loop after every venue fee, and returns the most profitable size or null. It is two separate transactions, so the second leg can fill worse than shown; this is a snapshot, not a guarantee. Only assets on both markets can have one. A found result may be billed to the caller's QMax key (50 QU).

输入模式

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one."
    },
    "min_profit_qu": {
      "description": "Only an opportunity with at least this profit (QU)",
      "type": "number",
      "minimum": 0
    },
    "min_profit_pct": {
      "description": "Only one with at least this profit as a percentage of the QU put in",
      "type": "number",
      "minimum": 0
    },
    "max_cost_qu": {
      "description": "Most QU to put in (a budget); the search returns the best loop that fits",
      "type": "number",
      "minimum": 0
    }
  },
  "required": [
    "asset"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_venue_premium(asset, range, reference_qu)

Hour by hour, the gap between the asset's QX and QSwap prices (positive = QSwap dearer) and how often it was wider than the trading costs for a trade of 'reference_qu'. This is an UPPER BOUND on arbitrage, not a profit: it uses hourly average prices, so it leaves out the QX bid-ask spread (often wider than the costs) and the delay between the two transactions. Returns { bothVenues, breakEvenPct, points, summary, note }.

输入模式

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one."
    },
    "range": {
      "default": "30d",
      "type": "string",
      "enum": [
        "7d",
        "30d",
        "90d",
        "all"
      ]
    },
    "reference_qu": {
      "description": "Trade size in QU used to work out the break-even gap (default 10,000,000)",
      "type": "number",
      "minimum": 100000,
      "maximum": 1000000000000
    }
  },
  "required": [
    "asset"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_list_pools(window, sort, limit)

Every QSwap liquidity pool with its TVL, trailing swap volume, estimated fee APR (from real swap volume; only 0.192% of each swap's volume reaches liquidity providers), price change and impermanent loss over the window. A trailing estimate: past fees do not predict future fees, and volume that looks inflated (wash trading) is flagged in each pool's notes.

输入模式

{
  "type": "object",
  "properties": {
    "window": {
      "default": "7d",
      "type": "string",
      "enum": [
        "7d",
        "30d"
      ]
    },
    "sort": {
      "default": "apr",
      "type": "string",
      "enum": [
        "apr",
        "tvl",
        "volume"
      ]
    },
    "limit": {
      "default": 20,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_pool_detail(asset, window, position_qu)

One pool's numbers explained, and for a deposit size (position_qu, the QU value of both sides together) an estimate of fees per day, per 30 days and the impermanent loss for price moves of 10%, 25% and 50%. Adding and removing liquidity each cost a flat 100,000 QU.

输入模式

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one."
    },
    "window": {
      "default": "7d",
      "type": "string",
      "enum": [
        "7d",
        "30d"
      ]
    },
    "position_qu": {
      "type": "number",
      "minimum": 1,
      "maximum": 1000000000000000
    }
  },
  "required": [
    "asset"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢qmax_backtest(asset, range, venue, starting_qu, strategy)

Replays a strategy over real hourly trade data with the venues' real fees and reports what it would have done: final value, return, buy-and-hold comparison, max drawdown, fees paid, trades. Decisions are made on an hour's close and filled at the next hour's open; hours with no trades cannot be traded. Strategies: 'hold' (buy once, hold), 'dca' (spend amountQu every everyHours), 'bands' (buy fractionPct of the QU when the price is bandPct below its lookbackHours average, sell fractionPct of the holding when above, with a cooldown). READ 'warnings' in the result: there is no order book depth in the history, so large amounts are optimistic, and QSwap's flat 100,100 QU fee can swallow small trades. Past results do not predict future ones.

输入模式

{
  "type": "object",
  "properties": {
    "asset": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32,
      "description": "Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one."
    },
    "range": {
      "default": "90d",
      "type": "string",
      "enum": [
        "30d",
        "90d",
        "all"
      ]
    },
    "venue": {
      "default": "auto",
      "description": "Which market's prices: QX (order book), QSwap (pool), 'all' (treat both as one market), or 'auto' (the market the live price comes from).",
      "type": "string",
      "enum": [
        "auto",
        "QX",
        "QSwap",
        "all"
      ]
    },
    "starting_qu": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000000000,
      "description": "QU to start with, e.g. 10000000"
    },
    "strategy": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "hold",
            "dca",
            "bands"
          ]
        },
        "amountQu": {
          "description": "dca: QU per purchase, fees included",
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "everyHours": {
          "description": "dca: hours between purchases (168 = weekly)",
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "lookbackHours": {
          "description": "bands: moving-average window in hours",
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "bandPct": {
          "description": "bands: how far from the average triggers a trade, in %",
          "type": "number"
        },
        "fractionPct": {
          "description": "bands: share of QU (to buy) or holding (to sell) per trade, in %",
          "type": "number"
        },
        "cooldownHours": {
          "description": "bands: minimum hours between trades",
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "type"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "asset",
    "starting_qu",
    "strategy"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

社区

评价此服务器

证据

最近观测

已验证未记录版本19 个工具