From 3ce512070424c9a7114487eb13ebc2396e599697 Mon Sep 17 00:00:00 2001 From: Nawaz Haider Date: Thu, 1 Jan 2026 22:14:30 +0600 Subject: [PATCH] Add validation for up_ask_price to ensure it is within acceptable range --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 34870f6..a3dcde9 100644 --- a/main.py +++ b/main.py @@ -70,6 +70,9 @@ 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): + continue down_ask_price = 1 - up_bid_price down_bid_price = 1 - up_ask_price