Skip to content

Commit

Permalink
added VUAA case for symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
Agustin Alexander committed Jun 16, 2023
1 parent 5d5a872 commit 525b595
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SyncIBKR.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def sync_ibkr(self):
symbol = trade.symbol
if ".USD-PAXOS" in trade.symbol:
symbol = trade.symbol.replace(".USD-PAXOS", "") + "USD"

elif "VUAA" in trade.symbol:
symbol = trade.symbol + ".L"
if trade.buySell == BuySell.BUY:
buysell = "BUY"
elif trade.buySell == BuySell.SELL:
Expand All @@ -96,6 +97,7 @@ def sync_ibkr(self):

activities.append({
"accountId": account_id,
"comment": None,
"currency": trade.currency,
"dataSource": "YAHOO",
"date": iso_format,
Expand Down

0 comments on commit 525b595

Please sign in to comment.