|
@@ -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
|