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。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。