Method Name
public/get_interest_rate_history
public/get_interest_rate_history
Get latest USDC interest rate history
Parameters
from_timestamp_sec
integer
required
From timestamp in seconds |
to_timestamp_sec
integer
required
To timestamp in seconds |
page
integer
Page number of results to return (default 1, returns last if above num_pages ) |
page_size
integer
Number of results per page (default 100, max 1000) |
Response
id
string or integer
required
|
result
object
required
|
result.interest_rates
array of objects
required
List of interest rates, recent first |
result.interest_rates[].block
integer
required
Derive Chain block number |
result.interest_rates[].borrow_apy
string
required
Borrow APY |
result.interest_rates[].supply_apy
string
required
Supply APY |
result.interest_rates[].timestamp_sec
integer
required
Timestamp in seconds |
result.interest_rates[].total_borrow
string
required
Total USDC borrowed |
result.interest_rates[].total_supply
string
required
Total USDC supplied |
result.pagination
object
required
Pagination info |
result.pagination.count
integer
required
Total number of items, across all pages |
result.pagination.num_pages
integer
required
Number of pages |
Example
{request_example_shell}
{request_example_javascript}
{request_example_python}
The above command returns JSON structured like this:
{response_example_json}