Skip to content

Commit

Permalink
self fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yasinkuyu committed Jan 13, 2018
1 parent abe0981 commit cdbf691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Trading.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def sell(self, symbol, quantity, orderId, sell_price, last_price):
'''
if self.stop_loss > 0:

if stop(symbol, quantity, sell_id):
if self.stop(symbol, quantity, sell_id):
break
else:
continue
Expand All @@ -126,7 +126,7 @@ def stop(symbol, quantity, sell_id):

stop_order = Orders.get_order(symbol, sell_id)

stopprice = calc(float(stop_order['price']))
stopprice = self.calc(float(stop_order['price']))

lossprice = stopprice - (stopprice * self.stop_loss / 100)

Expand Down

0 comments on commit cdbf691

Please sign in to comment.