Browse Source

Fix naming in pseudocode

Eren Yilmaz 6 năm trước cách đây
mục cha
commit
a393187507
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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