Don't invest unless you're prepared to lose all the money you invest. This is a high-risk investment and you should not expect to be protected if something goes wrong. Take 2 mins to learn more.

DecryptrDevelopers
Market data

Long and short ratios (Binance)

get/v1/market/long-short

https://data.decryptr.ai/v1/market/long-short

  • API planStarter and above
  • Scopederivatives:read
  • Cost1 unit per item returned, at least one item's worth. The request first reserves limit x 1 unit (and is refused with 429 if that many are not available), then pays only for what came back. How units are counted
  • CreditIncludes data derived from Binance USD-M public market data.

Rate limits by plan

PlanUnits a monthPer secondPer minuteMost per request
Starter50,00056025
Pro300,0001530050
Business1,500,00040900100
EnterpriseAgreedAgreedAgreedAgreed

A 429 carries the full rate-limit header set and a Retry-After. Rate limits

Errors

  • 400The request was refused before any data was read. Nothing is charged.
  • 401No usable key. Nothing is charged.
  • 402The account cannot use the API until billing is sorted. Nothing is charged.
  • 403The key may not use this endpoint. Nothing is charged.
  • 404No such item. A lookup is still charged what it asked for.
  • 429A limit was reached (units or streams). Nothing was read and nothing is charged. Wait Retry-After seconds, back off with jitter, or ask for fewer items.
  • 500Something failed on our side. Nothing is charged. Retry with backoff.
  • 503The API is switched off, busy, or a query ran too long. Nothing is charged. Retry after Retry-After seconds.

Errors follow RFC 9457. Every error code

Binance USD-M long to short ratios every 5 minutes, newest first: top traders' accounts and positions, all accounts, and taker volume. A ratio above 1 means more long than short. Kept by Decryptr for about 30 major coins. Not found when the archive holds none.

Served during Decryptr's friends-only testing: the exchange, CoinGecko and Coinalyze data behind it is used on Decryptr's own risk acceptance of those sources' terms, so this endpoint may be restricted or withdrawn before general availability. Keep the attribution line and meta.source with the data.

Cost: 1 unit per item returned, at least one item's worth. The request first reserves limit x 1 unit (and is refused with 429 if that many are not available), then pays only for what came back.

Needs scope derivatives:read and the starter plan or above.

Authorization

headerAuthorizationBearer <dcr_live_<8 hex>_<43 base64url> or dcr_test_...>

Your API key as a Bearer token: Authorization: Bearer dcr_live_....

Query Parameters

asset*string

Asset symbol, letters and digits, case-insensitive (required).

Match^[A-Za-z0-9]{1,15}$
since?string

Only items at or after this time (ISO 8601 with offset). Must be inside your plan's history (Developer 7 days, Starter 30, Pro 365, Business all). Defaults to the start of your history.

Formatdate-time
until?string

Only items at or before this time (ISO 8601 with offset). Defaults to now; on Developer it is capped 60 minutes before now.

Formatdate-time
cursor?string

next_cursor from the previous page, passed back as it is. Opaque: do not build or change it.

Lengthlength <= 300
limit?integer

Items to return, 1 to 100. Your plan allows max_page units per request (Developer 10, Starter 25, Pro 50, Business 100), so at most max_page divided by this endpoint's units per item. Default 20, or that maximum if lower. The request reserves limit x units per item before it runs: ask only for what you need.

Range1 <= value <= 100

Response Body

OK.

application/json
  1. response
data*array<>
as_of*string

When the response was made.

Formatdate-time
next_cursor*|

Pass as cursor for the next page. null when this is the last page.

attribution*string

Attribution you must keep with this data.

disclaimer*string

Plain-language notice. Information only, not financial advice.

meta*

Where the figures come from.

curl -X GET 'https://data.decryptr.ai/v1/market/long-short?asset=BTC&since=2026-10-20T00%3A00%3A00Z&until=2026-10-23T12%3A00%3A00Z&cursor=eyJ0IjoiMjAyNi0xMC0yM1QxMDowMDowMC4wMDBaIn0&limit=10'
Example Response
{  "data": [    {      "asset": "BTC",      "at": "2026-10-23T11:55:00.000Z",      "top_accounts_ratio": 1.8,      "top_positions_ratio": 1.3,      "global_accounts_ratio": 2.1,      "taker_ratio": 0.95    },    {      "asset": "BTC",      "at": "2026-10-23T11:50:00.000Z",      "top_accounts_ratio": 1.9000000000000001,      "top_positions_ratio": 1.4000000000000001,      "global_accounts_ratio": 2.2,      "taker_ratio": 1.05    }  ],  "as_of": "2026-10-23T12:12:30.000Z",  "next_cursor": "eyJ0IjoiMjAyNi0xMC0yM1QxMTo1MDowMC4wMDBaIn0",  "attribution": "Includes data derived from Binance USD-M public market data.",  "disclaimer": "Information only, not financial advice.",  "meta": {    "source": "Binance USD-M futures public market data, from the Decryptr permanent archive"  }}

Open interest history GET

Open interest for one perpetual every 5 minutes, newest first, in the coin's units and in US dollars, from Hyperliquid (dollars at the mark price) or Binance USD-M. Not found when the archive holds none. Served during Decryptr's friends-only testing: the exchange, CoinGecko and Coinalyze data behind it is used on Decryptr's own risk acceptance of those sources' terms, so this endpoint may be restricted or withdrawn before general availability. Keep the attribution line and meta.source with the data. Cost: 1 unit per item returned, at least one item's worth. The request first reserves limit x 1 unit (and is refused with 429 if that many are not available), then pays only for what came back. Needs scope `derivatives:read` and the starter plan or above.

Long and short accounts per exchange GET

The share of accounts long and short on each exchange for one coin, as Coinalyze last reported it when the Decryptr app asked (cached by Decryptr; fetched_at says when). Ordered by exchange name. Served during Decryptr's friends-only testing: the exchange, CoinGecko and Coinalyze data behind it is used on Decryptr's own risk acceptance of those sources' terms, so this endpoint may be restricted or withdrawn before general availability. Keep the attribution line and meta.source with the data. Cost: 1 unit per item returned, at least one item's worth. The request first reserves limit x 1 unit (and is refused with 429 if that many are not available), then pays only for what came back. Needs scope `derivatives:read` and the starter plan or above.