From 6cc5458e89cc0b89ac542b2f4b117322583e7298 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Tue, 10 Dec 2024 18:48:15 +0100 Subject: [PATCH] bugfixing websocket --- fastify/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastify/app.js b/fastify/app.js index 01b953c..0861283 100755 --- a/fastify/app.js +++ b/fastify/app.js @@ -292,7 +292,7 @@ const sendData = async () => { parseFloat(jsonData?.lp) ) / 3; - const finalPrice = Math.abs(avgPrice - jsonData?.bp) / jsonData?.bp > 0.05 + const finalPrice = Math.abs(avgPrice - jsonData?.bp) / jsonData?.bp > 0.01 ? jsonData.bp : avgPrice;