Astralane
  • Welcome to Astralane
  • 🚅Low Latency
    • Quickstart
    • Endpoints and Configs
    • Submit Transactions
  • 🔍Data Pipelines
    • Overview
    • Our Products
      • Authentication
      • Dex Pools API
        • Latest Dex Pools API
      • OHLCV API
      • Websocket - Token price and Volume
      • Trade Data - Dex trades
      • PnL Indexer
      • Historical Token Portfolio
      • Top 100 Token Holders
      • Token Price API
      • Historical Token Price API
      • Profitable Wallets
      • Wallet PnL API
      • Trasaction Indexer
  • Japanese Docs
    • 🌌 Astralane ドキュメント
      • 低遅延 -クイックスタート
      • 🚅 エンドポイントと設定
      • トランザクションの送信
  • Mandarin Docs
    • 🌌 欢迎来到 Astralane
      • 低延迟快速入门
      • 🚅 端点和配置
      • 提交交易
Powered by GitBook
On this page
  • GraphQL Query
  • Response
  • Response Fields
  • Supported DEXes:
  1. Data Pipelines
  2. Our Products

Dex Pools API

API for dex pools latest balances

PreviousAuthenticationNextLatest Dex Pools API

Last updated 1 month ago

The Dex Pools API provides a comprehensive interface to query and retrieve detailed information about all supported Decentralized Exchange (DEX) pools. This API delivers real-time data on pool balances, including the latest token balances, enabling developers to access up-to-date liquidity information for seamless integration into applications.

Designed with performance and scalability in mind, the Dex Pools API ensures fast and reliable access to critical pool data, making it an essential tool for building decentralized finance (DeFi) applications, analytics platforms, and trading tools

Base URL:

GraphQL Query

query PoolsData {
  poolsData(page: 1) {
    block_slot
    block_time
    pool
    mint_a
    mint_b
    token_a_amount
    token_b_amount
    program
  }
}

Response

The API responds with a JSON object containing a data field, which includes an array of pool data with the latest token balances.

{
  "data": {
    "poolsData": [
      {
        "block_slot": 321249880,
        "block_time": "2025-02-17 12:17:04.741",
        "pool": "FcQRFJpQcdfyc4UHqMYMgzQTiy5wfxPvDcP9ywQN7SYR",
        "mint_a": "61V8vBaqAGMpgDQi4JcAwo1dmBGHsyhzodcPqnEVpump",
        "mint_b": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "token_a_amount": 86679.966529,
        "token_b_amount": 17380.573925
      }
    ]
  }
}

Response Fields

  • block_slot: The slot number of the block.

  • block_time: The date time of the block.

  • pool: The address of the pool.

  • mint_a: The mint address for token A.

  • mint_b: The mint address for token B.

  • token_a_amount: The current balance of token A in the pool.

  • token_b_amount: The current balance of token B in the pool.

  • program: The address of the dex program.

Supported DEXes:

For a list of supported DEXes and indexed data details, please refer to the page

🔍
https://graphql.astralane.io/api/v1/dataset/dex-pools/v2
Supported DEXes and Indexed Data