DEFI

getDexPools

Get the total number of all DEX pools registered with the Sui Directory.

post/v1/dex/pools

Request

  • Base URL
    https://api.blockberry.one/sui
  • URL
    https://api.blockberry.one/sui/v1/dex/pools
  • Auth
    API key in header x-api-key

Query parameters

pageinteger required

Queried API page.

sizeinteger required

Number of queried entries.

orderBy'ASC' | 'DESC' required

Sorting method: from the lowest element to the highest (ASC) or from the highest element to the lowest (DESC).

period'DAY' | 'WEEK' | 'MONTH' required

Period for which data is shown.

sortBy'LIQUIDITY_IN_USD' | 'VOLUME' required

Select sorting parameter.

Request body

poolFactoryIdstring[] required

Common ID for all pools of a single DEX.

poolFactoryEmptyboolean

Example request

{
  "poolFactoryId": [
    "CETUS"
  ]
}

Response

OK

totalPagesinteger
totalElementsinteger
sizeinteger
numberinteger
numberOfElementsinteger
firstboolean
lastboolean
emptyboolean

Changes

No recorded changes to this operation across all 2 revisions of this API.