Hyperion Docs
  • Home
  • Overview
    • Introduction
    • Contact
    • Glossary
    • Roadmap
  • Concepts
    • Concentrated Liquidity
    • Fees
    • Swap
    • Liquidity Mining
    • Range Order
    • Drips
  • Guides
    • FAQ
    • How to Swap
    • How to Create New Position
    • How to Add/Remove Liquidity
    • How to Create a New Pool
    • How to Place a Limit Order
  • Developer
    • Dev Overview
    • via SDK
      • Getting Started
      • Prerequisites
      • Features Available
        • Get pools
        • Get positions
        • Get ticks
        • Create pool
        • Add Liquidity
        • Remove Liquidity
        • Fee & Rewards
        • Swap
        • Types
    • via Contract
      • Get Started
      • Data structure
      • Features available
        • Create pool
        • Swap
        • Open position
        • Add liquidity
        • Remove liquidity
        • Collect fees
        • Collect rewards
    • via API
    • Contract ErrorCode
  • Security
    • Audits
  • Resource
    • Brand Asset
Powered by GitBook
On this page
  1. Developer

via API

PreviousCollect rewardsNextContract ErrorCode

Last updated 1 month ago

Hyperion using Graphql API from Alcove

Endpoint:

Get Pool Stat

Return stat info about pool / pools (without param $poolId)

query MyQuery($poolId: String = "") {
  api {
    getPoolStat(poolId: $poolId) {
      dailyVolumeUSD     // 24 hour volume in USD
      farmAPR            // reward APR, %
      feeAPR             // fee APR, %
      feesUSD            // fee in USD
      id                 // pool id
      tvlUSD             // TVL in USD
      pool {
        currentTick      // current tick
        activeLpAmount   // active lp amount
        feeRate          // fee rata, 100 = 0.01% 
        sqrtPrice        // current sqrt price
        token1           // token1 FA address 
        token2           // token2 FA address
      }
    }
  }
}
https://hyperfluid-api.alcove.pro/v1/graphql