I tried your suggested command and got same result, monthly accumulated of the actual market price and I want monthly accumulated of the total capital invested (cost).
I think its a bug. The -B param works perfectly all the time, except when there is a group command too, like -M or -Y for example. On Saturday, March 11, 2023 at 10:07:22 AM UTC-6 federico lopez wrote: > The manual suggest to use --basis in conjunction with --exchange > COMMODITY so maybe you can try: > > ledger reg btc -M -X $ -B > > On Sat, Mar 11, 2023 at 3:27 PM federico lopez <[email protected]> wrote: > >> >> >> On Sat, Mar 11, 2023 at 2:35 PM Albert <[email protected]> wrote: >> >>> >>> I think the correct result should be: >>> 23-Jan-01 - 23-Jan-31 activos:btc $1,200 $1,200 >>> >> >> It seems that ledger takes the first currency as "base" >> >> Not a solution but, if you invert the transaction it reports the $ >> currency as base: >> >> 2023/01/02 compra BTC >> activos:btc $500 @ 1 BTC >> activos:bancos >> >> 2023/01/03 compra BTC >> activos:btc $700 @ 1 BTC >> activos:bancos >> >> > ledger reg btc -M -B >> 2023/01/01 - 23-Jan-31 activos:btc $1,200.00 >> $1,200.00 >> >> >> -- --- You received this message because you are subscribed to the Google Groups "Ledger" 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/ledger-cli/b4f2913c-e47c-4b01-b4ef-81bdc6f01bcbn%40googlegroups.com.
