From e3eb43a14bbfeb028c26fb895473efe72d9e3d84 Mon Sep 17 00:00:00 2001 From: Justin <21313833+wasabipesto@users.noreply.github.com> Date: Sat, 4 Jun 2022 16:33:07 -0400 Subject: [PATCH] add volume to api response (#413) --- web/pages/api/v0/_types.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/pages/api/v0/_types.ts b/web/pages/api/v0/_types.ts index 9f043c80..78fe3708 100644 --- a/web/pages/api/v0/_types.ts +++ b/web/pages/api/v0/_types.ts @@ -28,6 +28,7 @@ export type LiteMarket = { p?: number totalLiquidity?: number + volume: number volume7Days: number volume24Hours: number @@ -60,6 +61,7 @@ export function toLiteMarket(contract: Contract): LiteMarket { pool, outcomeType, mechanism, + volume, volume7Days, volume24Hours, isResolved, @@ -92,6 +94,7 @@ export function toLiteMarket(contract: Contract): LiteMarket { totalLiquidity, outcomeType, mechanism, + volume, volume7Days, volume24Hours, isResolved,