API

In this section you will find everything necessary to make correct API calls

You can directly know the TVLarrow-up-right, Total CHR Supplyarrow-up-right, Circulating Supplyarrow-up-right or the Pools APRarrow-up-right direcly on our Endpoints.

Using Subgrapharrow-up-right allows users to fetch relevant data of the protocol like: Daily Pair Dataarrow-up-right, Daily Tokens Dataarrow-up-right, Pool factory Dataarrow-up-right, Pool Listarrow-up-right, Swaps listarrow-up-right & User Swapsarrow-up-right although its possible to fetch any data you need.

"Daily Pair Dataarrow-up-right" query returns:

{
  "data": {
    "pairDayDatas": [
      {
        "date": 1682553600, // Date in Timestamp (27th April)
        "reserve1": "1358581.941223", // Total liquidity in USDC
        "reserve0": "789846.452525962689828775", //Total liquidity in CHR
        "token1": {
          "symbol": "USDC"
        },
        "token0": {
          "symbol": "CHR"
        },
        "dailyVolumeToken0": "3065199.472078795661522056", // Volume in USDC in 24 hours
        "dailyVolumeToken1": "3640765.689241", // Volume in CHR in 24 hours
        "dailyTxns": "1948", // Transaction count
        "pairAddress": "0x20585bfbc272a9d58ad17582bcda9a5a57271d6a"
      },
      { ... }, // 28th April
      ... // 29th April...
    ]
  }

"Pool Listarrow-up-right" query returns total data available:

"Daily Tokens Dataarrow-up-right" query returns total data available:

"Pool factory Dataarrow-up-right" query returns total data available:

"Swaps listarrow-up-right" query returns total data available: //

"User Swapsarrow-up-right" query returns total data available:

Last updated