add deposit and borrow index to api response

This commit is contained in:
Tyler Shipe 2021-09-22 15:32:54 -04:00
parent 437b15d4a4
commit 083cf4961c
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ app.get("/spot", async (req, res) => {
"name",
avg("totalDeposits")::float AS "totalDeposits",
avg("totalBorrows")::float AS "totalBorrows",
avg("depositIndex")::float AS "depositIndex",
avg("borrowIndex")::float AS "borrowIndex",
avg("utilization")::float AS "utilization",
avg("depositRate")::float AS "depositRate",
avg("borrowRate")::float AS "borrowRate",