{"uid":"cap_MMgTSzqKGNTNFkLA78Ymc","slug":"hyperliquid-long-short-ratio-history-dcef662f","name":"Hyperliquid Long/Short Ratio History","description":"Operator-neutral Hyperliquid trading intelligence — perp fills, position lifecycles, all-wallet leaderboards, trader cohorts, liquidation risk and prediction markets. Every endpoint is FIRST-PARTY: computed from our own node_fills ledger and the Hyperliquid public info API (no third-party data source). Free quota, then HTTP 402 (x402: pay-per-call in USDC, no account, no key).","url":"https://hyperliquid-data.v1337.org/services/hyperliquid-data/v1/live/long-short/history","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","description":"Operator-defined JSON payload. Probe the upstream or consult the operator's /openapi.json for the concrete shape.","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rUiH4XvXaRn2a3DoD_XhF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical long/short ratio data for Hyperliquid perpetuals trading, showing how the balance between long and short positions has shifted over time","exampleAgentPrompt":"Pull the long/short ratio history for BTC perps on Hyperliquid over the past 7 days so I can see how trader positioning has shifted.","exampleUseCases":null,"resultDescription":"Returns time-series data showing the historical long/short ratio for a given Hyperliquid perpetuals market, including timestamps, percentage of longs vs shorts, and position counts — computed from first-party node fills ledger data.","failureModes":["HTTP 402 with x402 payment required if free quota is exhausted — must pay 0.001 USDC per call","Invalid or missing body parameters return a 400-level error","Unknown asset or market symbol returns empty or error response","Requesting a time range beyond available historical data may return partial or empty results","Network timeouts if the upstream Hyperliquid node is temporarily unavailable"],"whenToPreferThis":"Use this endpoint when you need historical long/short ratio data specifically from the Hyperliquid DEX, computed from first-party on-chain node fills data rather than third-party aggregators. Ideal for analyzing trader sentiment trends, backtesting positioning strategies, or building dashboards that reflect actual Hyperliquid perpetuals market structure over time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:55:21.198Z","isFirstParty":false}