Skip to main content

Earn API

API documentation to fetch the following APRs:

  • supplyApr: The total APR, including APRs from interest and rewards.
  • Base APR: The compounding interest that depositors earn for supplying tokens. Base APR is net after deducting the protocol fee.
  • Reward APR: The additional APR generated from claimable rewards. There can be multiple reward tokens to be claimed.

App Request

ParameterDescription
Request URLhttps://app.silo.finance/api/earn
MethodPOST

APR Request

{
"search": null,
"chainKeys": [],
"type": "vault",
"sort": null,
"limit": 100,
"offset": 0
}

Within the response, they can grab the details:

{
"supplyBaseApr": "31754463786147420",
"programs": [
{
"rewardTokenSymbol": "xSILO",
"apr": "1541455470717024"
},
{
"rewardTokenSymbol": "beS",
"apr": "45406667059329"
}
]
}