{"uid":"cap_CZs1lS28EVGeCX3C85uX-","slug":"beggar-bot-okx-long-short-ratio-a20c7d25","name":"Beggar Bot OKX Long/Short Ratio","description":"Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.","url":"https://beggar-bot-demand.beggarbot.workers.dev/v1/okxlongshort?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"coin":{"type":"string","description":"e.g. BTC"},"limit":{"type":"string","description":"points (48)"},"period":{"type":"string","description":"5m, 1H or 1D"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8GXAXUu-O8DShc57T6n23","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches OKX long/short position ratio data for a specified cryptocurrency, period, and number of data points","exampleAgentPrompt":"What's the OKX long/short ratio for BTC over the last 48 hourly periods? I want to see if the market is leaning more bullish or bearish.","exampleUseCases":[{"title":"Bitcoin sentiment check before trading","prompt":"Pull the OKX long/short ratio for BTC at 1H intervals for the last 48 points — I want to see whether traders have been predominantly long or short recently."},{"title":"Altcoin market positioning snapshot","prompt":"Get me the OKX long/short ratio for SOL at 5-minute intervals for the last 20 data points so I can gauge short-term trader sentiment."},{"title":"Daily crypto market overview","prompt":"Fetch the OKX long/short ratio for ETH using 1D periods, 30 data points, so I can see how positioning has shifted over the past month."}],"resultDescription":"Returns a JSON array of long/short ratio data points from OKX, each including timestamp, long ratio, short ratio, and overall long/short ratio for the specified cryptocurrency and time period.","failureModes":["Invalid coin symbol returns error or empty data","Unsupported period value (not 5m, 1H, or 1D) may return error","Payment of $0.02 USDC via x402 on Base mainnet required; unpaid requests return 402","Limit value out of range may default or error","OKX data unavailable for low-liquidity coins"],"whenToPreferThis":"Use this endpoint when you need OKX-sourced long/short ratio data for crypto market sentiment analysis. Prefer this over generic market data APIs when specifically needing derivatives positioning data from OKX with configurable time periods and historical depth, accessed via micropayment on Base mainnet.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T18:43:58.676Z","isFirstParty":false,"canonicalSlug":"beggar-bot-okx-long-short-ratio-a20c7d25"}