ClickAPIs
Docs · Liquidity

Docs / Endpoints

Liquidity

POST/v1/liquidityunits: 2 (+1 per 10 symbols with compare_universe)daily

Average and median dollar volume (20/60/252 days), Amihud illiquidity, Roll and Corwin-Schultz spread estimates, turnover, volume variability and an optional liquidity percentile within a universe.

Add "async": true to run it as a job, and "webhook_url" to be called when it finishes (Jobs & async). Calls estimated above 1,000 units run as jobs automatically.

Parameters

FieldTypeDefaultDescription
symbolrequiredstring—Ticker symbol, e.g. AAPL, SPY, BTC-USD.
window_barsinteger252Bars used for the spread and illiquidity estimates (20-2520).
compare_universe"us.top100" | "us.top500" | "us.top1000" | "us.etf.top100" | "us.etf.top500"—Optional universe for a liquidity percentile (median 60-day dollar volume). Adds 1 unit per 10 symbols.

Example request

How liquid is SMCI compared with the top 500? Read the walkthrough →

Request POST /v1/liquidity
{
  "symbol": "SMCI",
  "compare_universe": "us.top500"
}
The same call with curl, Python and JavaScript
curl https://clickapis.com/v1/liquidity \
  -H "Authorization: Bearer $CLICKAPIS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"symbol":"SMCI","compare_universe":"us.top500"}'
import os, requests

r = requests.post(
    "https://clickapis.com/v1/liquidity",
    headers={"Authorization": f"Bearer {os.environ['CLICKAPIS_KEY']}"},
    json={
      "symbol": "SMCI",
      "compare_universe": "us.top500"
    },
    timeout=60,
)
print(r.json()["data"])
const r = await fetch("https://clickapis.com/v1/liquidity", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.CLICKAPIS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "symbol": "SMCI",
    "compare_universe": "us.top500"
  }),
});
console.log((await r.json()).data);

Example response

Response 200 OK
{
  "ok": true,
  "data": {
    "symbol": "SMCI",
    "as_of": "2026-11-12",
    "window_bars": 252,
    "close": 27.1883,
    "dollar_volume": {
      "20d": {
        "mean": 1437395248.0,
        "median": 1250037091.0,
        "mean_shares": 46298875.0
      },
      "60d": {
        "mean": 1424964135.0,
        "median": 1259427341.0,
        "mean_shares": 39366979.0
      },
      "252d": {
        "mean": 1317819435.0,
        "median": 1028408850.0,
        "mean_shares": 40626467.0
      }
    },
    "dollar_volume_trend": 0.215506,
    "amihud_illiquidity": 3.137e-5,
    "amihud_illiquidity_20d": 3.574e-5,
    "roll_spread": 0.038008,
    "roll_spread_60d": 0.043191,
    "corwin_schultz_spread": 0.011063,
    "corwin_schultz_spread_20d": 0.014257,
    "volume_cv_60d": 0.383522,
    "zero_volume_days": 0,
    "max_volume_day": {
      "date": "2026-06-11",
      "volume": 251249200.0
    },
    "turnover": {
      "shares_outstanding": 585565000.0,
      "daily_60d": 0.06722905,
      "annual": 16.941721,
      "days_to_trade_float": 14.9
    },
    "universe_comparison": {
      "names": 500,
      "metric": "median 60-day dollar volume",
      "percentile": 0.904,
      "rank": 49,
      "universe_median": 312147648.0,
      "universe": "us.top500"
    }
  },
  "meta": {
    "op": "liquidity",
    "units": 52,
    "cost_usd": 0.0,
    "billing": "internal",
    "free_call": false,
    "free_calls_left": 0,
    "balance_usd": 5.0,
    "ms": 372,
    "interval": "1day",
    "data_as_of": "2026-11-12",
    "partial_last_bar": false
  }
}

Every response has the same envelope: ok, data and meta (op, units, cost_usd, ms, interval, billing, balance_usd, data_as_of, partial_last_bar). Numbers are decimals (0.05 = 5%), dates ISO, and a value that cannot be computed is null.