get_xsushi_apy

get
Get xSushi APY & APR

https://api2.sushipro.io/?action=get_xsushi_apy
Request
Response
Request
Query Parameters
action
required
string
get_xsushi_apy
from
required
integer
From when - unix timestamp
to
required
integer
To when - unix timestamp
Response
200: OK
Example: https://api2.sushipro.io/?action=get_xsushi_apy&from=1625097600&to=1625473410
[
{
"action": "get_xsushi_apy",
"chain": "Ethereum",
"number_of_results": 5
},
[
{
"date": 1625097600,
"apy": 5.9063024499832,
"apr": 5.7389089249619
},
{
"date": 1625184000,
"apy": 4.7109244410688,
"apr": 4.603616980292
},
{
"date": 1625270400,
"apy": 3.8800639560221,
"apr": 3.8068801591923
},
{
"date": 1625356800,
"apy": 4.0589029881595,
"apr": 3.9789096281111
},
{
"date": 1625443200,
"apy": 1.7893833180518,
"apr": 1.7736053983818
}
]
]

You must wait the end of the current day to get the last daily APY & APR