{"uid":"cap_wje0asGNMzbiRxWTvMMMt","slug":"coinank-long-short-ratio-realtime-api-via-claw402-x402-gateway-e04d6f07","name":"CoinAnk Long/Short Ratio Realtime API (via claw402 x402 Gateway)","description":"Backed by vergex.trade. Pay for any API with USDC. No API keys. No registration. Just a wallet.","url":"https://claw402.ai/api/v1/coinank/longshort/realtime","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":{"baseCoin":{"type":"string"},"interval":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"code":0,"data":[]}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"baseCoin":"BTC","interval":"1h"}}},"response":{"code":"1","data":[{"baseCoin":"BTC","longRatio":0.6304,"shortRatio":0.3696,"exchangeName":"All","buyTradeTurnover":156156579.51921093,"sellTradeTurnover":91557453.04241109},{"baseCoin":"BTC","longRatio":0.586,"shortRatio":0.414,"exchangeName":"Binance","buyTradeTurnover":44607930.67786789,"sellTradeTurnover":31512952.773662567},{"baseCoin":"BTC","longRatio":0.5617,"shortRatio":0.4383,"exchangeName":"Okex","buyTradeTurnover":17875993.64694357,"sellTradeTurnover":13946160.994262218},{"baseCoin":"BTC","longRatio":0.177,"shortRatio":0.823,"exchangeName":"Bitmex","buyTradeTurnover":804191.9383888245,"sellTradeTurnover":3739810.59000206},{"baseCoin":"BTC","longRatio":0.7568,"shortRatio":0.2432,"exchangeName":"Bybit","buyTradeTurnover":47970596.163734436,"sellTradeTurnover":15418100.140972137},{"baseCoin":"BTC","longRatio":0.485,"shortRatio":0.515,"exchangeName":"Gate","buyTradeTurnover":15356815.085476875,"sellTradeTurnover":16304586.620360851},{"baseCoin":"BTC","longRatio":0.6996,"shortRatio":0.3004,"exchangeName":"Huobi","buyTradeTurnover":3377424.4296035767,"sellTradeTurnover":1450089.7178344727},{"baseCoin":"BTC","longRatio":0.657,"shortRatio":0.343,"exchangeName":"Bitget","buyTradeTurnover":8802676.046120167,"sellTradeTurnover":4596487.420799255},{"baseCoin":"BTC","longRatio":0.9027,"shortRatio":0.0973,"exchangeName":"dYdX","buyTradeTurnover":404711.9253964424,"sellTradeTurnover":43646.910163879395},{"baseCoin":"BTC","longRatio":0.442,"shortRatio":0.558,"exchangeName":"Deribit","buyTradeTurnover":1200175.709991455,"sellTradeTurnover":1514960},{"baseCoin":"BTC","longRatio":0.5436,"shortRatio":0.4564,"exchangeName":"Bitfinex","buyTradeTurnover":38628.44006538391,"sellTradeTurnover":32431.119695663452},{"baseCoin":"BTC","longRatio":0.6369,"shortRatio":0.3631,"exchangeName":"Kraken","buyTradeTurnover":891914.9280233383,"sellTradeTurnover":508417.7749738693},{"baseCoin":"BTC","longRatio":0.9319,"shortRatio":0.0681,"exchangeName":"Hyperliquid","buyTradeTurnover":13726601.569010854,"sellTradeTurnover":1002962.5387303829},{"baseCoin":"BTC","longRatio":0.425,"shortRatio":0.575,"exchangeName":"Aster","buyTradeTurnover":1098919.0090370178,"sellTradeTurnover":1486846.4581832886}],"success":true}},"exampleRequest":{"baseCoin":"BTC","interval":"1h"},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PhvzrKGvC5laB5wl_UmBj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time long/short ratio data for a specified cryptocurrency from CoinAnk, accessed via USDC micropayment on the x402 protocol.","exampleAgentPrompt":"What's the real-time long/short ratio for Bitcoin right now? Use the CoinAnk data feed and check the 1-hour interval.","exampleUseCases":null,"resultDescription":"Returns a JSON object with code 0 and a data array containing real-time long/short ratio figures for the requested coin and interval, reflecting current trader positioning in crypto derivatives markets.","failureModes":["Payment not received or wallet insufficient — 402 returned, call not processed","Invalid baseCoin value — empty or malformed data array returned","Unsupported interval value — empty data or error response","Upstream CoinAnk API unavailable — proxy returns error or empty data","Network timeout — no response from claw402 gateway"],"whenToPreferThis":"Use this endpoint when you need real-time long/short ratio data from CoinAnk for a specific cryptocurrency and prefer to pay per-call in USDC without managing API keys or subscriptions. Prefer this over alternatives when using the x402 micropayment protocol in an autonomous agent context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T06:53:53.539Z","isFirstParty":false}