Skip to main content
You're reading the V1 docs. They cover the first generation of Intuition: the intuition-ts packages and the intuition-rs services. New development happens in V2. Open the V2 docs
Version: V1

Example: Trending Atoms

Find top atoms ranked by vault market cap.

Query​

Query

query GetTrendingAtoms($curveId: numeric!, $limit: Int!) {
  vaults(
    where: { curve_id: { _eq: $curveId } }
    order_by: { market_cap: desc }
    limit: $limit
  ) {
    term_id
    market_cap
    position_count
    total_shares
    term {
      atom {
        term_id
        label
        image
        type
      }
    }
  }
}

Variables

Click "Run Query" to execute the GraphQL query and see results