GET /api/v1/assetDetails

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/lighter/api/v1/assetDetailsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Collateral and spot asset specifications including decimals, margin modes, and caps.

Parameters

nameintypedescription
asset_idqueryintoptionalFilter to a single asset ID; omit for all.

Response

type: object
data key: asset_details
pagination: none
sample: {
  "code": "int",
  "asset_details": "array[13]"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/lighter/api/v1/assetDetails"