Update price validation logic to restrict up_ask_price and up_bid_price ranges

This commit is contained in:
Nawaz Haider
2026-01-02 15:34:57 +06:00
parent a2e6ba939f
commit 8a8da3bc0e
+1 -1
View File
@@ -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