Panda Protocol Subgraph
Last updated
Last updated
The Panda Protocol subgraph indexes and provides structured access to protocol data through a GraphQL API. This documentation will help you integrate with our data layer effectively.
The subgraph serves as the backbone for accessing Panda Protocol's on-chain data. It processes and indexes:
Pool deployments and configurations
Trading activities and price movements
Liquidity positions and migrations
Token holder balances and distributions
Building trading interfaces requiring real-time pool data
Creating analytics dashboards with historical data
Tracking pool performance and market metrics
Monitoring token holder distributions
The subgraph maintains several core entities:
PandaPool
: Pool state and metrics
Token
: Token details and statistics
Swap
: Trading activity records
Holder
: Token holder information
For detailed entity definitions, see our Entities documentation.
Entity Relationships
Understanding data models
Entity relationships
Field references
Query Examples
Common queries
Filtering and sorting
Pagination patterns
Advanced Usage
Performance optimization
Error handling
Edge cases