I've wanted one too. Just wrote it up. See here 
<https://github.com/redstreet/beancount_reds_plugins/tree/main/beancount_reds_plugins/autoclose_tree#readme>
.

In short:

pip3 install git+https://github.com/redstreet/beancount_reds_plugins

And add this to your sources:
plugin "beancount_reds_plugins.autoclose_tree.autoclose_tree" "{}" 


On Sunday, August 21, 2022 at 2:28:18 PM UTC-7 [email protected] wrote:

> That's a good idea. I would certainly use it.
> The answer is there isn't at the moment.
>
> On Sun, Aug 21, 2022, 21:59 [email protected] <[email protected]> 
> wrote:
>
>> Hello,
>> Sorry if this question has already been asked in the past. I was not able 
>> to find any references.
>>
>> Is there a way to automatically close all an account and all its 
>> descendants? It'd be useful for investment accounts with lots of 
>> commodities. Maybe there's already a plugin that I am not aware of.
>>
>> Thank you,
>> Stefano
>>
>> -- 
>> 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/4ae041c8-9586-4987-bf01-03e3ce29c325n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/beancount/4ae041c8-9586-4987-bf01-03e3ce29c325n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/25689f47-27c2-4cc2-958c-397a468846d1n%40googlegroups.com.

Reply via email to