API

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

You can directly know the TVL, Total CHR Supply, Circulating Supply or the Pools APR direcly on our Endpoints.

Using Subgraph allows users to fetch relevant data of the protocol like: Daily Pair Data, Daily Tokens Data, Pool factory Data, Pool List, Swaps list & User Swaps although its possible to fetch any data you need.

"Daily Pair Data" 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 List" query returns total data available:

"Daily Tokens Data" query returns total data available:

"Pool factory Data" query returns total data available:

"Swaps list" query returns total data available: //

"User Swaps" query returns total data available:

Last updated