Skip to main content

Token Liquidities

Queries the total amount of liquidity available for tokens.

query Pool($page: Int!, $limit: Int!) {
pool {
token_liquidities(page: $page, limit: $limit) {
token
total_liquidity
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.euclidprotocol.com/graphql' \
--data '{"query":"query Pool($page: Int!, $limit: Int!) {\n pool {\n token_liquidities(page: $page, limit: $limit) {\n token\n total_liquidity\n }\n }\n}","variables":{"page":1,"limit":10}}'

Open in Playground

Arguments

  • page (Int!): The page number to start from. Used for pagination.
  • limit (Int!): The number of items per page.

Return Fields

FieldTypeDescription
tokenStringThe token symbol or identifier.
total_liquidityFloatThe total liquidity of the token.