# Subgraph

Please refer to Github repo for the latest version

Code: <https://github.com/pancakeswap/pancake-subgraph>

1. [**Blocks**](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/blocks): Tracks all blocks on Binance Smart Chain.
   * BSC <https://thegraph.com/legacy-explorer/subgraph/pancakeswap/blocks>
   * zkSync [https://api.studio.thegraph.com/query/45376/blocks-zksync/version/latest](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/blocks)
   * zkSync testnet <https://api.studio.thegraph.com/query/45376/blocks-zksync-testnet/version/latest>
   * Polygon zkEVM <https://api.studio.thegraph.com/query/45376/polygon-zkevm-block/version/latest>
   * opBNB <https://opbnb-mainnet-graph.nodereal.io/subgraphs/name/pancakeswap/blocks>
2. [**Exchange V2**](https://nodereal.io/meganode/api-marketplace/pancakeswap-graphql): Tracks all PancakeSwap V2 Exchange data with price, volume, liquidity, ...
   * BSC <https://nodereal.io/meganode/api-marketplace/pancakeswap-graphql>
   * ETH <https://api.thegraph.com/subgraphs/name/pancakeswap/exhange-eth>
   * Polygon zkEVM <https://api.studio.thegraph.com/query/45376/exchange-v2-polygon-zkevm/version/latest>
   * Polygon zkEVM testnet <https://api.studio.thegraph.com/query/45376/exchange-v2-polygon-zkevm-test/version/latest>
   * zkSync <https://api.studio.thegraph.com/query/45376/exchange-v2-zksync/version/latest>
   * zkSync testnet <https://api.studio.thegraph.com/query/45376/exchange-v2-zksync-testnet/version/latest>
   * Linea <https://graph-query.linea.build/subgraphs/name/pancakeswap/exhange-v2>
   * Base <https://api.studio.thegraph.com/query/45376/exchange-v2-base/version/latest>
   * opBNB <https://opbnb-mainnet-graph.nodereal.io/subgraphs/name/pancakeswap/exchange-v2>
3. [**Farm Auctions**](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/farm-auctions): Tracks all PancakeSwap Farm Auctions with auctions and bids.
4. [**Lottery**](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/lottery): Tracks all PancakeSwap Lottery with rounds, draws and tickets.
5. [**NFT Market (v1)**](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/nft-market): Tracks all PancakeSwap NFT Market for ERC-721.
6. [**Pairs**](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/pairs): Tracks all PancakeSwap Pairs and Tokens.
7. [**Pancake Squad**](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/pancake-squad): Tracks all Pancake Squad metrics with Owners, Tokens (including metadata), and Transactions.
8. [**Prediction (v1)**](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/prediction): Tracks all PancakeSwap Prediction (v1) with market, rounds, and bets.
9. [**Prediction (v2)**](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/prediction-v2): Tracks all PancakeSwap Prediction (v2) with market, rounds, and bets.
10. [**Profile**](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/profile): Tracks all PancakeSwap Profile with teams, users, points and campaigns.
11. [**SmartChef**](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/smartchef): Tracks all PancakeSwap SmartChef (a.k.a. Syrup Pools) with tokens and rewards.
12. [**Timelock**](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/timelock): Tracks all PancakeSwap Timelock queued, executed, and cancelled transactions.
13. [**Trading Competition (v1)**](https://thegraph.com/legacy-explorer/subgraph/pancakeswap/trading-competition-v1): Tracks all metrics for the Easter Battle (April 07—14, 2021).
14. [**MasterChef (v2)**](https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v2): Tracks data for MasterChefV2.
15. **MasterChef (v3)**: Tracks data for MasterChefV3.
    * BSC <https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v3-bsc>
    * BSC testnet <https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v3-chapel>
    * ETH <https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v3-eth>
    * GOR <https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v3-goerli>
    * Polygon zkEVM <https://api.studio.thegraph.com/query/45376/masterchef-v3-polygon-zkevm/version/latest>
    * Polygon zkEVM testnet <https://api.studio.thegraph.com/query/45376/masterchef-v3-zkevm-testnet/version/latest>
16. **Exchange (v3)**: Tracks all PancakeSwap V3 Exchange data with price, volume, liquidity
    * BSC <https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v3-bsc>
    * BSC testnet <https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v3-chapel>
    * ETH <https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v3-eth>
    * GOR <https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v3-goerli>
    * Polygon zkEVM <https://api.studio.thegraph.com/query/45376/exchange-v3-polygon-zkevm/version/latest>
    * Polygon zkEVM testnet <https://api.studio.thegraph.com/query/45376/exchange-v3-polygon-zkevm-test/version/latest>
    * zkSync <https://api.studio.thegraph.com/query/45376/exchange-v3-zksync/version/latest>
    * zkSync testnet <https://api.studio.thegraph.com/query/45376/exchange-v3-zksync-testnet/version/latest>
    * Linea <https://graph-query.linea.build/subgraphs/name/pancakeswap/exchange-v3-linea>
    * Base <https://api.studio.thegraph.com/query/45376/exchange-v3-base/version/latest>
    * opBNB <https://opbnb-mainnet-graph.nodereal.io/subgraphs/name/pancakeswap/exchange-v3>
17. **StableSwap**
    * BSC <https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-stableswap>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pancakeswap.finance/chinese/gei-kai-fa-zhe-men/api/subgraph.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
