Hive Tax CSV – Free and Open Source Application

in LeoFinance8 months ago

As I was doing my taxes last week I wanted to eliminate as much manual work as possible, so with the help of AI I attempted to develop a very simple application that would scan my account for all relevant L1 transactions of Hive throughout the year and output them in a tidy CSV. And what do you know, after only an hour or so of prompting and testing, I had a working program.

The application is open source and available on my github account:

How it works (copy/paste from the Readme)

Hive Tax CSV is a simple Python application that will fetch tax relevant L1 transactions for a specific Hive account within a given time period. The application will scan your Hive account between the dates you set and output a .csv file that can be further processed and then imported into the tax software of your choice.

The application will fetch the following transactions:

  • Claimed rewards (HP)
  • Claimed rewards (HBD)
  • HIVE/HBD Conversions
  • HIVE/HBD Internal Market Trades

How to use

  1. Download and edit the file fetchTransactions.py and input your username and the desired time period.
account_name = "your-account-name"  # Replace with your Hive account name
start_date = datetime.strptime("2024-01-01", "%Y-%m-%d")
end_date = datetime.strptime("2024-4-11", "%Y-%m-%d")
  1. Run the script. It will take a few seconds to a few minutes to complete, depending on the amount of transactions you've done in the selected time period. When the script is done it will output a CSV file to the same directory as where you placed/ran the script.

If you don't know how to run a Python script, don't worry it's super easy. Ask ask any LLM (for instance ChatGPT) and you'll have it set up in no time

Here's an example output

Got questions?

If you have any questions at all, have no idea how to run a Python script or whatever else, make sure to reach out in the comments' section below, and I'll try to help out as best I can.


If you found this useful, feel free to leave a comment, upvote or reblog.

Thank you for reading!


What is Hive?

To learn more about Hive, this article is a good place to start: What is Hive?. If you don't already own a Hive account, go here to get one.


@leoglossary links added using LeoLinker.

Posted Using InLeo Alpha

Sort:  
Loading...

That is nice. Exactly what I was searching for since 2 years. Would be great if it could as well read out all the L2 transactions on hive-engine. But this is a great start.

Glad to hear it and appreciate the feedback! I'm planning to do a similar one for L2-transactions. It shouldn't be too difficult, just need time to sit down with it

very nice will share this to some friends that were looking for a tool like this

Awesome :) Thanks for sharing

no problem its useful people need it lol

no problem its useful people need it

Congratulations @mightpossibly! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You distributed more than 66000 upvotes.
Your next target is to reach 67000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Congratulations @mightpossibly! You received a personal badge!

You powered-up at least 150 LEO on Leo Power Up Day!
Thank you for participating in the Leo challenge.

You can view your badges on your board and compare yourself to others in the Ranking