How to transfer lots from accounts?

56 views
Skip to first unread message

kohlt...@gmail.com

unread,
Oct 12, 2021, 10:42:12 AM10/12/21
to Beancount

I got myself a new broker and migrated all shares there. But whatever I try beancount complains about not beeing able to match postings.

2018-01-01 open Assets:Depot:BR1 "FIFO"
2021-10-01 open Assets:Depot:BR2 "FIFO"

2021-07-02 * "BR1" Savings Plan"
  Assets:Depot:BR1                               4.978 XYZ {100.44 EUR}
  Assets:Clearing:BR1                          -499.99 EUR

2021-04-07 * "BR1" "Savings Plan"
  Assets:Depot:BR1                               5.218 XYZ {95.8107 EUR}
  Assets:Clearing:BR1                           -500.00 EUR

What I tried:

2021-10-05 * "BR2" "Transfer everything"
  Assets:Depot:BR2                                -10 XYZ
  Assets:Depot:BR1                                  10 XYZ

Causes Assets:Depot:BR1 to contain 10 XYZ and -10 XYZ.

2021-10-05 * "BR2" "Transfer everything"
  Assets:Depot:BR2                                -10 XYZ {}
  Assets:Depot:BR1                                  10 XYZ

Error: "No position matches Posting..."

2021-10-05 * "BR2" "Transfer everything"
  Assets:Depot:BR2                                -10 XYZ {}
  Assets:Depot:BR1                                  10 XYZ {}

Error: "Failed to categorize posting 1"

How do I make Beancount transfer all shares following FIFO to the new account to keep cost basis?

Thank you

Ben Blount

unread,
Oct 12, 2021, 11:36:38 AM10/12/21
to Beancount
This is one of the most commonly asked questions, please give archives of the list a look and come back if you have questions after that.

--
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 beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/341bcc30-0a76-4d3a-9b91-ca99ee6aeaa3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages