Perp Gap API

dev.workers.perpgap.perp-gap-api由 perp-gap-api.perpgap.workers.dev 发布官方发布者v1.5.0更新于 Oct 29, 2026

Stock perps & tokenized stocks: trade.xyz, Aster, Lighter, OKX, xStocks, Ondo; quotes, funding. x402

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

远程 MCP 服务器,为助手提供 trade.xyz、Aster、Lighter、OKX、xStocks 与 Ondo 上股票永续合约和代币化股票的市场数据,部分调用需 x402 付费。

可以做什么
  • 列出市场与示例价差:免费获取股票永续与代币化股票目录,以及单个 trade.xyz 永续相对股票的基础价差
  • 获取报价与资金费率:最多 10 个代码的统一实时报价、按小时和年化归一化的跨平台资金费率,以及代币化股票的溢价与流动性
  • 比较价差与历史:跨平台价差表、最长 90 天的价差时间序列,以及按日批量 JSON 导出
  • 获取判断与研究:基于规则的做多/做空/观望/回避判断,附 SEC 申报与新闻信号,以及单次调用的研究卡片
  • 扫描预测市场:列出 Hyperliquid HIP-4 二元价格市场,将赔率与永续隐含概率对比,并排序最被错误定价的流动市场
适用场景
适合需要跨平台比较股票永续价格、资金费率和代币化股票溢价,或核对 Hyperliquid 预测市场赔率与模型隐含概率的场景。多数数据调用按次收费,更适合偶发研究而非高频轮询。
运行要求
以远程 streamable HTTP 端点运行,未声明本地包、账户或 API 密钥。付费工具需通过 x402 在 Base 或 Solana 上以 USDC 支付,因此需要支持 x402 支付且有余额的钱包。需要能访问该端点及各底层平台。
安装前请注意
多数工具按次以 USDC 通过 x402 收费,从 0.01 美元到批量导出的 0.25 美元不等,重复使用会实际花费资金。输出为市场数据和基于规则的判断,并明确标注为数据而非投资建议,不应视为推荐。付款通过加密钱包完成,需注意支出上限。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Perp Gap API,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/dev.workers.perpgap.perp-gap-api%2Fperp-gap/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "perp-gap-api": {
      "type": "http",
      "url": "https://perp-gap-api.perpgap.workers.dev/mcp"
    }
  }
}

工具

14

list_markets

FREE. Catalog of every stock perp and tokenized stock agents can trade: Hyperliquid trade.xyz, Aster, Lighter and OKX perps plus Solana xStocks and Ondo Global Markets tokens. Per market: ticker, venue, symbol / Lighter market_id / Solana mint / Ondo contract, type, live and tradable_now. Use first to see where a ticker trades before get_quote or get_funding.

输入参数venuetickertradableinstrument

get_quote

PAID $0.01 (x402, USDC on Base or Solana). Unified live quote for 1-10 stock tickers: perp mark and bid/ask mid on trade.xyz, Aster, Lighter and OKX, Solana xStock and Ondo per-share prices, last US close and the reference used (pre/regular/after-hours/overnight/closed), gap % vs reference, perp spread, best bid/ask, cross-venue arb bps, freshness.

输入参数tickertickers

get_funding

PAID $0.02 (x402, USDC on Base or Solana). Stock-perp funding on trade.xyz, Aster, Lighter and OKX normalized to hourly and APR, interval, next funding time, cheapest venue to long or short, carry spread, optional history (24h/7d/30d). tickers='all' returns the board for every stock perp.

输入参数tickerhistorytickersmin_spread_apr

get_token_premium

PAID $0.01 (x402, USDC on Base or Solana). Tokenized stocks (xStocks on Solana, Ondo Global Markets): each token's price per share vs the real stock reference, premium/discount %, freshness, chain and liquidity. One ticker, up to 10, or tickers='all'.

输入参数tickertickers

get_token_liquidity

PAID $0.01 (x402, USDC on Base or Solana). Tokenized stock liquidity for one ticker: each xStocks/Ondo token's Solana pool liquidity, $10k buy/sell price impact, estimated size within 1%, tradable flag, plus Ondo's issuer mint/redeem market.

