add base oracle price to spot api

This commit is contained in:
Tyler Shipe 2021-08-23 15:57:17 -04:00
parent 800b28e357
commit 56ba25d8fd
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ app.get("/spot", async (req, res) => {
avg("utilization")::float AS "utilization",
avg("depositRate")::float AS "depositRate",
avg("borrowRate")::float AS "borrowRate",
avg("baseOraclePrice)::float AS "baseOraclePrice",
min("time") AS "time"
FROM spot_market_stats
WHERE time > current_date - interval '90' day AND "mangoGroup" = :mangoGroup