> For the complete documentation index, see [llms.txt](https://docs.lighter.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lighter.xyz/api/account/publicpoolsmetadata.md).

# 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.

```json
{"openapi":"3.0.0","info":{"title":"Lighter API","version":"1.0.0"},"tags":[{"name":"account"}],"servers":[{"url":"https://mainnet.zklighter.elliot.ai","description":"Lighter mainnet"},{"url":"https://api.testnet.lighter.xyz","description":"Lighter testnet"},{"url":"https://api.rh.lighter.xyz","description":"Lighter on Robinhood Chain mainnet"},{"url":"https://api.rh-testnet.lighter.xyz","description":"Lighter on Robinhood Chain testnet"}],"paths":{"/api/v1/publicPoolsMetadata":{"get":{"summary":"publicPoolsMetadata","operationId":"publicPoolsMetadata","tags":["account"],"description":"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=<pool account_index>+1 and limit=1. Public pools do not require authentication; send an Authorization header to include private account data.","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string"},"description":"Auth token in the Authorization header."},{"name":"filter","in":"query","required":false,"schema":{"type":"string","enum":["all","user","protocol","account_index","stake"]},"description":"Select the records to include using the listed filter values. Allowed values: all, user, protocol, account_index, stake."},{"name":"index","in":"query","required":true,"schema":{"type":"integer","format":"int64"},"description":"Exclusive account-index cursor; return pools below this index."},{"name":"limit","in":"query","required":true,"schema":{"type":"integer","format":"int64","minimum":1,"maximum":100},"description":"Maximum number of records to return."},{"name":"account_index","in":"query","required":false,"schema":{"type":"integer","format":"int64"},"description":"Account index to query."}],"responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespPublicPoolsMetadata"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultCode"}}}}}}}},"components":{"schemas":{"RespPublicPoolsMetadata":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"public_pools":{"type":"array","items":{"$ref":"#/components/schemas/PublicPoolMetadata"}}},"title":"RespPublicPoolsMetadata","required":["code","public_pools"]},"PublicPoolMetadata":{"type":"object","properties":{"code":{"type":"integer","format":"int32","description":"Legacy nested result field; nested account items normally return code 0, unlike the top-level response."},"message":{"type":"string","description":"Legacy nested result field; nested account items normally return code 0, unlike the top-level response."},"account_index":{"type":"integer","format":"int64"},"account_type":{"type":"integer","format":"uint8"},"name":{"type":"string"},"l1_address":{"type":"string"},"annual_percentage_yield":{"type":"number","format":"double"},"status":{"type":"integer","format":"uint8"},"operator_fee":{"type":"string"},"total_asset_value":{"type":"string"},"total_shares":{"type":"integer","format":"int64"},"account_share":{"$ref":"#/components/schemas/PublicPoolShare"},"assets":{"type":"array","items":{"$ref":"#/components/schemas/AccountAsset"}},"created_at":{"type":"integer","format":"int64"},"master_account_index":{"type":"integer","format":"int64"},"sharpe_ratio":{"type":"number","format":"double"},"total_perps_value":{"type":"string"},"total_spot_value":{"type":"string"}},"title":"PublicPoolMetadata","required":["code","account_index","account_type","name","l1_address","annual_percentage_yield","status","operator_fee","total_asset_value","total_shares","assets","created_at","master_account_index","sharpe_ratio","total_perps_value","total_spot_value"],"description":"Fields with zero or empty values may be omitted; handle optional properties when decoding responses."},"PublicPoolShare":{"type":"object","properties":{"public_pool_index":{"type":"integer","format":"int64"},"shares_amount":{"type":"integer","format":"int64"},"entry_usdc":{"type":"string"},"entry_timestamp":{"type":"integer","format":"int64"},"principal_amount":{"type":"string"}},"title":"PublicPoolShare","required":["public_pool_index","shares_amount","entry_usdc","entry_timestamp","principal_amount"]},"AccountAsset":{"type":"object","properties":{"symbol":{"type":"string"},"asset_id":{"type":"integer","format":"int16"},"balance":{"type":"string"},"locked_balance":{"type":"string"},"margin_balance":{"type":"string"},"margin_mode":{"type":"string","enum":["enabled","disabled"]},"multiplier":{"type":"string"}},"title":"AccountAsset","required":["symbol","asset_id","balance","locked_balance","margin_mode","margin_balance","multiplier"]},"ResultCode":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}},"title":"ResultCode","required":["code"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lighter.xyz/api/account/publicpoolsmetadata.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