输入参数ticker必填

get_gap_sample

FREE. Basic perp-vs-stock gap for ONE trade.xyz stock perp (e.g. NVDA): perp mark, reference stock price, gap %. Use get_gaps for xStock gap, basis, funding and open interest.

输入参数ticker必填

get_gaps

PAID $0.01 (x402, USDC on Base or Solana). Gap table for up to 60 trade.xyz stock perps (tickers=all for every auto-discovered US stock perp): perp mark/oracle vs reference stock price and Solana xStock, basis, hourly and annualized funding, open interest. Set venues='all' for a cross-venue comparison: trade.xyz vs Aster vs Lighter mark prices, gap % between venues, and each venue's funding (hourly and annualized).

输入参数venuestickers

get_verdict

PAID $0.03 (x402, USDC on Base or Solana). Rule-based long/short/watch/avoid verdict for one trade.xyz stock perp, using the perp-vs-stock gap, basis, funding and SEC EDGAR insider and filing signals, with reasons and confidence. Includes a news block (up to 5 items in 48h: SEC 8-K filings, Fed/BLS macro releases, press-wire items as our own one-line summary + link) and a heuristic news_context label (likely news-driven / news present, move small / possibly macro-driven / no matching news). Data, not financial advice.

输入参数ticker必填

get_history

PAID $0.02 (x402, USDC on Base or Solana). Historical gap time series for one trade.xyz stock perp (up to 90 days; interval 30m/1h/4h/1d): perp vs stock and xStock gaps, basis, funding, OI, plus Aster, Lighter and OKX marks and cross-venue gaps.

输入参数tofromticker必填interval

get_export

PAID $0.25 (x402, USDC on Base or Solana). Bulk JSON export of one UTC day of 30-minute snapshots for all 20 tracked stock perps (cross-venue gaps, funding, OI).

输入参数date

get_research_card

PAID $0.03 (x402, USDC on Base or Solana). One-call research card for a single stock perp: spot quote and market session, perp prices on trade.xyz, Aster, Lighter and OKX, gap % per venue vs spot and vs the Solana xStock, funding and basis, recent 72h gap history, and the rule-based verdict. Also xStocks/Ondo token premiums, the extended-hours/overnight trade, the last 4 weekend gaps vs Monday's open and a plain-text summary block. Includes a news block (up to 5 items in 48h: SEC 8-K filings, Fed/BLS macro releases, press-wire items as our own one-line summary + link) and a heuristic news_context label (likely news-driven / news present, move small / possibly macro-driven / no matching news). Data, not financial advice.

输入参数ticker必填

list_pm_markets

FREE. Live Hyperliquid HIP-4 binary price outcome markets ('BTC above 82,268 at 2026-10-18 08:00 UTC'): outcome id, asset, strike, expiry, settlement source, bid, ask, depth; empty books filtered. Use first to see what get_pm_implied and get_pm_scan cover. Data, not advice.

输入参数kindasset

get_pm_implied

PAID $0.02 (x402, USDC on Base or Solana). Is a Hyperliquid prediction market on a crypto or stock price cheap or expensive? For every live binary price outcome on one asset: bid, ask, depth, the probability implied by the live perp price and 7d realized vol, edge in pp vs bid and ask, liquidity flag and signal. Bad input or no live market is a free error. Data, not advice.

输入参数assetoutcomemin_depth_usd

get_pm_scan

PAID $0.05 (x402, USDC on Base or Solana). Ranked list of the most mispriced liquid Hyperliquid prediction markets right now across crypto and tokenized-stock binary price markets: model probability vs bid/ask, edge in pp, spread, depth and book age; empty and illiquid books filtered. Data, not advice.

输入参数kindlimitmin_edge_ppmax_spread_ppmin_depth_usd

版本历史

4
  1. v1.5.0最新Oct 29, 2026
  2. v1.4.0Oct 17, 2026
  3. v1.3.0Oct 15, 2026
  4. v1.2.0Oct 14, 2026

评分

已满足适用检查项的 72%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分

    请在注册中心条目中发布图标。

  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。