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)

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 call per item returned, at least one item's worth. The request first reserves limit x 1 calls (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.

How calls are counted

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 calls per request (Developer 10, Starter 25, Pro 50, Business 100), so at most max_page divided by this endpoint's calls per item. Default 20, or that maximum if lower. The request reserves limit x calls 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.

Example Request
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 call per item returned, at least one item's worth. The request first reserves limit x 1 calls (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 call per item returned, at least one item's worth. The request first reserves limit x 1 calls (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.