Add validation for up_ask_price to ensure it is within acceptable range

This commit is contained in:
Nawaz Haider
2026-01-01 22:14:30 +06:00
parent b4bd479b2f
commit 3ce5120704
+3
View File
@@ -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