Rate Limits
The Predexon API uses rate limiting to ensure fair usage and maintain service quality for all users. Rate limits are applied per minute and vary by subscription tier.
Rate Limit Tiers
| Tier | Requests/Minute | Use Case |
|---|---|---|
| Unauthenticated | 5 | Testing without an API key |
| Free | 60 | Personal projects, exploration |
| Pro | 500 | Production applications, trading bots |
Need higher limits? Contact us at [email protected] for enterprise plans.
How Rate Limits Work
- Rate limits are counted on a rolling 1-minute window
- Authenticated requests are tracked by API key
- Unauthenticated requests are tracked by IP address
- The
/healthendpoint is not rate limited
Response Headers
Every API response includes rate limit headers:
| Header | Description |
|---|---|
RateLimit-Limit | Maximum requests allowed per minute |
RateLimit-Remaining | Requests remaining in current window |
RateLimit-Reset | Seconds until the rate limit resets |
Example Response Headers:
Code
Handling Rate Limits
When you exceed your rate limit, the API returns a 429 Too Many Requests response:
Code
Best Practices
Don't retry immediately on 429 - this will only extend your rate limit window.
1. Implement Exponential Backoff
Code
2. Monitor Rate Limit Headers
Code
3. Combine Multiple Markets in One Request
Use repeated query parameters to fetch multiple markets in a single request:
Code
4. Cache Responses
Many endpoints return data that doesn't change frequently:
- Markets list: Cache for 1-5 minutes
- Candlestick data: Cache historical data indefinitely
- Matching markets: Cache for 1 hour
Rate Limit Examples by Tier
Free Tier (60/min)
Suitable for:
- Checking market prices every few seconds
- Building a personal dashboard
- Testing integrations
Code
Pro Tier (500/min)
Suitable for:
- Real-time trading applications
- High-frequency price monitoring
- Multi-market analysis
Code
Upgrading Your Tier
To upgrade from Free to Pro:
- Visit predexon.com
- Sign in to your account
- Navigate to API Settings
- Select the Pro plan
Your rate limit increase takes effect immediately.
Need More?
For enterprise needs exceeding 500 requests/minute:
- Custom rate limits tailored to your use case
- Dedicated support with faster response times
- SLA guarantees for mission-critical applications
Contact [email protected] to discuss enterprise options.