update scalable_sync.py to include currency field in transaction records for improved accuracy
This commit is contained in:
@@ -243,6 +243,7 @@ def map_to_wealthfolio(tx: dict) -> list[WealthfolioActivity]:
|
||||
quantity=qty,
|
||||
unit_price=unit_price,
|
||||
amount=amount,
|
||||
currency=tx.get("currency", "EUR"),
|
||||
external_id=tx_id,
|
||||
account_id=WF_ACCOUNT_ID,
|
||||
))
|
||||
@@ -269,6 +270,7 @@ def map_to_wealthfolio(tx: dict) -> list[WealthfolioActivity]:
|
||||
symbol="$CASH",
|
||||
activity_type=wf_type,
|
||||
amount=amount,
|
||||
currency=tx.get("currency", "EUR"),
|
||||
external_id=tx_id,
|
||||
account_id=WF_ACCOUNT_ID,
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user