How do I check API health?
Use GET /api/v1/health to check the API and its source health.
curl https://api.squeeze.plus/api/v1/healthThe reply has ok, ts, methodologyVersion, pools, ethUsd, and sources. Pool counts cover total, active, hot, v3, v4, meme, and canonical.
Use GET /api/v1/status for age rules and source rows.
| Policy field | Value |
|---|---|
quoteMaxAgeSeconds | 45 |
poolMaxAgeSeconds | 30 |
reserveMaxAgeSeconds | 120 |
confirmations | 20 blocks |
curl https://api.squeeze.plus/api/v1/statusEach source row names quotes, pools, swaps, or dexscreener. It has last try and last win times, last error, state, and age. Times are Unix seconds. A time or age can be null.
A healthy API does not mean each source is new. Use dataStatus on stock and pool rows too.
Sample
Section titled “Sample”The health call can work while one stock quote is old. Check both the source row and the stock row.