cURL
curl --request POST \ --url https://yield.gluex.xyz/historical-apy \ --header 'Content-Type: application/json' \ --data '{ "pool_address": "0x1234567890123456789012345678901234567890", "lp_token_address": "0x1234567890123456789012345678901234567890", "chain": "ethereum", "input_token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" }'
{ "success": true, "historic_yield": { "apy": 5.25, "network_id": "ethereum", "pool_address": "0x1234567890123456789012345678901234567890", "input_token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" } }
Calculate the historical Annual Percentage Yield (APY) for a lending pool without considering liquidity impact.
Historical APY calculation response
The response is of type object.
object