Thank you everyone for your help and insights. On Tue, 10 Feb 2026 at 05:54, Martin Blais <[email protected]> wrote:
> There's no way to do this. > See here for background: > > https://docs.google.com/document/d/1qPdNXaz5zuDQ8M9uoZFyyFis7hA0G55BEfhWhrVBsfc/edit?tab=t.0#heading=h.axs6y16wohk9 > TL;DR: the AST and finalized data structures should eventually be split > and the AST ones are the ones you would create to do this. > > > > On Sun, Feb 8, 2026 at 9:06 AM Zoltan <[email protected]> wrote: > >> The Beancount documentation says it supports "total cost" or "total >> price" using @@ symbols: >> https://beancount.github.io/docs/beancount_language_syntax.html >> >> The grammar file of Beancount also has separate, distinct entries for @ >> and @@. >> >> I do currency exchanges(with no additional, explicit fees). For me, it is >> cleaner to declare the amount I paid and received than only the amount I >> paid and fiddle with the many digits of the exchange rate. >> For example, this is what I would like to have: >> 2025-01-01 * "Exchanged to GBP" >> Assets:Bank:EUR -117 EUR @@ 100 GBP >> Assets:Bank:GBP >> >> And this is what I would like to avoid: >> 2025-01-01 * "Exchanged to GBP" >> Assets:Bank:EUR -117 EUR @ 0.854700855 GBP >> Assets:Bank:GBP >> >> I'm writing an importer by extending beangulp.importers.csvbase.Importer >> and I'm using beancount.core.data. I couldn't find any reference in the >> documentation how to declare total cost(@@) using the python API. >> >> Is it possible to generate clean records of currency exchanges using an >> importer script where the transaction only declares the total amount paid >> and received? >> >> -- >> 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 visit >> https://groups.google.com/d/msgid/beancount/04770ab4-f822-4be3-addd-28bd6d4e1ec4n%40googlegroups.com >> <https://groups.google.com/d/msgid/beancount/04770ab4-f822-4be3-addd-28bd6d4e1ec4n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Beancount" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/beancount/D6xpn0guLzs/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/beancount/CAK21%2BhOpc0asmhrpNWLqxqnYcFWeRu3ckd61PUXX_U0-3gNX1w%40mail.gmail.com > <https://groups.google.com/d/msgid/beancount/CAK21%2BhOpc0asmhrpNWLqxqnYcFWeRu3ckd61PUXX_U0-3gNX1w%40mail.gmail.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 visit https://groups.google.com/d/msgid/beancount/CAGPDDZCCR5Wx1ZWxZ7s-JOWs26mT_8M6-UPMSCpG27Qtra%2B3mQ%40mail.gmail.com.
