Skip to main content

Token Liquidity

Queries the total amount of liquidity available for the specified token.

query Pool($token: String!) {
pool {
token_liquidity(token: $token) {
token
total_liquidity
}
}
}

Example

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

Open in Playground

Arguments

  • token: The token Id of the token to get the liquidity amount for.

Return Fields

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