Pricing
Endpoint Costs
| Endpoint | Cost | Description |
|---|---|---|
| GET /price/:symbol | $0.01 | Real-time aggregated price |
| GET /price/history/:symbol | $0.02 | Historical OHLCV data |
| GET /volume/:symbol | $0.01 | 24h volume data |
| GET /spread/:pair | $0.01 | Bid/ask spread analysis |
| GET /arbitrage-opportunity | $0.03 | Cross-DEX arbitrage scanner |
| GET /volatility-index/:symbol | $0.02 | Risk metrics and volatility |
| POST /price-alert | $0.05 | Create webhook alert |
| GET /health | Free | Health check |
| GET / | Free | API info |
Payment Method
- Token: USDC on Base
- Token Address: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
- Network: Base (Chain ID: 8453)
Caching = Savings
- 30-second cache TTL on all paid endpoints
- Identical requests within 30s are FREE
- No payment needed, no rate limit count
- Cache headers: X-Cache: HIT or MISS
Example Savings
# First request: $0.01
price = client.get("https://api.foursec.xyz/price/ETH")
# Same request 5 seconds later: $0.00 (cached!)
price = client.get("https://api.foursec.xyz/price/ETH")
# Same request 35 seconds later: $0.01 (cache expired)
price = client.get("https://api.foursec.xyz/price/ETH")
Cost Estimation
Per Use Case
| Use Case | Pattern | Monthly Cost |
|---|---|---|
| Trading bot (1 check/min) | 1440 req/day x $0.06 | ~$2,592 |
| Portfolio tracker (5 tokens, hourly) | 120 req/day x $0.01 | ~$36 |
| Dashboard (10 tokens, 5 min) | 2880 req/day x $0.02 | ~$1,728 |
| Price alerts (10 alerts) | 10 x $0.05 | ~$0.50 |
| Research (100 queries/day) | 100 x $0.02 | ~$60 |
With Caching Optimization
| Use Case | Without Cache | With Cache | Savings |
|---|---|---|---|
| Trading bot | $2,592/mo | ~$780/mo | 70% |
| Dashboard | $1,728/mo | ~$520/mo | 70% |
| Research | $60/mo | ~$30/mo | 50% |
TIP
Smart caching is the #1 way to reduce costs. Use the 30s free cache window aggressively.
No Hidden Fees
- No subscription required
- No minimum purchase
- No setup fee
- No monthly commitment
- Pay only for what you use
- Cancel anytime (just stop making requests)
Bulk Discounts
For high-volume users (>100,000 requests/day):
| Volume | Discount |
|---|---|
| 100K-500K req/day | 10% off |
| 500K-1M req/day | 20% off |
| 1M+ req/day | Custom pricing |
Contact: sales@foursec.xyz