{"uid":"cap_Z1UKOpSukFDJrQTOV6B25","slug":"crypto-open-interest-positioning-intelligence-df84d263","name":"Crypto Open Interest & Positioning Intelligence","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/crypto/open-interest?utm_source=zero.xyz","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"],"type":"string"},"queryParams":{"type":"object","properties":{"coin":{"type":"string","examples":["BTC","ETH","SOL"],"maxLength":12,"description":"Perp coin, e.g. BTC, ETH, SOL, DOGE (alias symbol=; default BTC)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"coin":"BTC","next":["/crypto/funding-signal?coin=BTC","/crypto/candles?symbol=BTC&interval=1h","/crypto/hl-book?coin=BTC"],"action":"No crowding extreme; positioning is not a reason to fade or follow.","funding":{"okx_8h_pct":0.0053,"okx_apr_pct":5.76,"hyperliquid_apr_pct":10.95},"reasons":["OI -3.9% in 4h: deleveraging","4h liquidations: longs $2900k vs shorts $310k (longs_liquidated)","4h taker buy/sell 0.87"],"verdict":"BALANCED","taker_flow":{"1h":{"buy_usd":213069948,"sell_usd":267061837,"buy_sell_ratio":0.798}},"updated_at":"2026-10-30T08:40:00Z","liquidations":{"1h":{"count":38,"dominant":"longs_liquidated","long_liq_usd":1250000,"short_liq_usd":40000},"4h":{"count":90,"dominant":"longs_liquidated","long_liq_usd":2900000,"short_liq_usd":310000},"24h":{"count":100,"dominant":"longs_liquidated","long_liq_usd":2900000,"short_liq_usd":310000},"venue":"okx","sample_covers_minutes":230},"open_interest":{"okx_usd":2579936287,"total_usd":4979936287,"change_1h_pct":-2.11,"change_4h_pct":-3.9,"change_24h_pct":1.2,"hyperliquid_usd":2400000000},"crowding_score":0,"long_short_ratio":{"max_48h":2.72,"min_48h":1.69,"long_pct":69.1,"change_24h":0.49,"okx_accounts":2.24,"ratio_24h_ago":1.75,"percentile_48h":53}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wLgHlpeeJ3F_Wd4UN8jmx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns aggregated open interest, liquidations, taker flow, long/short ratios, and a crowding verdict for a given perpetual futures coin across OKX and Hyperliquid","exampleAgentPrompt":"Check the open interest and crowding signal for BTC right now — I want to know if longs are getting squeezed, what the taker flow looks like over the last hour, and whether positioning is extreme enough to fade.","exampleUseCases":[{"title":"Pre-trade positioning check before going long","prompt":"Before I open a long position on ETH perps, can you check whether the market is already crowded long, what the recent liquidations look like, and whether the crowding score suggests I should wait?"},{"title":"Monitoring SOL for deleveraging signals","prompt":"Keep an eye on SOL open interest — if it drops more than 5% in 4 hours or longs are getting heavily liquidated, I want to know the full breakdown including taker flow and funding rates."},{"title":"Assessing DOGE perp positioning for a contrarian trade","prompt":"I'm thinking of going short DOGE — can you pull the current open interest, long/short ratio percentile over the last 48 hours, and the crowding verdict to see if it's a good contrarian setup?"}],"resultDescription":"A JSON object containing: the coin's total and per-venue open interest in USD with 1h/4h/24h percentage changes; liquidation counts and USD volumes for longs vs shorts over 1h/4h/24h windows; taker buy/sell flow with ratio; long/short ratio with 48h min/max/percentile; funding rates from OKX and Hyperliquid in APR %; a crowding_score (0–100); a verdict string (e.g. BALANCED); an action recommendation sentence; reasons array explaining the verdict; and suggested next API calls.","failureModes":["Unknown coin symbol returns 400 or empty data","Payment not received (402) if USDC micropayment on Base fails","Upstream OKX or Hyperliquid data delay causes stale updated_at timestamp","Rate limiting or worker timeout on Cloudflare edge (503)","Coin not listed on one venue results in partial data (e.g. hyperliquid_usd missing)"],"whenToPreferThis":"Use this endpoint when an AI trading agent needs a fast, aggregated positioning snapshot across both OKX and Hyperliquid for a given perp coin — specifically for detecting crowding extremes, leverage washouts, or taker flow imbalances before entering or exiting a trade. It is superior to raw exchange APIs because it pre-computes a crowding verdict, reasons, and next-step suggestions with a single $0.003 micropayment and no API key setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:32.250Z","isFirstParty":false,"canonicalSlug":"crypto-open-interest-positioning-intelligence-df84d263"}