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 freeCollateral and spot asset specifications including decimals, margin modes, and caps.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
asset_id | query | int | optional | Filter 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"