Skip to content

Commit a10ac3a

Browse files
authored
Update indodax_patch.py
1 parent 2b593ce commit a10ac3a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

user_data/strategies/utils/indodax_patch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def patched_create_order(self, *args, **kwargs):
1818
side = kwargs.get("side")
1919
amount = kwargs.get("amount")
2020

21-
logger.info(f"⏳ [Indodax Patch] Creating order for: {pair} (type={ordertype}, side={side})")
21+
#logger.info(f"⏳ [Indodax Patch] Creating order for: {pair} (type={ordertype}, side={side})")
2222

2323
if side == 'sell' and (ordertype is None or ordertype == 'market'):
2424
try:
@@ -33,7 +33,7 @@ def patched_create_order(self, *args, **kwargs):
3333
logger.warning(f"❌ [Indodax Patch] Sell amount too small: {amount} × {simulated_price} = {total} IDR")
3434
raise ValueError("Simulated sell order below 1000 IDR")
3535

36-
logger.warning(f"⚠️ [Indodax Patch] Simulating market sell with limit price {simulated_price} IDR")
36+
#logger.warning(f"⚠️ [Indodax Patch] Simulating market sell with limit price {simulated_price} IDR")
3737

3838
kwargs["ordertype"] = "limit"
3939
kwargs["rate"] = simulated_price
@@ -50,7 +50,7 @@ def patched_create_order(self, *args, **kwargs):
5050
try:
5151
refreshed_order = self.fetch_order(order['id'], pair)
5252
order.update(refreshed_order)
53-
logger.info(f"✅ [Indodax Patch] Order refreshed: {order['id']}")
53+
#logger.info(f"✅ [Indodax Patch] Order refreshed: {order['id']}")
5454
break
5555
except Exception as e:
5656
logger.warning(f"⛔ [Indodax Patch] Fetch attempt {attempt+1} failed: {e}")

0 commit comments

Comments
 (0)