Liquidity Operations
View Pools
GET
View Pools
This endpoint provides real-time and historical data for all liquidity pools in the protocol.
Data Update Frequency
Our system maintains two update cycles for different types of pool data:
Real-time Updates (5-second intervals)
- Total Value Locked (TVL)
- Price Ticks
- Liquidity Positions
- Square Root Prices
Hourly Updates
- Annual Percentage Rates (APRs)
- Trading Fees
- Trading Volume
Using the sdk
Implementing Real-time Updates
To maintain real-time data updates, you can implement a polling mechanism. Here is a simple PoC:
Best Practices
- Rate Limiting: Respect the API rate limits by not exceeding the recommended polling intervals
- Error Handling: Implement proper error handling and retries
- Data Caching: Cache data locally to reduce API calls but keep in mind update frequency
- State Management: Use appropriate state management solutions for your frontend framework. This can negatively impact the ticks and liquidity seeding