{"uid":"cap_Ybct2wUFUmb7pR7WDP9Gj","slug":"graphadvocate-uniswap-hyperliquid-cross-venue-basis-calculator-233700fd","name":"GraphAdvocate Uniswap/Hyperliquid Cross-Venue Basis Calculator","description":"Cross-venue SPOT vs PERP basis. POST {coin, chain?}. Joins Uniswap spot (on-chain, from the subgraph) against the Hyperliquid perp last-fill price and returns basis_pct + a signal (perp_premium / perp_discount / aligned). A JOIN a single-venue passthrough structurally cannot return. Positive basis means longs are crowded and typically paying funding.","url":"https://graphadvocate.com/uniswap/basis","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"coin":{"type":"string"},"chain":{"type":"string"}}},"responseSchema":{"type":"json","example":{"coin":"BTC","perp":{"venue":"hyperliquid","price_usd":64826},"spot":{"venue":"uniswap-v3","price_usd":64588.86},"signal":"perp_premium","basis_pct":0.3672}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pkwE-MJb6kENX6mQCVhBh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the spot vs perpetual basis percentage by joining Uniswap on-chain spot price (via subgraph) against Hyperliquid perp last-fill price, returning basis_pct and a directional signal.","exampleAgentPrompt":"What's the current spot vs perp basis for ETH — join the Uniswap on-chain spot price against the Hyperliquid last-fill price and tell me if longs are crowded or if the perp is at a discount.","exampleUseCases":[{"title":"Funding pressure check before longing","prompt":"Before I open a long on BTC on Hyperliquid, can you check the cross-venue basis against Uniswap spot and tell me whether the perp is at a premium or if longs are already crowded?"},{"title":"Basis arbitrage opportunity scan","prompt":"Check the Uniswap vs Hyperliquid basis for ARB on Arbitrum — I want to see the basis percentage and whether there's a perp premium I could fade."},{"title":"DeFi token perp crowding alert","prompt":"What's the basis signal for LINK right now between Uniswap spot and Hyperliquid perps? I want to know if the perp is aligned with spot or showing a premium or discount."}],"resultDescription":"Returns basis_pct (a percentage showing how far the Hyperliquid perp price deviates from the Uniswap on-chain spot price) and a signal enum: 'perp_premium' (perp above spot, longs likely crowded and paying funding), 'perp_discount' (perp below spot), or 'aligned' (prices in sync). Also includes the raw spot and perp prices used in the calculation.","failureModes":["Coin not found on Uniswap subgraph — no liquidity pool or subgraph data unavailable","Coin not listed on Hyperliquid perps — returns error or null perp price","Chain parameter unsupported or subgraph endpoint unresponsive","Stale last-fill price if Hyperliquid market is illiquid — basis_pct may be misleading","Payment of $0.05 USDC not processed — request rejected with payment required error"],"whenToPreferThis":"Choose this endpoint when you need a cross-venue basis signal that requires joining two structurally different data sources: Uniswap on-chain liquidity (via The Graph subgraph) and Hyperliquid perpetual last-fill prices. It is the only endpoint that returns a normalized basis_pct and a directional crowding signal (perp_premium / perp_discount / aligned) in a single call. Prefer this over single-venue endpoints when you need to detect funding pressure, perp crowding, or basis arbitrage opportunities between DeFi spot and centralized-style perp markets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:30:57.321Z","isFirstParty":false}