From ba672a16336a7d4b9d8491c00d4181c9a4fdf3db Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Fri, 17 Apr 2026 20:37:38 +0000 Subject: [PATCH] sinks: add required isDraft/isValid fields on ActivityImport --- broker_sync/sinks/wealthfolio.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/broker_sync/sinks/wealthfolio.py b/broker_sync/sinks/wealthfolio.py index e6dce17..807263f 100644 --- a/broker_sync/sinks/wealthfolio.py +++ b/broker_sync/sinks/wealthfolio.py @@ -155,6 +155,9 @@ class WealthfolioSink: "activityType": str(a.activity_type), "currency": a.currency, "accountId": a.account_id, + # Required booleans on ActivityImport (no defaults in Rust struct). + "isDraft": False, + "isValid": True, } if a.quantity is not None: row["quantity"] = format(a.quantity, "f")