API
Developers > API
Authentication
For authentication, users need to use the Bearer authentication scheme by adding the following header to their request: Authorization -> Bearer <token>.
Network endpoints
Idle's smart contracts are deployed on multiple networks, hence users should use the appropriate endpoint to retrieve the information needed
Ethereum
https://api.idle.financePolygon zkEVM
https://api-zkevm.idle.financeOptimism
https://api-optimism.idle.finance
Endpoints
pools
GET api.idle.financereturn all the network pools for both Best Yield and Yield Tranches vaults.
Headers
<token>*
Authentication using Bearer token
tvls
GET api.idle.financereturn the total value locked (TVL) per underlying token.
Headers
<token>*
String
Authentication using Bearer token
rates
GET api.idle.financereturn historical daily data for Best Yield vaults in a given calendar range.
Path parameters
<address>*
String
Underlying token address
Query parameters
frequency
86400
Seconds in one day
Headers
<token>*
String
Authentication using Bearer token
The query string params are:
start: filter results from a specific timestampend: filter results to a specific timestampisRisk(true/false): if true returns only results for risk-adjusted strategy (deprecated), if false returns only results for Best Yield vaultsfrequency: seconds between two recordsorder(asc/desc): order results by timestamplimit: limit results
Represents the underlying token address:
DAI:
0x6b175474e89094c44da98b954eedeac495271d0fUSDC:
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48USDT:
0xdac17f958d2ee523a2206206994597c13d831ec7WETH:
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Request examples
Return historical daily data for the Best Yield DAI vault from 22 July 2020 to 24 July 2020 in descending order.
Return the latest data for Best Yield DAI vault.
Return the available Yield Tranches on Polygon zkEVM
Last updated
Was this helpful?
