From 8a8da3bc0e1ee3b615ad207fd0e4509df4dc406b Mon Sep 17 00:00:00 2001 From: Nawaz Haider Date: Fri, 2 Jan 2026 15:34:57 +0600 Subject: [PATCH] Update price validation logic to restrict up_ask_price and up_bid_price ranges --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 841cf78..8cf0412 100644 --- a/main.py +++ b/main.py @@ -74,7 +74,7 @@ async def main(): up_bid_price = market_data["best_bid_price"] up_ask_price = market_data["best_ask_price"] - if not (0.1 < up_ask_price < 0.9): + if not ((0.1 < up_ask_price < 0.3) or (0.7 < up_bid_price < 0.9)): continue down_ask_price = 1 - up_bid_price