1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 05:25:24 +02:00

Plaid portfolio sync algorithm and calculation improvements (#1526)

* Start tests rework

* Cash balance on schema

* Add reverse syncer

* Reverse balance sync with holdings

* Reverse holdings sync

* Reverse holdings sync should work with only trade entries

* Consolidate brokerage cash

* Add forward sync option

* Update new balance info after syncs

* Intraday balance calculator and sync fixes

* Show only balance for trade entries

* Tests passing

* Update Gemfile.lock

* Cleanup, performance improvements

* Remove account reloads for reliable sync outputs

* Simplify valuation view logic

* Special handling for Plaid cash holding
This commit is contained in:
Zach Gollwitzer 2024-12-10 17:41:20 -05:00 committed by GitHub
parent a59ca5b7c6
commit 49c353e10c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
72 changed files with 1152 additions and 1046 deletions

View file

@ -13,7 +13,7 @@ et:
- E
- T
- K
- N
- "N"
- R
- L
abbr_month_names:

View file

@ -1,8 +0,0 @@
---
en:
account:
cashes:
index:
cash: Cash
name: Name
value: Total Balance

View file

@ -2,6 +2,8 @@
en:
account:
holdings:
cash:
brokerage_cash: Brokerage cash
destroy:
success: Holding deleted
holding:

View file

@ -2,6 +2,8 @@
en:
account:
valuations:
valuation:
balance_update: Balance update
form:
amount: Amount
submit: Add balance update

View file

@ -6,6 +6,8 @@ en:
troubleshoot: Troubleshoot
account_list:
new_account: New %{type}
chart:
no_change: no change
create:
success: "%{type} account created"
destroy:
@ -31,8 +33,6 @@ en:
manual_entry: Enter account balance
title: How would you like to add it?
title: What would you like to add?
chart:
no_change: no change
show:
chart:
balance: Balance

View file

@ -1,8 +1,6 @@
---
en:
investments:
chart:
value: Total value
edit:
edit: Edit %{account}
form:
@ -15,5 +13,6 @@ en:
value_tooltip:
cash: Cash
holdings: Holdings
total_value_tooltip: The total value is the sum of cash balance and your holdings
value, minus margin loans.
total: Portfolio balance
total_value_tooltip: The total portfolio balance is the sum of brokerage cash
(available for trading) and the current market value of your holdings.

View file

@ -39,6 +39,7 @@ en:
theme_subtitle: Choose a preferred theme for the app (coming soon...)
theme_system: System
theme_title: Theme
timezone: Timezone
profiles:
show:
confirm_delete:

View file

@ -1,8 +1,6 @@
---
en:
shared:
syncing_notice:
syncing: Syncing accounts data...
confirm_modal:
accept: Confirm
body_html: "<p>You will not be able to undo this decision</p>"
@ -15,6 +13,8 @@ en:
no_account_subtitle: Since no accounts have been added, there's no data to display.
Add your first accounts to start viewing dashboard data.
no_account_title: No accounts yet
syncing_notice:
syncing: Syncing accounts data...
upgrade_notification:
app_upgraded: The app has been upgraded to %{version}.
dismiss: Dismiss