feat: add crypto account type to demo data #555
Reference in New Issue
Block a user
Delete Branch "feat/add-crypto"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This adds a Crypto asset account type to the demo data, to more accurately resemble the main screenshot on the repo
Was this change a result of the migration? Or a manual change?
@@ -222,0 +231,4 @@{ date: 200.days.ago.to_date, value: 0.06, currency: "BTC" },{ date: 100.days.ago.to_date, value: 0.08, currency: "BTC" },{ date: 20.days.ago.to_date, value: 0.1, currency: "BTC" }]For a sample account like Bitcoin, we'll want to make sure and specify the currency,
BTCand adjust these values to be smaller so that when it is converted to the family's currency (likely USD), it will represent a reasonable proportion of the portfolio. I'd say somewhere around0.1is probably appropriate for a demo account (~$6,500 worth of BTC)it was a result of the migration, i'll revert it
@@ -0,0 +8,4 @@# column: value## two: {}# column: valueThese are the cause of the CI test failure. Since an
Accountablemust always be associated with anAccount, these create orphaned records that break the account rollups.You can comment all of this out to fix.
@zachgoll i reverted the schema change, commented out the data for the test to run and changed the currency to BTC
however, the dashboard shows the account in USD, thought it had to do with multi-currency, so registered with synth, but there's no BTC "currency" there
i'll dig a bit more ... the idea is to show each account in its base currency or convert everything to USD ?
@jbrodriguez yep, that's expected right now. I've got a bunch of local changes for #543 that will be pushed soon to fix that and make all of this work correctly though!
When that goes in, each account will display its own currency (in this case, number of bitcoins) and then in the sidebar and dashboard, the values will be exchanged (via Synth) and "rolled up" into the
Family's preferred currency.