From ce97f7eec03a44dd653512656546ade2eb8fa01b Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 17 May 2022 23:20:35 -0500 Subject: Show auctions sold frequency --- src/routes/auctionprices.svelte | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/routes') diff --git a/src/routes/auctionprices.svelte b/src/routes/auctionprices.svelte index 68ce00e..e778330 100644 --- a/src/routes/auctionprices.svelte +++ b/src/routes/auctionprices.svelte @@ -97,6 +97,19 @@

{/if} + {#if item.auctions.length >= 2} +

+ Frequency: + + {parseFloat( + ( + (24 * 60 * 60) / + ((Date.now() / 1000 - item.auctions[0].ts) / item.auctions.length) + ).toPrecision(2) + ).toLocaleString()}/day + +

+ {/if}
-- cgit