Skip to content

Commit

Permalink
[Order] handle MinimumOrderCostNotReachedError
Browse files Browse the repository at this point in the history
  • Loading branch information
techfreaque committed Jan 15, 2023
1 parent 6402f32 commit 687105b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ async def _create_order(context, symbol, order_quantity, order_price, tag, order
error_message = "missing minimal funds"
except asyncio.TimeoutError as e:
error_message = f"{e} and is necessary to compute the order details"
except trading_errors.MinimumOrderCostNotReachedError as e:
error_message = f"failed to create order : {e}."
context.logger.exception(e, True, f"Failed to create order : {e}.")
except Exception as e:
error_message = f"failed to create order : {e}."
context.logger.exception(e, True, f"Failed to create order : {e}.")
Expand Down

0 comments on commit 687105b

Please sign in to comment.