bvanelli / actualpy

Python API implementation for Actual server - reference https://actualbudget.org/
20 stars 4 forks source link

Handle starting balances for bank sync #29

Open bvanelli opened 2 months ago

bvanelli commented 2 months ago

Following #25 , if syncing with a bank from scratch, the final amount might not match the balances, so updating the starting balances might be required.

sondregronas commented 1 month ago

Adding this here since it's such a minor thing:

I noticed that the Optional reference_date is actually required:

https://github.com/bvanelli/actualpy/blob/65d9ea115b9bcea10867e40f7124261c6a0ed3a2/actual/api/bank_sync.py#L63

Setting default value to None works (GoCardless bank syncs was complaining about this missing)

reference_date: Optional[str] = Field(None, alias="referenceDate", description="The date of the balance")