From 791d95514917cab01dfc461a6b8c088eccfd92b7 Mon Sep 17 00:00:00 2001 From: Nawaz Haider Date: Thu, 1 Jan 2026 22:20:39 +0600 Subject: [PATCH] Add validation for up_ask_price and correct price usage in trading logic --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index a3dcde9..7b9a481 100644 --- a/main.py +++ b/main.py @@ -70,7 +70,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): continue @@ -86,7 +86,7 @@ async def main(): up_token, down_token, "UP", - up_bid_price, + up_ask_price, size=5, ) trades += 1 @@ -100,7 +100,7 @@ async def main(): up_token, down_token, "DOWN", - down_bid_price, + down_ask_price, size=5, ) trades += 1