Skip to content

Commit

Permalink
Merge pull request #6527 from rkc2000/fix/fixed_grid_rebalance
Browse files Browse the repository at this point in the history
Fix bug in rebalance order price
  • Loading branch information
rapcmia committed Aug 21, 2023
2 parents 7272a41 + 0547c44 commit e385d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fixed_grid.py
Expand Up @@ -189,7 +189,7 @@ def create_rebalance_proposal(self):

if self.rebalance_order_buy is False:
ref_price = self.connectors[self.exchange].get_price_by_type(self.trading_pair, self.price_source)
price = ref_price * (Decimal("1") + self.rebalance_order_spread) / Decimal("100")
price = ref_price * (Decimal("100") + self.rebalance_order_spread) / Decimal("100")
size = self.rebalance_order_amount
msg = (f"Placing sell order to rebalance; amount: {size}, price: {price}")
self.log_with_clock(logging.INFO, msg)
Expand Down

0 comments on commit e385d52

Please sign in to comment.