List the markets with their risk figures
/v1/chains/{chain}/perpl/marketsCall this for the headline table: one item per priced market, in ascending order of perp id. An item holds:
- the identity:
perp_id,symbol,nameand the rawstatus; markandoracleprices,oracle_gap_bps(the mark against the oracle,nullwithout an oracle price) andoracle_age_s, the seconds between the oracle's own timestamp and the snapshot time. A stale oracle blocks liquidations, so watch this one;long_oiandshort_oiwithsizein the base asset andusdat the mark. Perpl matches every trade, so both sides are equal;positions, the number of open positions, andinsurance_fund_usd;funding_rateper funding interval,max_leverageandmaint_margin_fraction;scr_m10andscr_p10: the Shock Cover Ratio when the mark falls or rises by 10%. Anullratio withno_bad_debt_m10orno_bad_debt_p10truemeans that the shock causes no bad debt. The stress route explains how it is computed.
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_markets. 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. |
| items | array of objects | One item per priced market, in ascending order of perp id. |
| kind | string | perpl_markets |
Cost
1 credit. 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 upstream_unavailable before the first snapshot or when the database does not answer, and 504 deadline_exceeded.