publicPoolsMetadata
Results are returned in descending account-index order, starting at index - 1. To start from the top, pass index=281474976710655; for the next page, pass the last returned account_index. To fetch one pool, use index=+1 and limit=1. Public pools do not require authentication; send an Authorization header to include private account data.
get/api/v1/publicPoolsMetadata
Query parameters
filterstring · enumOptionalPossible values:
Select the records to include using the listed filter values. Allowed values: all, user, protocol, account_index, stake.
indexinteger · int64Required
Exclusive account-index cursor; return pools below this index.
limitinteger · int64 · min: 1 · max: 100Required
Maximum number of records to return.
account_indexinteger · int64Optional
Account index to query.
Header parameters
authorizationstringOptional
Auth token in the Authorization header.
Responses
200
A successful response.
application/json
codeinteger · int32RequiredExample:
200messagestringOptional
400
Bad request
application/json
get/api/v1/publicPoolsMetadata
GET /api/v1/publicPoolsMetadata?index=1&limit=1 HTTP/1.1
Host: mainnet.zklighter.elliot.ai
Accept: */*
{
"code": 200,
"message": "text",
"public_pools": [
{
"code": 200,
"message": "text",
"account_index": 3,
"account_type": 1,
"name": "text",
"l1_address": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
"annual_percentage_yield": 20.5,
"status": 0,
"operator_fee": "100",
"total_asset_value": "19995",
"total_shares": 100000,
"account_share": {
"public_pool_index": 1,
"shares_amount": 3000,
"entry_usdc": "3000",
"entry_timestamp": 1,
"principal_amount": "text"
},
"assets": [
{
"symbol": "USDC",
"asset_id": 1,
"balance": "1000",
"locked_balance": "1000",
"margin_balance": "1000",
"margin_mode": "enabled",
"multiplier": "1.000000000000000000"
}
],
"created_at": 1,
"master_account_index": 1,
"sharpe_ratio": 1,
"total_perps_value": "text",
"total_spot_value": "text"
}
]
}Last updated
Was this helpful?