Show how concentrated positions, volume and liquidators are
/v1/chains/{chain}/perpl/concentrationCall this to see who holds the risk. The record has four parts besides kind, chain and coverage:
markets: per priced market, in ascending order of perp id, the number ofpositions, the long, short and total notional at the mark, andtop1,top5andtop10, the share of the market's total notional that the largest 1, 5 and 10 accounts hold. The total is two-sided: the long notional plus the short notional, which is thetotal_notional_usdof the same item, so a share can be recomputed from the response.top_accountslists up to 10 accounts, the largest first, withaccount_id, the walletaddress(nullwhen Sona has not seen it yet), the notional, theshareand the number ofpositions.overall: the same over all markets, where an account's notional is added up across markets, with the number ofaccountsthat hold any position.volume: the share of the trading volume that the top 1, 5 and 10 accounts hold on Perpl's public leaderboard, for the last day (day) and for all time (all).rowsis the number of leaderboard rows,total_volume_usdtheir volume (the leaderboard counts both sides of each trade) andtop10_volume_usdthe volume of the 10 largest. A period isnullwhen the leaderboard could not be read, andcoveragehasperpl_leaderboard_unavailable.keepers: the liquidators. Theitemsare the 10 addresses that sent the most liquidation transactions, with their count and theirshareof alltotalliquidations indexed, betweenfirst_blockandlast_block.totalis 0 anditemsis empty before any liquidation is indexed.
Path parameters
| Name | Type | Description |
|---|---|---|
chainRequired | string | The chain, as a CAIP-2 chain ID. Only Monad, |
Response
The answer, wrapped in the {data, meta, links} envelope. data.kind is perpl_concentration. meta.as_of names the snapshot block.
| Field | Type | Description |
|---|---|---|
| chain | string | The CAIP-2 id of the chain. |
| coverage | array of strings | The codes of the limits that apply to this answer, in a fixed order. It is empty when none applies. The status route explains each code. |
| keepers | object | |
| kind | string | perpl_concentration |
| markets | array of objects | |
| overall | object | |
| volume | object |
Cost
2 credits. The time limit is 5 seconds.
Errors
| Status | Code |
|---|---|
| 400 | invalid_idinvalid_query |
| 404 | unsupported_chain |
| 429 | rate_limitedcredits_exhausted |
| 500 | internal |
| 503 | upstream_unavailable |
| 504 | deadline_exceeded |
400 for a query parameter (this route takes none) or a chain that is no CAIP-2 id, 404 unsupported_chain, 503 and 504 as elsewhere.