Comments (2)
I haven't thought about that, mostly because I didn't need it myself so far and nobody else asked for it. Also I'm not doing very much with this repository, I'm more focused on bringing new features to the webapp available at ETH2.tax (especially more detailed validator performance statistics, but that's beside the point).
If you want to add some of those numbers (CB/STCG/LTCG) and append it to the end of the output CSV / console, I'm all for it! If you create a MR with the functionality, I'll take a look at it and merge it ASAP. Otherwise, it'll take me a while to get back to this myself, I'm a little overloaded at the moment.
If you do decide to create the MR, please make the parameters customizable (STCG_LIMIT_DAYS=365 or something like that).
from eth2-staking-rewards-calculator.
The biggest challenge turns into "wash sales" and cluster that is cost basis accounting when you are effectively buying every day ... and therefore your daily blended cast basis is actually decently easy to calc.. that is until you sell of the gains from that stake.. and then causes the gain event.. but not for all etc.. there many accounting packages that have been build for stock traders to compute this.. though of course none is open source! Hence my desire to add functionality to what has already been put together..
thought given my limitation on coding, I painfully forced to writing specs...
Thinking on that really is that we should have another input file that includes all of the external transactions Buys and/ or Sells that then spawn off the account cost basis clusters based on the validator(s) earnings. First impression is that the weighted average method is probably best used, though, FIFO / LIFO could also be done.. with the avg. each sale (if done after 365d) would then be include a portion that is stcg and the remainder ltcg..
the above isn't "easy" per se.. but should be the identical methodology used for stocks... so there is a reference point... but with a continuous buy (of ETH) from the validator...
No worries on timing.. happy to help where possible... and happy to discuss privately if you want.
from eth2-staking-rewards-calculator.
Related Issues (7)
- Dates outside the range HOT 5
- Something went wrong while fetching price data from CoinGecko HOT 2
- Coingecko throttling HOT 3
- Traceback error - v2.0.2 Prysm HOT 4
- EVM Fees HOT 1
- Exception: Error while fetching data from beacon node: {"code":404,"message":"NOT_FOUND: beacon state at slot 2847598","stacktraces":[]} HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eth2-staking-rewards-calculator.