Open criccomini opened 2 years ago
I have some concept of Currency
asset types now. I don't think they totally work yet, though. Specifically, I think the portfolio.Account deposit
and withdraw
methods might not set the TransactionLegs properly. I'm using quantity=amount in that code, but I think I might need to use cost
when the deposit or withdrawal is not the native currency.
An alternative might be to make non-native currency go through buy/sell rather than deposit/withdraw. I need to poke at this.
Relevant beancount docs:
https://beancount.github.io/docs/beancount_language_syntax.html#commodities-currencies
Need a way to signify a price when converting between asset symbols.