Daily positions on Lighter, dYdX and GMX
One snapshot per UTC day of the positions on Lighter, dYdX and GMX: totals per coin and the largest positions.
/api/v1/positions/dailyEvery keyDescription
Daily snapshot of the positions on Lighter, Lighter RH, dYdX and GMX: these venues keep just the current state per account, so once per UTC day we store every position read within the last 24 hours. points: per day the venue's positions, accounts, long and short notional, long and short accounts and the long share in USD, for one coin or ALL (every position, no size floor; a day without a position of the coin reads zeros). positions: the largest stored positions of the newest day of the window (stored one by one from $10,000 notional), with account, side, size, entry and liquidation price (liqSource: reported by the venue or computed by us) and the time of their own last read. The history starts on the start day of the snapshot (firstDay); days before it are never filled in. Window: days, default 30, within the plan history (free key 30 days, keyless 24 h, Pro / API Dev 365 days, Desk / API Pro 1095 days).
Who can call it
Available with every key and keyless (X-Blockmetric-Access: public). Keys of Free accounts get free-tier data (real-time feeds, 30 days of history, heatmap over time for every coin over the last 30 days, liquidation levels now for every coin, the same as the free web plan); Pro and Desk keys the data of their plan; API Dev / API Pro raise the limits. Paid keys read the plan's history, the same on monthly and yearly billing: GET /me states the days.
- No key
- 24 h
- Free
- 30 days
- Pro
- 1 year
- Desk
- 3 years
- API Dev
- 1 year
- API Pro
- 3 years
History window per plan. Limits: Authentication & limits.
Parameters
| Parameter | Description |
|---|---|
venuestringrequired | lighter | lighter_rh | dydx | gmx. Required.one of lighter, lighter_rh, dydx, gmx |
coinstring | Coin (BTC, ETH, ...) or ALL (default) for every position of the venue.e.g. BTC |
daysinteger | UTC days back from today, default 30, clamped to the plan history (free key 30 days, keyless 24 h, Pro / API Dev 365 days, Desk / API Pro 1095 days).1–1095 · default 30 · e.g. 30 |
limitinteger | Largest positions of the newest day, default 20, clamped to 1–500.1–500 · default 20 · e.g. 10 |
Response fields
Every success is { data, meta }; these are the fields of data. meta is the same on every endpoint.
venue"lighter" | "lighter_rh" | "dydx" | "gmx"Trading venue the row comes from.
coinstringCoin, or ALL.
daysintegerDays asked (UTC days back from today).
firstDaystring · nullableOldest stored day of the venue (YYYY-MM-DD); null before any snapshot.
lastDaystring · nullableNewest stored day of the venue.
points[]array of objectsOne point per stored day, oldest first.
Show the 10 fields of
points[]points[].daystringUTC day (YYYY-MM-DD).points[].tsstring (ISO 8601)Time of the snapshot.points[].positionsintegerPositions of the coin (or every coin) read within the 24 hours before the snapshot.points[].accountsintegerAccounts holding them.points[].longUsdnumberLong notional (USD).points[].shortUsdnumberShort notional (USD).points[].longAccountsintegerAccounts long.points[].shortAccountsintegerAccounts short.points[].longSharenumber · nullablelongUsd ÷ (longUsd + shortUsd); null without positions.points[].storedPositionsintegerPositions of that day stored one by one (from $10,000 notional).
positionsDaystring · nullableThe day of positions (the newest day of the window).
positions[]array of objectsLargest stored positions of positionsDay, largest first.
Show the 10 fields of
positions[]positions[].accountstringHyperliquid address (lowercase); with venue "lighter" or "lighter_rh" the account index, "dydx" owner/subaccount number, "gmx" arb:0x… or avax:0x… (a second position of one coin in one wallet: /2).positions[].coinstringCoin name as on Hyperliquid (BTC, kPEPE, HIP-3 names like xyz:TSLA).positions[].side"long" | "short"Position side (long / short); for trades and orders the side named in the description.positions[].sizenumberSize in coins.positions[].positionUsdnumberNotional (USD).positions[].entryPxnumber · nullableEntry price (null where the venue gives none).positions[].liqPxnumber · nullableLiquidation price.positions[].liqSource"reported" | "computed" · nullablereported by the venue or computed by us from its margin rules.positions[].leveragenumber · nullableLeverage.positions[].readAtstring (ISO 8601)Last read of the position before the snapshot.
Errors
- 400
invalid_paramInvalid parameter - 401
unauthorizedMissing or invalid API key - 401
key_requiredKeyless trial used up: a key is required - 403
plan_requiredPlan does not include this - 403
scope_requiredKey not scoped for this API - 403
ip_not_allowedAddress not on the IP allowlist of the key - 403
origin_not_allowedKey used from a browser origin it does not allow - 403
source_restrictedExchange withheld - 403
linked_accountKey of a linked free account paused - 403
https_requiredhttps required - 404
not_foundNot found - 429
rate_limitedPer-minute limit reachedretry - 429
daily_limit_exceededDaily limit reachedretry - 429
stream_limitToo many open streamsretry - 500
internal_errorInternal errorretry
Code snippets in these docs are licensed under MIT-0: copy them into your own code without attribution. The SDKs, CLI and MCP server are Apache-2.0; the name Blockmetric is not licensed (forks must be renamed). Data from the API is governed by the API terms; third-party exchange data by the exchange’s terms.