Crypto Chart of Accounts setup (staking, DeFi, impermanent loss etc).

17 views
Skip to first unread message

Daryl Manning

unread,
Feb 4, 2022, 11:28:15 PM2/4/22
to Ledger
I'm curious how people using ledger-cli might have charts of accounts and tracking set up for crypto (I'm dabbling only) and deal with things like impermanent loss, proper captal gains, and such with issues like staking and DeFi. (and hey, even automated reaping)

Would love to see some examples or descriptions (or pointers to blog posts) of how you might be cleverly handling the issue(s) since I need to get this sorted relatively soon and realize my current setup is inadequate. (also, end up using multiple currencies for purchase which further complicates things).

thanks!
Daryl.
PS> apologies if this has been written about elsewhere in the group and my googling missed it.

John Wiegley

unread,
Feb 5, 2022, 12:40:43 PM2/5/22
to Daryl Manning, Ledger
>>>>> "DM" == Daryl Manning <daryl....@gmail.com> writes:

DM> Would love to see some examples or descriptions (or pointers to blog
DM> posts) of how you might be cleverly handling the issue(s) since I need to
DM> get this sorted relatively soon and realize my current setup is
DM> inadequate. (also, end up using multiple currencies for purchase which
DM> further complicates things).

I've been working on a tool for this, that is extensible so that you can
program different staking schemes, etc.:

https://github.com/jwiegley/trade-journal

It's just a matter of finding more time to keep making progress!

John

Daryl Manning

unread,
Feb 6, 2022, 1:19:58 AM2/6/22
to Ledger
Looks interesting! (but Haskell, yikes... 8-/ ).

Your comment about different staking schemes is interesting though. Did you find ledger-cli just impossible to support those in? (to my initial question, really.).

thanks!
Daryl.

John Wiegley

unread,
Feb 6, 2022, 12:42:46 PM2/6/22
to Daryl Manning, Ledger
>>>>> "DM" == Daryl Manning <da...@wakatara.com> writes:

DM> Your comment about different staking schemes is interesting though.
DM> Did you find ledger-cli just impossible to support those in? (to my
DM> initial question, really.).

Ledger can represent them, but it ends up being a very manual affair. The
objective of trade-journal is to give you the simplest syntax possible to
express the "events" that occurred relative to your staking, and then to
generate Ledger transactions from these, so that Ledger is the reporting tool,
but trade-journal is the input scheme.

John

Daryl Manning

unread,
Feb 6, 2022, 10:20:19 PM2/6/22
to Ledger
Interesting. I was rather hoping there was something like Reckon that could suck in csvs from the various CEX and DEX exports (where they have them) and then figure out how to write the entries in Ledger themselves.
(tho recognize that this makes it hard perhaps to see if a particular strategy eg looping is working as you have no semantic information in the transactions about it.)

Wll def check t-j out.
thanks,
Daryl

John Wiegley

unread,
Feb 7, 2022, 12:10:34 PM2/7/22
to Daryl Manning, Ledger
>>>>> "DM" == Daryl Manning <daryl....@gmail.com> writes:

DM> Interesting. I was rather hoping there was something like Reckon that
DM> could suck in csvs from the various CEX and DEX exports (where they have
DM> them) and then figure out how to write the entries in Ledger themselves.
DM> (tho recognize that this makes it hard perhaps to see if a particular
DM> strategy eg looping is working as you have no semantic information in the
DM> transactions about it.)

In addition to modules for managing staking for different cryptos, there will
also be modules for snarfing data from different transaction exports. It will
have to be done as an open architecture where all that you need to provide is
any executable that can convert the input to the expected CSV input.

John
Reply all
Reply to author
Forward
0 new messages