Reduce retry attempts for hedge order placement in place_anchor_and_hedge function

This commit is contained in:
Nawaz Haider
2026-01-03 17:20:40 +06:00
parent 556dc430e8
commit b5d7ea9332
+1 -1
View File
@@ -38,7 +38,7 @@ async def place_anchor_and_hedge(
anchor_order_id = await place_limit_order(anchor_token_id, price, size, expire=True)
if PLACE_OPPOSITE_ORDER and anchor_order_id:
for _ in range(70 * 100):
for _ in range(65 * 10):
if in_memory_db_contains_item(anchor_order_id):
hedge_order_id = await place_limit_order(
hedge_token_id, 1 - price - PROFIT_MARGIN, size