APY API
APY API
Endpoint: GET /asset-total-apy
Description: Retrieve data from the asset-total-apy table.
Base URL:
https://uoagtjstsdrjypxlkuzr.supabase.co/rest/v1
Reading Rows:
Read All Rows
Retrieve all rows:
curl 'https://uoagtjstsdrjypxlkuzr.supabase.co/rest/v1/asset-total-apy?select=*' \ -H "apikey: SUPABASE_CLIENT_ANON_KEY" \ -H "Authorization: Bearer SUPABASE_CLIENT_ANON_KEY"
Example Response
If the request is successful, you will receive data in a format similar to the following:
[
{
"id": 1,
"created_at": "2024-06-18T11:00:05.509771+00:00",
"chain_id": "8453",
"underlying_address": "0x940181a94a35a4569e4529a3cdfb74e38fd98631",
"ctoken_address": "0x014e08f05ac11bb532be62774a4c548368f59779",
"totalSupplyApy": "5.301877254953391",
"supplyApy": "5.301877254953391",
"borrowApy": "12.214642575076851"
},
]Query a Specific Asset
To query for a specific asset, use the following template. You can filter by chain using ?chain_id=eq.10. Replace eq. with the appropriate filter condition as needed:
For example, to retrieve data for chain ID 10, use ?chain_id=eq.10. This will return results such as:
Read Specific Columns
Retrieve only certain columns:
Available Columns
The following columns are available in the asset-total-apy table:
created_atchain_idunderlying_addressctoken_addresstotalSupplyApysupplyApyborrowApy
With Pagination
Retrieve data with pagination:
Check the folder below to find the SUPABASE_CLIENT_ANON_KEY
Please note: If the provided key does not work, please contact the Ionic team to request a new key.
Last updated