{"uid":"cap_zKHGa1gA2i2H_YceY31mZ","slug":"okx-long-short-ratio-api-3669c2fa","name":"OKX Long/Short Ratio API","description":"Live long/short account ratio for any crypto from OKX with history and crowding bias - real-time sentiment positioning data not in any LLM training set. long short ratio, long short, trader positioning, crowded trade, sentiment ratio Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/market/long-short-ratio","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","description":"Coin (optional)"},"period":{"type":"string","description":"5m,15m,30m,1H,2H,4H,1D (default)"},"symbol":{"type":"string","description":"Crypto symbol, e.g. BTC (default)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AWlO1u5T-vkJ1vHP7IOOi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live and historical long/short account ratio for any crypto asset from OKX, indicating trader positioning and crowding bias.","exampleAgentPrompt":"What's the current long/short ratio for BTC on OKX right now, and is the trade starting to look crowded in one direction?","exampleUseCases":null,"resultDescription":"Returns the current ratio of long vs short accounts for the specified crypto symbol, including the raw ratio value, percentage of longs and shorts, historical data points, and a crowding bias signal indicating whether the market is heavily skewed to one side.","failureModes":["Unknown or unsupported crypto symbol returns an error or empty data","OKX API downtime causes failure to fetch live data","Rate limiting if called too frequently","Invalid symbol format results in a bad request error"],"whenToPreferThis":"Use this endpoint when you need real-time trader sentiment and positioning data for a specific crypto asset — particularly to detect crowded trades or contrarian signals. Prefer this over general news sentiment tools when you specifically need quantitative long/short positioning from perpetual futures markets on OKX.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:02:23.634Z","isFirstParty":false}