Stress Test Docs
API documentation for calculating dynamic risk scores for stablecoins based on peg deviation, liquidity, volume, collateral quality, and other adjustable risk factors.
The Stablecoin Stress Test API dynamically calculates risk scores for major stablecoins based on real-time (or simulated) data and customizable risk factor weights.
Use this API to monitor stablecoin stability, detect emerging risks, and fine-tune assessment models based on your own risk preferences.
Risk Factors
Each stablecoin risk score is calculated from the following factors:
Factor | Description |
---|---|
Peg Deviation | Magnitude and frequency of price drifting from $1.00 |
Volume Volatility | Variance in trading volume over time |
Liquidity Change | TVL shifts across key pools and chains |
Collateral Quality | Risk level of the assets backing the stablecoin |
Sentiment Analysis | Social/media signals about stability or risk events |
Each factor can be individually weighted, and total weighting must equal 100%.
Endpoints
GET /stress-test/scores
- Returns the current risk scores for all tracked stablecoins.
Example Response:
GET /stress-test/weights
- Returns the current weighting setup for each risk factor.
Example Response:
POST /stress-test/weights
- Allows updating the custom risk factor weights. (Admin access required.)
Payload Example:
Notes
Risk Score Ranges:
- 0–10 → Low Risk
- 10–20 → Moderate Risk
- 20+ → High Risk
Price Source:
- Prices are fetched from on-chain oracles and major exchanges.
Collateral Data:
- Updated periodically based on issuer disclosures and third-party audits.
Refresh Interval:
- Risk scores are recalculated hourly or on major data events.