|
@@ -89,7 +89,8 @@ def order():
|
|
|
limit = None
|
|
|
if 'limit' in request.json:
|
|
|
limit = request.json['limit']
|
|
|
- stop_loss = 'stop_loss' in request.json and bool(request.json['stop_loss']) # TODO is this a string or a bool?
|
|
|
+ stop_loss = 'stop_loss' in request.json and bool(request.json['stop_loss'])
|
|
|
+ # TODO test if stop loss works
|
|
|
|
|
|
if sell:
|
|
|
if not model.user_owns_at_least(user_id, amount, ownership_id):
|