Base is always: https://api.curve.fi/
Last generation time of an endpoint can be found in the generatedTimeMs
property.
Retrieves all pools for any registry on any chain where Curve is deployed.
GET /api/getPools/<blockchainId>/<registryId>
Parameters:
blockchainId
: blockchain id where Curve pools are deployedregistryId
: registry id where Curve pools are deployed ('main'|'crypto'|'factory'|'factory-crypto'
)
View:
This is the list of all deployed registries on all chains, as of March 16, 2022
- https://api.curve.fi/api/getPools/ethereum/main
- https://api.curve.fi/api/getPools/ethereum/crypto
- https://api.curve.fi/api/getPools/ethereum/factory
- https://api.curve.fi/api/getPools/ethereum/factory-crypto
- https://api.curve.fi/api/getPools/polygon/main
- https://api.curve.fi/api/getPools/polygon/crypto
- https://api.curve.fi/api/getPools/polygon/factory
- https://api.curve.fi/api/getPools/fantom/main
- https://api.curve.fi/api/getPools/fantom/crypto
- https://api.curve.fi/api/getPools/fantom/factory
- https://api.curve.fi/api/getPools/arbitrum/main
- https://api.curve.fi/api/getPools/arbitrum/crypto
- https://api.curve.fi/api/getPools/arbitrum/factory
- https://api.curve.fi/api/getPools/avalanche/main
- https://api.curve.fi/api/getPools/avalanche/crypto
- https://api.curve.fi/api/getPools/avalanche/factory
- https://api.curve.fi/api/getPools/optimism/main
- https://api.curve.fi/api/getPools/optimism/crypto
- https://api.curve.fi/api/getPools/optimism/factory
- https://api.curve.fi/api/getPools/xdai/main
GET /api/getETHprice
Current Ethereum price used to calculate gas price
View: getETHprice
Parameters: NONE
Response :
"data": {
"price": 1826.11, //price of Ethereum in USD
"generatedTimeMs": 1615380294701 //when the response was generated
}
GET /api/getFactoryTVL
Returns factory TVL excluding LP tokens (which are already counted in the main Curve TVL.
View: getFactoryTVL
Parameters: NONE
Response :
"data": {
"factoryBalances": 139264023, //factory balances in USD
"generatedTimeMs": 1615381415356
}
GET /api/getRegistryAddress
Returns registry address which is subject to change.
View: getRegistryAddress
Parameters: NONE
Response :
"data": {
"registryAddress": "0x7D86446dDb609eD0F5f8684AcF30380a356b2B4c",
"generatedTimeMs": 1615381483925
}
GET /api/getTVL
Returns Curve TVL
View: getTVL
Parameters: NONE
Response :
"data": {
"tvl": 3961187920.275839, //total tvl excluding the factory
"usdTVL": 1761657547.966614, //stable tvl
"ethTVL": {
"native": 393332.35772124684, //number of eth
"usd": 730209722.1387632, //amount of eth in usd
"asset": "ethereum"
},
}
GET /api/getTVLFantom
Returns TVL on Fantom
View: getTVLFantom
Parameters: NONE
Response :
"data": {
"tvl": 11283973.12937601,
"generatedTimeMs": 1620458596596
}
GET /api/getTVLPolygon
Returns TVL on Polygon
View: getTVLPolygon
Parameters: NONE
Response :
"data": {
"tvl": 11283973.12937601,
"generatedTimeMs": 1620458596596
}
GET /api/getWeeklyFees
Returns weekly fees distributed to veCRV holders.
View: getWeeklyFees
Parameters: NONE
Response :
"data": {
"weeklyFeesTable": [
{
"date": "Thu Mar 04 2021",
"ts": 1614816000000, //timestamp of epoch start
"rawFees": 23928.77840856761 //fees for the week in USD
}
Note: deprecated on June 11, 2022; data is old and incomplete, please use other endpoints
GET /api/getApys
GET /api/getApys?address=0xADDRESS
Returns all types of APYs for all Curve pools (base APY from trading fees, CRV APY from CRV distribution, and any additional rewards the pool may have)
View: getApys
Parameters:
address
(optional): address to use to calculate CRV boosts and APYs; if no address is provided, the baseline boost value (1
) is used
Response :
"data": {
"apys": {
"saave": {
"baseApy": "2.21",
"crvApy": 4.430468225441863,
"crvBoost":1,
"additionalRewards": [
{ "name": "STKAAVE", "apy": 0.6132910288661984 }
],
"crvPrice": 1.38
},
…
}
}