Add validation for up_ask_price and correct price usage in trading logic

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