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/CAPYcn%3D71rYLayizdt-X2T6_AKSJQ59jeJoUZTu1tYYtGA8ytAw%40mail.gmail.com.
