Skip to content

Commit

Permalink
Fix precision due to previous refactoring to Account class
Browse files Browse the repository at this point in the history
  • Loading branch information
carkod committed Sep 22, 2024
1 parent d9c32b6 commit d1d14cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/bots/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def deactivate(self, findId: str) -> dict:

if bot.strategy == Strategy.margin_short:
order_res = deal_controller.margin_liquidation(
bot.pair, self.qty_precision(bot.pair)
bot.pair, deal_controller.qty_precision
)
panic_close_order = MarginOrderSchema(
timestamp=order_res["transactTime"],
Expand All @@ -256,7 +256,7 @@ def deactivate(self, findId: str) -> dict:

bot.orders.append(panic_close_order)
else:
res = deal_controller.spot_liquidation(bot.pair, self.qty_precision(bot.pair))
res = deal_controller.spot_liquidation(bot.pair, deal_controller.qty_precision)

panic_close_order = BinanceOrderModel(
timestamp=res["transactTime"],
Expand Down

0 comments on commit d1d14cc

Please sign in to comment.