Refactor main trading logic to simplify conditions for placing UP and DOWN anchor orders

This commit is contained in:
Nawaz Haider
2026-01-02 16:38:30 +06:00
parent e822eaff22
commit af2c5e1a88
+2 -2
View File
@@ -83,7 +83,7 @@ async def main():
if trades < MAX_TRADES:
trading_side = book.last_signal
if (trading_side == SIGNALES.UP) and (up_ask_price < down_ask_price):
if trading_side == SIGNALES.UP:
await place_anchor_and_hedge(
up_token,
down_token,
@@ -96,7 +96,7 @@ async def main():
f"Placed UP anchor and hedge orders. Total trades: {trades}"
)
elif (trading_side == SIGNALES.DOWN) and (down_ask_price < up_ask_price):
elif trading_side == SIGNALES.DOWN:
await place_anchor_and_hedge(
up_token,
down_token,