Skip to main content

Token Pair With Liquidity

Queries all the token pair pools, their VLP address, liquidity amount, and APR (Annual Percentage Rate). You can filter by a token ID, verified pools, and sort the results.

query Token_pair_with_liquidity($token: String, $limit: Int, $offset: Int, $onlyShowVerified: Boolean, $sortBy: TokenPairSortBy, $sortOrder: SortOrder) {
pool {
token_pair_with_liquidity(token: $token, limit: $limit, offset: $offset, only_show_verified: $onlyShowVerified, sort_by: $sortBy, sort_order: $sortOrder) {
results {
pair {
token_1
token_2
}
vlp
total_liquidity
apr
tags
created_at
}
pagination {
total_count
limit
offset
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Token_pair_with_liquidity($token: String, $limit: Int, $offset: Int, $onlyShowVerified: Boolean, $sortBy: TokenPairSortBy, $sortOrder: SortOrder) {\n pool {\n token_pair_with_liquidity(token: $token, limit: $limit, offset: $offset, only_show_verified: $onlyShowVerified, sort_by: $sortBy, sort_order: $sortOrder) {\n results {\n pair {\n token_1\n token_2\n }\n vlp\n total_liquidity\n apr\n tags\n created_at\n }\n pagination {\n total_count\n limit\n offset\n }\n }\n }\n}","variables":{"token":null,"limit":null,"offset":null,"onlyShowVerified":null,"sortBy":null,"sortOrder":null}}'

Open in Playground

ArgumentTypeDescription
tokenStringThe token ID to filter pools by (optional).
limitIntLimit the number of results returned (optional).
offsetIntNumber of pools to skip before starting to return results (for pagination).
onlyShowVerifiedBooleanIf true, only return verified pools.
sortByTokenPairSortByField to sort the results by (e.g., APR, Liquidity, etc).
sortOrderSortOrderOrder of sorting: ASC or DESC.

Return Fields

FieldTypeDescription
pair.token_1StringThe first token in the pool.
pair.token_2StringThe second token in the pool.
vlpStringThe VLP contract address that hosts this pool.
total_liquidityStringThe total liquidity of the pool.
aprStringThe APR (Annual Percentage Rate) for providing liquidity to the pool.
tags[String]Optional tags or labels associated with the pool.
created_atStringTimestamp of when the pool was created.
pagination.total_countIntThe total number of matching results across all pages.
pagination.limitIntThe limit applied to this query.
pagination.offsetIntThe offset applied to this query.