Skip to content

Commit

Permalink
fix pylinter findings 2
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterValachovic committed Nov 27, 2023
1 parent 4223c12 commit eeb01a0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion XTBApi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,6 @@ def get_prices_operate(self, mode, symbol):
conversion_mode_2 = {MODES.BUY.value: 'low', MODES.SELL.value: 'high'}
price_2 = symbol_info[conversion_mode_2[mode.value]]
factor_price_2 = 0.008
#if mode == MODES.BUY or mode == MODES.BUY_LIMIT:
if mode in (MODES.BUY,MODES.BUY_LIMIT):
price_2 = round(price_2 * (1 - factor_price_2), 2)
elif mode in(MODES.SELL,MODES.SELL_LIMIT):
Expand Down

0 comments on commit eeb01a0

Please sign in to comment.