Skip to content

Commit

Permalink
revert fees calculation (whittlem#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariokakoulli authored May 12, 2021
1 parent f6f0331 commit 88a5b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycryptobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
state.last_buy_size = float(df[df.action == 'buy']['size'])
state.last_buy_filled = float(df[df.action == 'buy']['filled'])
state.last_buy_price = float(df[df.action == 'buy']['price'])
state.last_buy_fee = float(df[df.action == 'buy']['fees'])
state.last_buy_fee = round(float(df[df.action == 'buy']['filled']) * float(df[df.action == 'buy']['price']) * app.getTakerFee(), 2)
else:
state.last_action = 'SELL'
state.last_buy_price = 0.0
Expand Down

0 comments on commit 88a5b16

Please sign in to comment.