Subgraphs and analytics

Introduction

This section is devoted to obtaining data about an instance of the Algebra Integral protocol from the corresponding indexer (The Graph procotol subgraphs).

This page describes the entity schemas in a subgraph.

Examples of requests are given on the subpage: Examples of queries

Subgraph Schema

Factory entity

{
  # factory address
  id: ID!
  # amount of pools created
  poolCount: BigInt!
  # amoutn of transactions all time
  txCount: BigInt!
  # total volume all time in derived USD
  totalVolumeUSD: BigDecimal!
  # total volume all time in derived Matic
  totalVolumeMatic: BigDecimal!
  # total swap fees all time in USD
  totalFeesUSD: BigDecimal!
  # total swap fees all time in USD
  totalFeesMatic: BigDecimal!
  # all volume even through less reliable USD values
  untrackedVolumeUSD: BigDecimal!
  # TVL derived in USD
  totalValueLockedUSD: BigDecimal!
  # value that will be set in the pool when the pool is created 
  defaultCommunityFee: BigInt!
  # TVL derived in Matic
  totalValueLockedMatic: BigDecimal!
  # TVL derived in USD untracked
  totalValueLockedUSDUntracked: BigDecimal!
  # TVL derived in Matic untracked
  totalValueLockedMaticUntracked: BigDecimal!
  # current owner of the factory
  owner: ID!
}

Bundle entity

Token entity

Pool entity

PoolPosition entity

Tick entity

Position entity

PositionSnapshot entity

Transaction entity

Mint entity

Burn entity

Swap entity

Collect entity

Flash entity

AlgebraDayData entity

Data accumulated and condensed into day stats for each pool

PoolDayData entity

PoolFeeData entity

PoolHourData entity

TickHourData entity

TickDayData entity

TokenDayData entity

TokenHourData entity

FeeHourData entity

Last updated