bugfixing websocket

This commit is contained in:
MuslemRahimi 2024-12-10 18:48:15 +01:00
parent 7573c57726
commit 6cc5458e89

View File

@ -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;