Skip to content

Commit 0671c2a

Browse files
authored
Merge pull request #9 from DefiLlama/fix-pools-schema
fix: update free api /pools response schema to match actual API
2 parents d8374f7 + 92aacb4 commit 0671c2a

1 file changed

Lines changed: 89 additions & 29 deletions

File tree

defillama-openapi-free.json

Lines changed: 89 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,76 +1386,136 @@
13861386
"items": {
13871387
"type": "object",
13881388
"properties": {
1389-
"pool": {
1390-
"type": "string",
1391-
"example": "747c1d2a-c668-4682-b9f9-296708a3dd90"
1392-
},
13931389
"chain": {
13941390
"type": "string",
13951391
"example": "Ethereum"
13961392
},
13971393
"project": {
13981394
"type": "string",
1399-
"example": "Aave"
1395+
"example": "lido"
14001396
},
14011397
"symbol": {
14021398
"type": "string",
1403-
"example": "USDC"
1399+
"example": "STETH"
14041400
},
14051401
"tvlUsd": {
14061402
"type": "number",
1407-
"example": 1500000000
1408-
},
1409-
"apy": {
1410-
"type": "number",
1411-
"example": 5.2
1403+
"example": 32493036117
14121404
},
14131405
"apyBase": {
14141406
"type": "number",
1415-
"example": 3.1
1407+
"example": 2.84
14161408
},
14171409
"apyReward": {
1410+
"type": ["number", "null"],
1411+
"example": null
1412+
},
1413+
"apy": {
14181414
"type": "number",
1419-
"example": 2.1
1415+
"example": 2.84
14201416
},
14211417
"rewardTokens": {
1422-
"type": "array",
1418+
"type": ["array", "null"],
14231419
"items": {
14241420
"type": "string"
14251421
},
1426-
"example": ["COMP", "AAVE"]
1422+
"example": null
14271423
},
1428-
"underlyingTokens": {
1429-
"type": "array",
1430-
"items": {
1431-
"type": "string"
1432-
},
1433-
"example": ["USDC"]
1424+
"pool": {
1425+
"type": "string",
1426+
"example": "747c1d2a-c668-4682-b9f9-296708a3dd90"
14341427
},
1435-
"poolMeta": {
1428+
"apyPct1D": {
1429+
"type": "number",
1430+
"example": -0.04
1431+
},
1432+
"apyPct7D": {
1433+
"type": "number",
1434+
"example": -0.056
1435+
},
1436+
"apyPct30D": {
1437+
"type": ["number", "null"],
1438+
"example": null
1439+
},
1440+
"stablecoin": {
1441+
"type": "boolean",
1442+
"example": false
1443+
},
1444+
"ilRisk": {
14361445
"type": "string",
1437-
"example": "Lending pool"
1446+
"example": "no"
14381447
},
1439-
"url": {
1448+
"exposure": {
14401449
"type": "string",
1441-
"example": "https://app.aave.com/reserve-overview/USDC"
1450+
"example": "single"
14421451
},
14431452
"predictions": {
14441453
"type": "object",
14451454
"properties": {
14461455
"predictedClass": {
14471456
"type": "string",
1448-
"example": "Stable"
1457+
"example": "Stable/Up"
14491458
},
14501459
"predictedProbability": {
14511460
"type": "number",
1452-
"example": 0.95
1461+
"example": 74
14531462
},
14541463
"binnedConfidence": {
14551464
"type": "number",
1456-
"example": 1
1465+
"example": 2
14571466
}
14581467
}
1468+
},
1469+
"poolMeta": {
1470+
"type": ["string", "null"],
1471+
"example": null
1472+
},
1473+
"mu": {
1474+
"type": "number",
1475+
"example": 3.7747
1476+
},
1477+
"sigma": {
1478+
"type": "number",
1479+
"example": 0.05236
1480+
},
1481+
"count": {
1482+
"type": "number",
1483+
"example": 1141
1484+
},
1485+
"outlier": {
1486+
"type": "boolean",
1487+
"example": false
1488+
},
1489+
"underlyingTokens": {
1490+
"type": "array",
1491+
"items": {
1492+
"type": "string"
1493+
},
1494+
"example": ["0x0000000000000000000000000000000000000000"]
1495+
},
1496+
"il7d": {
1497+
"type": ["number", "null"],
1498+
"example": null
1499+
},
1500+
"apyBase7d": {
1501+
"type": ["number", "null"],
1502+
"example": null
1503+
},
1504+
"apyMean30d": {
1505+
"type": "number",
1506+
"example": 2.73539
1507+
},
1508+
"volumeUsd1d": {
1509+
"type": ["number", "null"],
1510+
"example": null
1511+
},
1512+
"volumeUsd7d": {
1513+
"type": ["number", "null"],
1514+
"example": null
1515+
},
1516+
"apyBaseInception": {
1517+
"type": ["number", "null"],
1518+
"example": null
14591519
}
14601520
}
14611521
}
@@ -2659,4 +2719,4 @@
26592719
}
26602720
}
26612721
}
2662-
}
2722+
}

0 commit comments

Comments
 (0)