Browse Source

Fix naming in pseudocode

Eren Yilmaz 6 years ago
parent
commit
a393187507
1 changed files with 1 additions and 1 deletions
  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