PancakeSwap GraphQL API
PancakeSwap exposes on-chain DeFi data through GraphQL subgraphs hosted on The Graph Protocol and NodeReal. The primary subgraph is the Exchange V3 subgraph, which indexes concentrated liquidity pool data on BNB Smart Chain and Ethereum mainnet. It provides queryable entities covering tokens, liquidity pools, tick ranges, positions, swaps, mints, burns, fee collections, and flash loans, as well as aggregated time-series data at hourly and daily granularity for pools, tokens, and the overall protocol.
Overview
PancakeSwap GraphQL API is a GraphQL API specification published by PancakeSwap on the APIs.io network.
PancakeSwap exposes on-chain DeFi data through GraphQL subgraphs hosted on The Graph Protocol and NodeReal. The primary subgraph is the Exchange V3 subgraph, which indexes concentrated liquidity pool data on BNB Smart Chain and Ethereum mainnet. It provides queryable entities covering tokens, liquidity pools, tick ranges, positions, swaps, mints, burns, fee collections, and flash loans, as well as aggregated time-series data at hourly and daily granularity for pools, tokens, and the overall protocol.
The GraphQL endpoint is available at https://gateway.thegraph.com/api/subgraphs/id/78EUqzJmEVJsAKvWghn7qotf9LVGqcTQxJhT5z84ZmgJ. documentation is published at https://developer.pancakeswap.finance/apis/subgraph.
The specification includes 2 reference links.
Tagged areas include DeFi, DEX, BNB Chain, Decentralized Exchange, and Blockchain.
Endpoint
References
- Documentation https://developer.pancakeswap.finance/apis/subgraph
- GettingStarted https://docs.pancakeswap.finance/chinese/gei-kai-fa-zhe-men/api/subgraph