If you really want but I'm somewhat unclear what you are trying to do.
Normally you'd book sales to PnL + a cash account for the proceeds. If you
group the transactions together under a single txn your income statement
will all be grouped under that date. Maybe that's fine if you don't care
about the history, just the lot details.

If you're trying to avoid a lot of tedious typing, you can probably get a
history CSV from Etherscan and then use a CSV importer (or make your own)
to import these automatically.

You could always start like this and import more history as you have the
need / desire for.

On Tue, Mar 23, 2021 at 9:31 AM david e <[email protected]> wrote:

> thanks good idea – so the second entry with negative amounts is also
> balanced against Equity:Opening-Balances?
>
> [email protected] schrieb am Dienstag, 23. März 2021 um 17:24:40 UTC+1:
>
>> Beancount doesn't currently support transactions that self-reduce. So you
>> need to at least split the buys and sells. Should be no problem with having
>> those be grouped together though.
>>
>> On Tue, Mar 23, 2021, 09:12 david e <[email protected]> wrote:
>>
>>> I am trying to open an account and immediately add existing lots that go
>>> back in time to my journal file.
>>>
>>> for small positions with only one entry I simply did the following:
>>>
>>> 2021-03-23 * "Open XYZ"
>>>   Assets:Crypto:WalletB:XYZ 3000.00 XYZ {0.03 USD, 2018-11-11}
>>>   Income:Crypto:Airdrop
>>>
>>> but what about having several buy and sell transactions?
>>>
>>> ideally, I would like to have an entry like this
>>>
>>> 2000-01-01 * "Open ETH"
>>>   Assets:Crypto:WalletB:ETH 0.5 ETH {1200.00 USD, 2018-01-01}
>>>   Assets:Crypto:WalletB:ETH -0.1 ETH
>>>   Assets:Crypto:WalletB:ETH 0.5 ETH {1300.00 USD, 2018-01-20}
>>>   Equity:Opening-Balances
>>>
>>> to automatically subtract from the first lot, but this doesn't work as
>>> in bean-report holdings simply all listed positions show up, positive and
>>> negative. the subtraction only works when I specify from which lot I want
>>> to sell, like this:
>>>
>>> 2000-03-23 * "Open ETH"
>>>   Assets:Crypto:WalletB:ETH 0.5 ETH {1212.59 USD, 2018-01-01}
>>>   Assets:Crypto:WalletB:ETH -0.1 ETH {1212.59 USD}
>>>   Assets:Crypto:WalletB:ETH 0.5 ETH {1300 USD, 2018-01-20}
>>>   Equity:Opening-Balances
>>>
>>> here the problem is that a lot of other entries are following and I
>>> can't keep track of the lots so the manual approach doesn't work here.
>>>
>>> is there any way I can open this account and calculate the correct Lots
>>> by putting several ins and out into the same entry? otherwise I could also
>>> book an average price for all transactions but I would very much prefer to
>>> have it as accurate as possible.
>>>
>>> thanks
>>>
>>> --
>>> 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/a5186533-f5c1-4ad6-93d8-4404bed0a927n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/beancount/a5186533-f5c1-4ad6-93d8-4404bed0a927n%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/a8719a65-44c1-42cb-85ef-f0356038b798n%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/a8719a65-44c1-42cb-85ef-f0356038b798n%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/CACGEkZu6u0TzwTXUV2%2BimHj2shVe7L%2B_-Vm56BYUGY_YZ5HuQA%40mail.gmail.com.

Reply via email to