{"uid":"cap_tZ7Z_YjqgqfciD3sKKK-6","slug":"agents-x402stock-xyz-x402stock-stock-basis-us-equity-vs-hyperliquid-18c4189d","name":"x402stock Stock Basis: US Equity vs Hyperliquid Perp Price Comparison","description":"One stock priced on every rail at once: its official US listing (delayed, closed overnight) against the 24/7 Hyperliquid HIP-3 synthetic perp. Returns both prices, funding APR, open interest, and the gap as `basis_percent` + `basis_vs_prev_close_percent` — while the US market is shut, the live view of where the name reopens. From x402stock, a market & economic data API (x402, USDC).","url":"https://agents.x402stock.xyz/api/v1/basis/{ticker}","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","ticker":{"type":"string"}},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false}}},"responseSchema":{"type":"object","required":["source","as_of","venue_map","us_market_open","reading","method","count","rows","sections","note"],"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"rows":{"type":"array","items":{"type":"object","required":["ticker","equity_price","equity_prev_close","equity_change_percent","equity_as_of","perp_symbol","perp_mark","perp_oracle","perp_funding_apr_percent","perp_open_interest","perp_day_volume_usd","basis_percent","basis_absolute","basis_vs_prev_close_percent","direction","comparable","excluded_reason"],"properties":{"ticker":{"type":"string"},"direction":{"enum":["premium","discount","flat","unknown"],"type":"string"},"perp_mark":{"anyOf":[{"type":"number"},{"type":"null"}]},"comparable":{"type":"boolean"},"perp_oracle":{"anyOf":[{"type":"number"},{"type":"null"}]},"perp_symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"equity_as_of":{"anyOf":[{"type":"string"},{"type":"null"}]},"equity_price":{"anyOf":[{"type":"number"},{"type":"null"}]},"basis_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"basis_absolute":{"anyOf":[{"type":"number"},{"type":"null"}]},"excluded_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"equity_prev_close":{"anyOf":[{"type":"number"},{"type":"null"}]},"perp_open_interest":{"anyOf":[{"type":"number"},{"type":"null"}]},"perp_day_volume_usd":{"anyOf":[{"type":"number"},{"type":"null"}]},"equity_change_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"perp_funding_apr_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"basis_vs_prev_close_percent":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false}},"as_of":{"type":"string"},"count":{"type":"number"},"method":{"type":"string"},"source":{"type":"string","const":"x402stock"},"reading":{"type":"string"},"sections":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"enum":["ok","unavailable"],"type":"string"}},"venue_map":{"type":"object","required":["equity","perp"],"properties":{"perp":{"type":"string"},"equity":{"type":"string"}},"additionalProperties":false},"us_market_open":{"type":"boolean"}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.03","per":"call","confidence":"exact"},{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GPlMetdOgWmj-qdsnpnmd","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_dnYdwziHgQfVOc17_aV-e","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agents.x402stock.xyz","brandSlug":"agents-x402stock-xyz-mpp","brandBaseUrl":"https://agents.x402stock.xyz","brandDocsUrl":null,"whatItDoes":"Returns both the official US equity price and the Hyperliquid HIP-3 synthetic perpetual price for a single ticker, plus funding APR, open interest, and the price gap expressed as basis_percent and basis_vs_prev_close_percent.","exampleAgentPrompt":"Pull up the basis for NVDA right now — I want to see the official US stock price versus the Hyperliquid synthetic perp, the funding APR, and how far the perp is trading from the last close.","exampleUseCases":[{"title":"Overnight implied open tracker","prompt":"While the US market is closed, what is the Hyperliquid perp implying TSLA will open at tomorrow? Show me the basis percent versus the previous close."},{"title":"Funding rate arbitrage screen","prompt":"Check COIN on the x402stock basis endpoint — I want the Hyperliquid funding APR, open interest, and whether the perp is trading at a premium or discount to the last official stock price."},{"title":"Real-time cross-venue price comparison","prompt":"Compare AAPL's delayed US equity price to its live Hyperliquid HIP-3 perp price and tell me the absolute dollar gap and the basis percent."}],"resultDescription":"A JSON object containing both the US equity data (delayed price, previous close, change percent, timestamp) and the Hyperliquid perpetual data (mark price, oracle price, funding APR, open interest, day volume), along with computed basis fields (basis_percent, basis_absolute, basis_vs_prev_close_percent), a direction label (premium/discount/flat/unknown), a comparable flag, and metadata about which data sections were available.","failureModes":["Ticker not found on Hyperliquid — perp fields null, comparable=false, excluded_reason set","US equity data unavailable or market data delayed beyond threshold — equity_price null","Invalid or lowercase ticker symbol — may return empty rows or error","No Hyperliquid HIP-3 perp exists for the requested stock — perp_symbol null","Payment failure or insufficient USDC balance — 402 response before data is returned"],"whenToPreferThis":"Choose this endpoint when you need a simultaneous cross-venue price comparison between a US-listed stock and its Hyperliquid synthetic perpetual equivalent, especially outside US market hours when the perp price is the only live signal. It is the right choice for basis trading analysis, overnight implied-open monitoring, funding rate tracking, and cross-market arbitrage screening for individual tickers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-10T06:45:49.538Z","isFirstParty":false}