lib/bitex_bot/models/buy_closing_flow.rb
# Scale price subtracting price variation.
# Scale quantity taken new price.
#
# @return [Array[BigDecimal, BigDecimal]]
Scale price subtracting price variation.
Scale quantity taken new price.
Scale price subtracting price variation . Scale quantity taken new price .
def next_quantity_and_price
      next_price = desired_price - price_variation
      next_quantity = quantity - close_positions.sum(:quantity)
      [next_quantity, next_price]
    end
def next_quantity_and_price next_price = desired_price - price_variation next_quantity = quantity - close_positions . sum ( :quantity ) [ next_quantity , next_price ] end
Scale price subtracting price variation.
Scale price subtracting price variation .
None
Array[BigDecimal, BigDecimal