that's a highly useful documentation @martin. is it linked in the beancount 
docs (I don't remember seeing it there) and if not, are there more reports 
like this available? thank you!

[email protected] schrieb am Mittwoch, 17. Februar 2021 um 16:09:38 UTC+1:

> Further, it usually makes more sense to treat buy/sell on commodities in 
> separate transactions.
> This then allows you to eventually compute returns
> See http://furius.ca/beancount/doc/returns
>
>
>
> On Wed, Feb 17, 2021 at 9:58 AM Daniele Nicolodi <[email protected]> 
> wrote:
>
>> On 17/02/2021 09:28, David Karapetyan wrote:
>> > 
>> > Hello,
>> > 
>> > Firstly, I wanted to compliment you on this brilliant project (and your
>> > excellent documentation in particular on double-entry accounting, useful
>> > particularly for people already working in technical fields). I had a
>> > question about balance assertions for investment accounts. Specifically,
>> > suppose I have the following two (and only two transactions) for 
>> Fidelity:
>> > 
>> > Assets:US:Fidelity:SPAXX   10 USD
>> > Assets:US:Fidelity:FNILX 20 USD
>>
>> This is not valid Beancoutn syntax. However, completing it in the most
>> straightforward way:
>>
>> 2020-02-17 * "Foo"
>>   Assets:US:Fidelity:SPAXX                             10.00 USD
>>   Assets:US:Fidelity:FNILX                             20.00 USD
>>   Assets:Openings
>>
>> these are two postings on a transaction, not two transactions. However,
>> I don't think semantics is part of your problem :-)
>>
>> > I would like to do a balance assertion on the sum of these accounts in
>> > time, i.e.
>> > 
>> > 2020-01-01 balance Assets:US:Fidelity 30 USD
>>
>> This works out of the box (as long as you remember to open the
>> Assets:US:Fidelity account):
>>
>> 2020-02-17 open Assets:Openings
>> 2020-02-17 open Assets:US:Fidelity
>> 2020-02-17 open Assets:US:Fidelity:SPAXX
>> 2020-02-17 open Assets:US:Fidelity:FNILX
>>
>> 2020-02-17 * "Foo"
>>   Assets:US:Fidelity:SPAXX                             10.00 USD
>>   Assets:US:Fidelity:FNILX                             20.00 USD
>>   Assets:Openings
>>
>> 2020-02-18 balance Assets:US:Fidelity 31.00 USD
>>
>> Can you post a self contained minimal example where it does not work?
>>
>> Cheers,
>> Dan
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Beancount" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beancount/f74c13c4-2378-b381-f2c0-f83a2e65ee8c%40grinta.net
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/93500035-4144-4b5a-850e-a745ef0b5d40n%40googlegroups.com.

Reply via email to