Initialise inverted variable in currency conversion

Mark Veidemanis 2 years ago
parent 67404fc161
commit 9fc5d2f4d7
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -52,6 +52,8 @@ def to_currency(direction, account, amount, from_currency, to_currency):
:param to_currency: Currency to convert to
:return: Converted amount
"""
inverted = False
# This is needed because OANDA has different values for bid and ask
if direction == "buy":
price_index = "bids"

Loading…
Cancel
Save