Преглед на файлове

Fix naming in pseudocode

Eren Yilmaz преди 6 години
родител
ревизия
a393187507
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      assets/follower.py

+ 1 - 1
assets/follower.py

@@ -15,7 +15,7 @@ def create_order_on(tradable):
     duration = 43200
 
     some_orders = some_orders_on(tradable)  # returns us roughly math.log2(x) orders where x is the total # of orders
-    some_amounts = [tradable.amount for tradable in some_orders]
+    some_amounts = [order.amount for order in some_orders]
     amount = ceil(sum(some_amounts) / len(some_amounts))
 
     stop_loss = False