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;