Kixago API Documentation
Real-time DeFi credit scoring and risk analysis API
Get complete portfolio analysis across all major DeFi protocols and chains in a single API call.
What This API Returns​
| Data | Response Time | Coverage |
|---|---|---|
| DeFi Credit Score (300-850) | 1-4 seconds | Aave V2/V3, Compound V2/V3, MakerDAO |
| Complete lending positions | Cached: <100ms | Ethereum, Base, Arbitrum, Polygon |
| Liquidation scenarios | Token-level collateral/debt breakdown | |
| Risk factors + recommendations | Real-time on-chain data (30s cache) |
Quick Example​
Request​
curl -H "X-API-Key: your_api_key" \
"[https://api.kixago.com/v1/risk-profile/0xf0bb20865277aBd641a307eCe5Ee04E79073416C](https://api.kixago.com/v1/risk-profile/0xf0bb20865277aBd641a307eCe5Ee04E79073416C)"
Response (excerpt)​
{
"wallet_address": "0xf0bb20865277aBd641a307eCe5Ee04E79073416C",
"total_collateral_usd": 2175957718.47,
"total_borrowed_usd": 1905081695.88,
"global_health_factor": 1.067,
"global_ltv": 89.02,
"positions_at_risk_count": 2,
"defi_score": {
"defi_score": 467,
"risk_level": "High Risk",
"risk_category": "HIGH_RISK",
"risk_factors": [
{
"severity": "critical",
"factor": "Imminent Liquidation Risk",
"description": "Health factor 1.067 means position will be liquidated if collateral value drops 6.7%"
}
],
"recommendations": {
"immediate": [
"🚨 URGENT: Deposit $387M more collateral OR repay debt to raise health factor above 1.5"
]
},
"liquidation_simulation": {
"scenarios": [
{
"event": "Collateral drops 10%",
"new_health_factor": 0.961,
"status": "LIQUIDATED",
"estimated_loss": "~$218M in liquidation penalties"
}
]
}
},
"lending_positions": [
{
"protocol": "Aave",
"protocol_version": "V3",
"chain": "Ethereum",
"collateral_usd": 2112215608.12,
"borrowed_usd": 1884925796.26,
"health_factor": 1.065,
"ltv_current": 89.24,
"is_at_risk": true,
"collateral_details": [
{
"token": "weETH",
"amount": 496800.01,
"usd_value": 2112215608.12,
"token_address": "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee"
}
],
"borrowed_details": [
{
"token": "WETH",
"amount": 478632.98,
"usd_value": 1884925796.26,
"token_address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
]
}
]
}
Core Endpoints​
| Endpoint | Method | Auth | Purpose |
|---|---|---|---|
/v1/risk-profile/{wallet} | GET | Required | Complete portfolio + credit score |
/health | GET | None | API status check |
View full endpoint documentation →
DeFi Credit Score (300-850)​
FICO-style scoring for DeFi lending positions
Score Ranges​
| Score | Risk Level | Description |
|---|---|---|
| 750-850 | Very Low Risk | Healthy positions, low leverage |
| 650-749 | Low Risk | Conservative borrowing |
| 550-649 | Medium Risk | Moderate leverage |
| 450-549 | High Risk | Approaching danger zone |
| 300-449 | Very High Risk | Imminent liquidation risk |
Scoring Formula​
The score is calculated from 5 weighted components:
| Component | Weight | Measures |
|---|---|---|
| Health Factor | 40% | Proximity to liquidation |
| Leverage (LTV) | 30% | Debt-to-collateral ratio |
| Diversification | 15% | Concentration risk (assets + protocols) |
| Volatility Exposure | 10% | Collateral asset risk |
| Protocol Risk | 5% | Smart contract maturity |
Example calculation for the whale wallet above:​
| Component | Calculation | Weighted Score |
|---|---|---|
| Health Factor Score | ||
| Leverage Score | ||
| Diversification Score | ||
| Volatility Score | ||
| Protocol Risk Score | ||
| Total Internal Score |