For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Historical Smart Money Perps Positions

This is a beta endpoint under /api/v1beta1/. Request shapes, response fields, and pricing may change.

Get historical USD exposure for one Hyperliquid perp coin, split into Smart Trader, Whale, and Public Figure cohorts. Each call costs 5 credits.

Send coin and exactly one of as_of_date or as_of_ts. A date includes the full UTC day and must be before the current UTC date. A timestamp includes positions through that exact cutoff, must include a timezone, and cannot be in the future.

curl -X POST "https://api.nansen.ai/api/v1beta1/tgm/historical-token-recent-flows-summary-perps" \
  -H "Content-Type: application/json" \
  -H "apikey: $NANSEN_API_KEY" \
  -d '{"coin": "BTC", "as_of_date": "2025-09-15"}'

For Smart Money backtesting, calculate net position from the Smart Trader fields:

net_position_usd = smart_trader_longs_usd - smart_trader_shorts_usd

Short exposure is a positive magnitude. smart_trader_total_usd is gross exposure, longs plus shorts. Use the same calculation for the Whale and Public Figure cohorts.

sm_label_filter applies only to the Smart Trader cohort. An empty list selects Smart HL Perps Trader. Whale and Public Figure cohorts use fixed labels.

Date snapshots and some timestamp snapshots use labels assigned retrospectively. Membership in a cohort was not necessarily knowable at the cutoff, which can introduce look-ahead bias in backtests. Some label filters can reflect current fund membership. Historical exposure is not a guarantee of a signal observable at the time.

Requests before available history return an empty data array. Exposure fields can be null when cohort coverage is unavailable. Preserve those values as missing data. Top PnL fields are unsupported and always return null. Results may change after late data, pricing fixes, label-history corrections, or backfills.

Get Historical Smart Money Perps Positions (Beta)

post

Beta. Request shapes, response fields, and pricing may change.

Historical long, short, and total USD exposure for one Hyperliquid perp coin. Returns the Smart Trader, Whale, and Public Figure cohorts.

Supply coin and exactly one cutoff: as_of_date for a completed UTC date, or as_of_ts for an exact RFC3339 timestamp with a timezone, no later than now.

Short exposure is a positive magnitude. Net position equals longs minus shorts; total exposure equals longs plus shorts. Missing cohort coverage returns null exposure fields. Top PnL exposure fields are unsupported and return null.

sm_label_filter narrows the Smart Trader cohort. An empty list selects Smart HL Perps Trader. Whale and Public Figure cohorts are fixed.

Date snapshots and some timestamp snapshots use labels assigned retrospectively. Cohort membership was not necessarily knowable at the cutoff and can introduce look-ahead bias in backtests. Some label filters can reflect current fund membership.

Results may change after late data, pricing fixes, label-history corrections, or historical data backfills.

Authorizations
apikeystringRequired

API key for authentication

Body

Request model for the Hyperliquid historical token recent flows summary endpoint.

as_of_tsany ofOptional
string · date-timeOptional
as_of_dateany ofOptional

UTC date cutoff. The full date is included.

Example: 2025-09-01
string · dateOptional
coinstringRequired

Hyperliquid perp coin symbol (e.g. BTC, HYPE, @1)

Example: BTC
Responses
200

Historical Hyperliquid cohort exposure at the requested cutoff

application/json
post/api/v1beta1/tgm/historical-token-recent-flows-summary-perps
POST /api/v1beta1/tgm/historical-token-recent-flows-summary-perps HTTP/1.1
Host: api.nansen.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 122

{
  "as_of_ts": "2026-01-01T00:00:00.000Z",
  "as_of_date": "2025-09-01",
  "coin": "BTC",
  "sm_label_filter": [
    "Smart HL Perps Trader"
  ]
}
{
  "pagination": {
    "page": 1,
    "per_page": 10,
    "is_last_page": true
  },
  "data": [
    {
      "coin": "BTC",
      "smart_trader_longs_usd": 21900000,
      "smart_trader_shorts_usd": 60800000,
      "smart_trader_total_usd": 82700000,
      "whale_longs_usd": 926000000,
      "whale_shorts_usd": 903900000,
      "whale_total_usd": 1830000000,
      "public_figure_longs_usd": 16600000,
      "public_figure_shorts_usd": 42900000,
      "public_figure_total_usd": 59600000,
      "top_pnl_longs_usd": 1,
      "top_pnl_shorts_usd": 1,
      "top_pnl_total_usd": 1
    }
  ]
}

Last updated

Was this helpful?