trade

Get legacy DexV3Contract pools

Pools on the legacy contract only.

get/v1/trade/pools

Request

Query parameters

sortBy'tvl' | 'volume30d' | 'volume1d'
Example:tvl

Sort by field

sortOrder'asc' | 'desc'
Example:desc

Sort order

searchstring
Example:GALA

Search term for filtering pools

pagenumber
Example:1

Page number for pagination (starts at 1)

limitnumber
Example:10

Maximum number of pools per page; omit to return all

poolVersion'v1' | 'v2' | 'all'
Example:v2

Which contract's pools to include. Comma-separated: "v1" (legacy DexV3Contract), "v2" (new GalaChainDex), "all", or a combination such as "v1,v2" (equivalent to "all"). Omit to include both.

Response

statusnumber required
errorfalse required
messagestring

Example response

{
  "status": 200,
  "message": "Pool details fetched successfully",
  "data": {
    "pools": [
      {
        "poolPair": "SYNTHETIC_TOKEN$Unit$none$none/SYNTHETIC_QUOTE$Unit$none$none/3000",
        "poolHash": "v2:synthetic-pool-ref",
        "token0": "SYNTHETIC_TOKEN",
        "token0Image": "https://images.example.test/token0.png",
        "token1": "SYNTHETIC_QUOTE",
        "token1Image": "https://images.example.test/token1.png",
        "token0CompositeKey": "SYNTHETIC_TOKEN$Unit$none$none",
        "token1CompositeKey": "SYNTHETIC_QUOTE$Unit$none$none",
        "token0OriginChain": "native",
        "token1OriginChain": "native",
        "token0Price": "1.25",
        "token1Price": "0.8",
        "poolName": "SYNTHETIC_TOKEN / SYNTHETIC_QUOTE",
        "fee": "0.3",
        "fee24h": 12.5,
        "token0Tvl": 1000,
        "token0TvlUsd": 1250,
        "token1Tvl": 1250,
        "token1TvlUsd": 1000,
        "tvl": 2250,
        "volume1d": 300,
        "volume30d": 7500,
        "volume7d": 1800,
        "trades1d": 18,
        "dayPerTvl": 0.1333,
        "apr1d": 48.67,
        "opportunityScore": 0.82,
        "contractVersion": "v2"
      }
    ],
    "count": 1
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.