From 7167640e43456253cde1a2a2be1302304f09b773 Mon Sep 17 00:00:00 2001 From: Sirttas Date: Mon, 2 Oct 2023 21:48:36 +0200 Subject: [PATCH] cleanup --- src/market/scan/HistoryQuartils.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/market/scan/HistoryQuartils.ts b/src/market/scan/HistoryQuartils.ts index c846a32..d7f6872 100644 --- a/src/market/scan/HistoryQuartils.ts +++ b/src/market/scan/HistoryQuartils.ts @@ -2,7 +2,6 @@ import { MarketOrderHistory } from "@/market"; export type HistoryQuartils = { totalVolume: number, - totalOrders: number, q1: number, median: number, q3: number, @@ -11,7 +10,6 @@ export type HistoryQuartils = { export const getHistoryQuartils = (history: MarketOrderHistory[], days?: number): HistoryQuartils => { const now = Date.now(); - let totalOrders = 0; const volumes = history .flatMap(h => { const volume = h.volume; @@ -22,7 +20,6 @@ export const getHistoryQuartils = (history: MarketOrderHistory[], days?: number) const e = estimateVolume(h); - totalOrders += h.order_count; return [[h.highest, e], [h.lowest, volume - e]]; }) .filter(h => h[1] > 0) @@ -48,7 +45,6 @@ export const getHistoryQuartils = (history: MarketOrderHistory[], days?: number) } return { totalVolume, - totalOrders, q1: quartils[0], median: quartils[1], q3: quartils[2],