From ab6c21c8fe999ef600af6cf3a86ac65feb920925 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Fri, 22 Sep 2023 18:08:40 +0200 Subject: [PATCH] [StaggeredOrders] use warning to log missing funds --- .../staggered_orders_trading_mode/staggered_orders_trading.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Trading/Mode/staggered_orders_trading_mode/staggered_orders_trading.py b/Trading/Mode/staggered_orders_trading_mode/staggered_orders_trading.py index 53ad8e206..6ab08278b 100644 --- a/Trading/Mode/staggered_orders_trading_mode/staggered_orders_trading.py +++ b/Trading/Mode/staggered_orders_trading_mode/staggered_orders_trading.py @@ -295,7 +295,7 @@ async def create_order(self, order_data, current_price, symbol_market): if selling: available = trading_api.get_portfolio_currency(self.exchange_manager, currency).available if available < order_quantity: - self.logger.error( + self.logger.warning( f"Skipping {order_data.symbol} {order_data.side.value} " f"[{self.exchange_manager.exchange_name}] order creation of " f"{order_quantity} at {float(order_price)}: " @@ -303,7 +303,7 @@ async def create_order(self, order_data, current_price, symbol_market): ) return [] elif market_available < order_quantity * order_price: - self.logger.error( + self.logger.warning( f"Skipping {order_data.symbol} {order_data.side.value} " f"[{self.exchange_manager.exchange_name}] order creation of " f"{order_quantity} at {float(order_price)}: "