Liquidity List

Liquidity List
liquidity-list
  • An application that needs to integrate with DODO's liquidity pool listing.

URL#

https://api.dodoex.io/graphql?opname=FetchLiquidityList&apikey=${apikey}

curl -i -X POST \
   -H "Content-Type:application/json" \
   -d \
'{
    "operationName": "FetchLiquidityList",
    "variables": {
        "first": 1000,
        "where": {
            "refreshNow": true,
            "filterState": {
                "address": "",
                "viewOnlyOwn": false,
                "filterTypes": [
                    "CLASSICAL",
                    "DVM",
                    "DSP"
                ]
            },
            "chainIds": [
                56
            ],
            "currentPage": 1,
            "pageSize": 8
        }
    },
    "query": "query FetchLiquidityList($where: Liquiditylist_filter) {\n  liquidity_list(where: $where) {\n    currentPage\n    pageSize\n    totalCount\n    lqList {\n      id\n      isPrivatePool\n      isMyLiquidity\n      pair {\n        id\n        chainId\n        type\n        baseReserve\n        quoteReserve\n        lastTradePrice\n        lpFeeRate\n        i\n        creator\n        baseLpToken {\n          id\n          decimals\n          __typename\n        }\n        quoteLpToken {\n          id\n          decimals\n          __typename\n        }\n        baseToken {\n          id\n          symbol\n          name\n          decimals\n          usdPrice\n          logoImg\n          __typename\n        }\n        quoteToken {\n          id\n          symbol\n          name\n          decimals\n          usdPrice\n          logoImg\n          __typename\n        }\n        tvl\n        apy {\n          miningBaseApy\n          miningQuoteApy\n          transactionBaseApy\n          transactionQuoteApy\n          __typename\n        }\n        miningAddress\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}"
}' \
 'https://api.dodoex.io/graphql?opname=FetchLiquidityList&apikey=dododocstestapikey'

Request Parameters#

Use GraphQL for data querying.

variables.where

Parameter nameType of parameterDescription
refreshNowBooleantrue: Need to refresh immediately
filterStateObjectFilter conditions
filterState.addressAddressMatch Pool Address
filterState.viewOnlyOwnBooleantrue: Only show the ones I have participated in.
filterState.filterTypesArray

DVM (DODO Vending Machine)


DPP (DODO Private Pool)


DSP (DODO Anchor Pool, Stable Pool)


CLASSICAL (DODO V1 Classic Pool)

chainIdsArrayChain IDs: 1, 56, 137, 42161
currentPageNumberCurrent page number
pageSizeNumberNumber of items per page

Return Values#

data.liquidity_list

Field NameTypeField Description
currentPageNumberCurrent page number
pageSizeNumberNumber of items per page
totalCountNumberTotal Count
lqListArrayLiquidity List
lqList.idStringPool address
lqList.isPrivatePoolBooleanIs it a private pool
lqList.isMyLiquidityBooleanIs it the pool I participated in
lqList.pairObjectPair information
lqList.pair.idStringPool address
lqList.pair.chainIdNumberChain Id
lqList.pair.typeStringPool type
lqList.pair.baseReserveStringBase token Reserve
lqList.pair.quoteReserveStringQuote token Reserve
lqList.pair.lpFeeRateStringLiquidity fee Rate
lqList.pair.creatorStringLiquidity creator
lqList.pair.baseLpTokenObjectBase Lp token information
lqList.pair.quoteLpTokenObjectQuote Lp token information
lqList.pair.baseTokenObjectBase token information
lqList.pair.quoteTokenObjectQuote token information
lqList.pair.tvlBigNumberTotal Value Locked
lqList.pair.apyObjectApy information
lqList.pair.apy.miningBaseApyBigNumberMining Base Token Apy
lqList.pair.apy.miningQuoteApyBigNumberMining Quote Token Apy
lqList.pair.apy.transactionBaseApyBigNumberTransaction Base Token Apy
lqList.pair.apy.transactionQuoteApyBigNumberTransaction Quote Token Apy
lqList.pair.miningAddressArrayList of related mining addresses
{
  "data": {
    "liquidity_list": {
      "currentPage": 1,
      "pageSize": 8,
      "totalCount": 11145,
      "lqList": [
        {
          "id": "0xbe60d4c4250438344bec816ec2dec99925deb4c7",
          "isPrivatePool": null,
          "isMyLiquidity": null,
          "pair": {
            "id": "0xbe60d4c4250438344bec816ec2dec99925deb4c7",
            "chainId": 56,
            "type": "CLASSICAL",
            "baseReserve": "3998534.319080474996578659",
            "quoteReserve": "1284476.309249048151995739",
            "lastTradePrice": "0.9997082006745880752238325651342203",
            "lpFeeRate": "0",
            "i": "0",
            "creator": "0x0000000000000000000000000000000000000000",
            "baseLpToken": {
              "id": "0xbeb34a9d23e0fe41d7b08ae3a4cbad9a63ce0aea",
              "decimals": "18",
              "__typename": "LiquidityLpToken"
            },
            "quoteLpToken": {
              "id": "0x56ce908eebafea026ab047cee99a3aff039b4a33",
              "decimals": "18",
              "__typename": "LiquidityLpToken"
            },
            "baseToken": {
              "id": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
              "symbol": "BUSD",
              "name": "BUSD Token",
              "decimals": "18",
              "usdPrice": "0.9998546564791431682555969857409425",
              "logoImg": "/l-RknfxPweyB8eXIbvoN0tw3-9srFNrL_DwSNtKHuQE/aHR0cHM6Ly9jZG4tbWVkaWEuZG9kb2V4LmlvL2VyYzIwL2h0dHBzX2Nkbl9tZWRpYV9kb2RvZXhfaW9fYnVzZF82MzllYjg3YWExX2J1c2RfNjM5ZWI4N2FhMV9lOWU1YWE0NzlmLnN2Zw.svg",
              "__typename": "LiquidityToken"
            },
            "quoteToken": {
              "id": "0x55d398326f99059ff775485246999027b3197955",
              "symbol": "USDT",
              "name": "Tether USD",
              "decimals": "18",
              "usdPrice": "1.000146498552733954623011539790912",
              "logoImg": "/N7PStWWfFhcSW35BQ6LBHh_dyTNPBjkTKMtpNYypHRY/aHR0cHM6Ly9jZG4tbWVkaWEuZG9kb2V4LmlvL2VyYzIwL2h0dHBzX2Nkbl9tZWRpYV9kb2RvZXhfaW9fdXNkdF8xNTY0MWZjZDQwX3VzZHRfMTU2NDFmY2Q0MF9jZjI1ZTc5YTNjLnN2Zw.svg",
              "__typename": "LiquidityToken"
            },
            "tvl": "5280048.661191908732280027203142",
            "apy": {
              "miningBaseApy": "0.122834",
              "miningQuoteApy": "0.102284",
              "transactionBaseApy": "0",
              "transactionQuoteApy": "0",
              "__typename": "LiquidityApyData"
            },
            "miningAddress": ["0x01f9BfAC04E6184e90bD7eaFD51999CE430Cc750"],
            "__typename": "LiquidityPair"
          },
          "__typename": "LiquidityLqList"
        }
      ],
      "__typename": "LiquidityListInfo"
    }
  }
}