Query Guide
Introduction
Basic Queries
Pool Data
# Get basic pool information
{
pandaPool(id: "0x123...") {
id
price
volumeUSD
swapsCount
graduated
}
}
# List active pools with high volume
{
pandaPools(
where: {
volumeUSD_gt: "100000",
graduated: false
}
orderBy: volumeUSD
orderDirection: desc
first: 10
) {
id
price
volumeUSD
}
}Trading Activity
Advanced Queries
Time-Based Queries
Market Analysis
Query Optimization
Pagination
Field Selection
Using Fragments
Common Use Cases
Trading Interface Data
Analytics Dashboard
Real-time Data Updates
Polling Strategy
Using Block Numbers
Error Handling
Null Checks
Block Timestamps
Best Practices
Next Steps
Last updated