Recording Transaction Fees

48 views
Skip to first unread message

Ghanashyam Prabhu

unread,
Jan 22, 2021, 11:37:24 PM1/22/21
to Beancount
For crypto taxation, the cost basis is calculated along cost of the crypto inclusive of the exchange fees. Consider the following transaction recorded by an exchange. 

2020-10-25 * "Coinbase" "Buy BTC at Coinbase"
  Assets:US:Crypto:Coinbase:BTC           0.03683173 BTC {13575.25 USD, 2020-10-25}
  Assets:US:Crypto:Coinbase:Cash             -500.00 USD

I have one account Assets:US:Crypto:Coinbase:Cash to which I transfer cash from a checking out. From this Coinbase:Cash account I purchase BTC and I'd like to record fees spent as well. 

Here the cost basis of 13575.25 USD per BTC is calculated inclusive of the cost of the Fees. 
How does one record the exchange fees so we can track fees in the beancount ledger? 

Pls suggest. 

Martin Blais

unread,
Jan 23, 2021, 12:22:33 AM1/23/21
to Beancount
See the v3 doc, there's an item for solving that.

It's not 100% obvious the right way to do it - adjusting the cost basis with a plugin / scan of the entries will make it more difficult to match against a previous lot (by specifying the price) but if you don't care about that it's doable with a plugin. I've writen custom scripts in the past, for specific accounts.



--
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/c38eea71-94a5-4cef-b46f-53c5a980de7an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages