List forced crypto liquidations
curl --request GET \
--url https://api.darvas.app/v1/crypto/liquidations \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/crypto/liquidations"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/crypto/liquidations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "BTC-USDT-SWAP",
"exchange": "okx",
"side": null,
"min_notional_usd": null,
"liquidations": [
{
"ticker": "BTC-USDT-SWAP",
"side": "short",
"price": 97950,
"size_base": 1.85,
"notional_usd": 181207.5,
"source_quality": "okx_ws",
"time": "2026-11-28T12:00:00.000Z"
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Crypto Derivatives
Crypto Liquidations Feed API (BTC, ETH, Alts)
Query forced crypto perpetual and futures liquidation events filtered by symbol, side, minimum USD size and lookback hours across major venues.
List forced crypto liquidations
curl --request GET \
--url https://api.darvas.app/v1/crypto/liquidations \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/crypto/liquidations"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/crypto/liquidations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "BTC-USDT-SWAP",
"exchange": "okx",
"side": null,
"min_notional_usd": null,
"liquidations": [
{
"ticker": "BTC-USDT-SWAP",
"side": "short",
"price": 97950,
"size_base": 1.85,
"notional_usd": 181207.5,
"source_quality": "okx_ws",
"time": "2026-11-28T12:00:00.000Z"
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
This endpoint returns forced long and short liquidation fills for perpetual and futures contracts, sorted newest first. Query one contract withticker, or omit ticker to read the market-wide liquidation tape across every contract on the selected exchange, with optional side and min_notional_usd filters.
| Coverage | Details |
|---|---|
| Exchanges | exchange accepts okx (default), binance, bybit, or hyperliquid |
| Scope | Pass ticker (such as BTC-USDT-SWAP) for one contract, or omit ticker for market-wide liquidations (ticker: null in response) |
| Filters | Optional side (long or short) and min_notional_usd (non-negative USD notional floor) |
| Lookback window | lookback_hours from 1 to 168 hours (default 24) |
| Row limit | limit from 1 to 500 events per response (default 100), newest first |
| MCP tool | list_crypto_liquidations on the data API MCP server |
Parameters and liquidation fields
Top-level fields echo the active query filters:ticker (null for market-wide scans), exchange, side (null when unfiltered), and min_notional_usd (null when unfiltered). Requesting lookback_hours above 168 (seven days), limit above 500, or a negative min_notional_usd returns 400.
- Single contract versus market-wide. When
tickeris provided, input is normalized to uppercase and filters to that instrument. Whentickeris omitted,liquidationsreturns fills across all contracts onexchange, and each row’stickernames the liquidated instrument. - Liquidated side.
sideidentifies the position that was forcibly closed:longmeans a leveraged long was liquidated, andshortmeans a leveraged short was squeezed out. - Size, notional and floor.
priceis the liquidation execution price,size_baseis the liquidated quantity in base asset units, andnotional_usdis the USD value rounded to two decimal places.min_notional_usdfilters deduplicated fills whosenotional_usdmeets or exceeds the threshold. - Deduplication and provenance. Events sharing
(ticker, time, side, price)keep the latest ingested size and notional.source_qualityrecords the feed tag, such asokx_ws. - Related endpoints. Pair liquidation clusters with
/crypto/derivativesand/crypto/derivatives/snapshotfor open interest and funding shifts,/crypto/large-tradesfor whale sweeps,/crypto/order-flowand/crypto/footprintfor taker delta, and/crypto/tickersfor contract symbols.
Examples
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
resp = requests.get(
"https://api.darvas.app/v1/crypto/liquidations",
headers=headers,
params={
"exchange": "okx",
"side": "short",
"min_notional_usd": 50000,
"lookback_hours": 24,
"limit": 100,
},
).json()
total_usd = sum(ev["notional_usd"] for ev in resp["liquidations"])
print("Exchange:", resp["exchange"], "market-wide short liqs >= $50k:", len(resp["liquidations"]), "total USD:", round(total_usd, 2))
for ev in resp["liquidations"][:5]:
print(" ", ev["time"], ev["ticker"], ev["side"], ev["price"], f'${ev["notional_usd"]}')
# Latest 50 ETH perpetual liquidations of at least $25,000 over the last 12 hours
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/crypto/liquidations?exchange=okx&ticker=ETH-USDT-SWAP&min_notional_usd=25000&lookback_hours=12&limit=50"
Authorizations
apiKeybearerKey
Query Parameters
Response
List forced crypto liquidations: one page.
The answer of GET /crypto/liquidations.