create account

Hive Tax CSV – Free and Open Source Application by mightpossibly

View this thread on: hive.blogpeakd.comecency.com
· @mightpossibly ·
$3.48
Hive Tax CSV – Free and Open Source Application
 https://img.inleo.io/DQmX16KueFke7y9acDfVRsMnBufp7KBvC4Ad1PNmM6o3k6u/image.png 

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:  
- https://github.com/mp-hive/Hive-Tax-CSV

### 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](https://inleo.io/@leoglossary/leoglossary-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](https://inleo.io/@leoglossary/leoglossary-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")
```
2. 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
 https://img.inleo.io/DQmTUa5dKhiZMqXviX5Dco6SjgQEM7A7TNrUg226habFZfv/image.png 

### Got questions?
If you have any questions at all, have no idea how to run a Python [script](https://inleo.io/@leoglossary/leoglossary-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.

---

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

https://i.imgur.com/r815k0y.gif

Thank you for reading!</center>

---

### What is Hive?
To learn more about Hive, this article is a good place to start: [What is Hive?](https://inleo.io/@leoglossary/leoglossary-what-is-hive). If you don't already own a Hive account, [go here to get one](https://inleo.io/signup?referral=mightpossibly).

---

@leoglossary links added using [LeoLinker](https://inleo.io/@kendewitt/what-is-leolinker).




Posted Using [InLeo Alpha](https://inleo.io/@mightpossibly/hive-tax-csv-free-and-open-source-application)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 94 others
properties (23)
authormightpossibly
permlinkhive-tax-csv-free-and-open-source-application
categoryhive-167922
json_metadata{"app":"leothreads/0.3","format":"markdown","tags":["hive-167922","inleo","tax","tool","hive","application","opensource"],"canonical_url":"https://inleo.io/@mightpossibly/hive-tax-csv-free-and-open-source-application","links":["https://github.com/mp-hive/Hive-Tax-CSV","https://inleo.io/@leoglossary/leoglossary-time)","https://inleo.io/@leoglossary/leoglossary-software)","https://inleo.io/@leoglossary/leoglossary-script)","https://inleo.io/@leoglossary/leoglossary-what-is-hive).","https://inleo.io/signup?referral=mightpossibly).","https://inleo.io/@kendewitt/what-is-leolinker).","https://inleo.io/@mightpossibly/hive-tax-csv-free-and-open-source-application)"],"images":["https://img.inleo.io/DQmX16KueFke7y9acDfVRsMnBufp7KBvC4Ad1PNmM6o3k6u/image.png","https://img.inleo.io/DQmTUa5dKhiZMqXviX5Dco6SjgQEM7A7TNrUg226habFZfv/image.png","https://i.imgur.com/r815k0y.gif"],"isPoll":false,"dimensions":{}}
created2024-04-13 14:01:33
last_update2024-04-13 14:01:33
depth0
children19
last_payout2024-04-20 14:01:33
cashout_time1969-12-31 23:59:59
total_payout_value1.706 HBD
curator_payout_value1.772 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,952
author_reputation44,290,979,624,996
root_title"Hive Tax CSV – Free and Open Source Application"
beneficiaries
0.
accountleofinance
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id132,830,465
net_rshares8,748,698,458,655
author_curate_reward""
vote details (158)
@crazyphantombr ·
$0.04
Hello my friend!
How are you? Hope you're well!

Wow, who are you my noble friend? Where were you hiding that I hadn't met you yet? What incredible material your blog has! Congratulations on the extremely relevant content you have brought to the blockchain!

I want to note that I will "check" your posts in search of teaching content on the use of computational tools. I will learn a lot from them!

But what brought me here is another subject...
I noticed you recently used the #freecompliments community tag while posting your threads! Thank you very much for the mention!

In our community we have a support program that rewards members, and in this way you are missing the opportunity to receive incentives.

A few days ago we were looking for someone qualified to extract some data from the blockchain, so we paid for the service performed. The position has already been filled, but who knows, who knows, the next one could be yours?

I would like to invite you to join the **FreeCompliments** community, the most welcoming community on *Hive*. There is certainly a place for your posts!

We have a manual curation program and a rewards program for using *threads* and posting positive comments!

We have themed days for you to post throughout the week, we have monthly competitions and a team to support the mental health initiative.

It's a lot, isn't it?

<h3>Join us! </h3>

Find us through the links on your current *frontend*:
<br>
<center>


[InLeo](/communities/hive-140084) | [Ecency](/created/hive-140084) | [Peakd](https://peakd.com/c/hive-140084/created)


[![Freecompliments](https://i.imgur.com/KWnGAZC.gif)](/created/hive-140084)
</center>

I'll follow you, and if you want, you can follow me too!
👍  
properties (23)
authorcrazyphantombr
permlinkre-mightpossibly-zs718q3g
categoryhive-167922
json_metadata{"app":"leothreads/0.3","format":"markdown","tags":["leofinance"],"canonical_url":"https://inleo.io/@crazyphantombr/re-mightpossibly-zs718q3g","links":["https://peakd.com/c/hive-140084/created)","https://i.imgur.com/KWnGAZC.gif)](/created/hive-140084)"],"images":[],"isPoll":false,"pollOptions":{},"dimensions":[]}
created2024-04-16 20:23:09
last_update2024-04-16 20:23:09
depth1
children1
last_payout2024-04-23 20:23:09
cashout_time1969-12-31 23:59:59
total_payout_value0.020 HBD
curator_payout_value0.020 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,718
author_reputation226,539,688,666,902
root_title"Hive Tax CSV – Free and Open Source Application"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,907,027
net_rshares91,733,263,417
author_curate_reward""
vote details (1)
@mightpossibly ·
Thanks for your nice comment. Glad you like my stuff! I'm planning to do another app like this, but for L2 (Hive-Engine) transactions as well.
properties (22)
authormightpossibly
permlinkre-crazyphantombr-39rxbgh9j
categoryhive-167922
json_metadata{"app":"leothreads/0.3","format":"markdown","tags":["leofinance"],"canonical_url":"https://inleo.io/@mightpossibly/re-crazyphantombr-39rxbgh9j","isPoll":false,"pollOptions":{},"dimensions":[]}
created2024-04-21 13:32:15
last_update2024-04-21 13:32:15
depth2
children0
last_payout2024-04-28 13:32:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length142
author_reputation44,290,979,624,996
root_title"Hive Tax CSV – Free and Open Source Application"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id133,010,666
net_rshares0
@hive.helps ·
$0.04
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. 
👍  
properties (23)
authorhive.helps
permlinkre-mightpossibly-sbwczg
categoryhive-167922
json_metadata{"tags":["hive-167922"],"app":"peakd/2024.4.1"}
created2024-04-13 20:01:39
last_update2024-04-13 20:01:39
depth1
children2
last_payout2024-04-20 20:01:39
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.018 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length173
author_reputation10,266,864,574,804
root_title"Hive Tax CSV – Free and Open Source Application"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,837,107
net_rshares90,354,362,698
author_curate_reward""
vote details (1)
@mightpossibly ·
$0.07
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
👍  
properties (23)
authormightpossibly
permlinkre-hive-helps-rculhs7z
categoryhive-167922
json_metadata{"app":"leothreads/0.3","format":"markdown","tags":["leofinance"],"canonical_url":"https://inleo.io/@mightpossibly/re-hive-helps-rculhs7z","isPoll":false,"pollOptions":{},"dimensions":[]}
created2024-04-13 20:45:36
last_update2024-04-13 20:45:36
depth2
children0
last_payout2024-04-20 20:45:36
cashout_time1969-12-31 23:59:59
total_payout_value0.036 HBD
curator_payout_value0.036 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length164
author_reputation44,290,979,624,996
root_title"Hive Tax CSV – Free and Open Source Application"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,837,856
net_rshares174,962,031,384
author_curate_reward""
vote details (1)
@hivebuzz ·
Congratulations @mightpossibly! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

<table><tr><td><img src="https://images.hive.blog/60x70/https://hivebuzz.me/@mightpossibly/upvotes.png?202404112226"></td><td>You distributed more than 66000 upvotes.<br>Your next target is to reach 67000 upvotes.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@mightpossibly) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>

properties (22)
authorhivebuzz
permlinknotify-1713017157
categoryhive-167922
json_metadata{"image":["https://hivebuzz.me/notify.t6.png"]}
created2024-04-13 14:05:57
last_update2024-04-13 14:05:57
depth1
children0
last_payout2024-04-20 14:05:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length648
author_reputation367,940,838,471,523
root_title"Hive Tax CSV – Free and Open Source Application"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,830,525
net_rshares0
@hivebuzz ·
Congratulations @mightpossibly! You received a personal badge!

<table><tr><td>https://images.hive.blog/70x70/https://hivebuzz.me/badges/lpud.png</td><td>You powered-up at least 150 LEO on Leo Power Up Day!<br>Thank you for participating in the Leo challenge.</td></tr></table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@mightpossibly) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
properties (22)
authorhivebuzz
permlinknotify-1713226351
categoryhive-167922
json_metadata{"image":["https://hivebuzz.me/notify.t6.png"]}
created2024-04-16 00:12:30
last_update2024-04-16 00:12:30
depth1
children0
last_payout2024-04-23 00:12:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length446
author_reputation367,940,838,471,523
root_title"Hive Tax CSV – Free and Open Source Application"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,887,426
net_rshares0
@shawnnft ·
$0.04
very nice will share this to some friends that were looking for a tool like this
👍  
properties (23)
authorshawnnft
permlinkre-mightpossibly-sbw0fz
categoryhive-167922
json_metadata{"tags":["hive-167922"],"app":"peakd/2024.4.1"}
created2024-04-13 15:31:18
last_update2024-04-13 15:31:18
depth1
children6
last_payout2024-04-20 15:31:18
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.018 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length80
author_reputation287,785,494,368,546
root_title"Hive Tax CSV – Free and Open Source Application"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,832,223
net_rshares90,024,831,841
author_curate_reward""
vote details (1)
@mightpossibly ·
Awesome :) Thanks for sharing
👍  
properties (23)
authormightpossibly
permlinkre-shawnnft-bdm5fuxp
categoryhive-167922
json_metadata{"app":"leothreads/0.3","format":"markdown","tags":["leofinance"],"canonical_url":"https://inleo.io/@mightpossibly/re-shawnnft-bdm5fuxp","isPoll":false,"pollOptions":{},"dimensions":[]}
created2024-04-13 19:23:33
last_update2024-04-13 19:23:33
depth2
children4
last_payout2024-04-20 19:23:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length29
author_reputation44,290,979,624,996
root_title"Hive Tax CSV – Free and Open Source Application"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,836,505
net_rshares4,754,766,273
author_curate_reward""
vote details (1)
@shawnnft ·
no problem its useful people need it lol<div><a href="https://engage.hivechain.app">![](https://i.imgur.com/XsrNmcl.png)</a></div>
properties (22)
authorshawnnft
permlinkre-1713066932459
categoryhive-167922
json_metadata{"app":"engage"}
created2024-04-14 03:55:33
last_update2024-04-14 03:55:33
depth3
children0
last_payout2024-04-21 03:55:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length130
author_reputation287,785,494,368,546
root_title"Hive Tax CSV – Free and Open Source Application"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,843,747
net_rshares0
@shawnnft ·
no problem its useful people need it<div><a href="https://engage.hivechain.app">![](https://i.imgur.com/XsrNmcl.png)</a></div>
properties (22)
authorshawnnft
permlinkre-1713066947853
categoryhive-167922
json_metadata{"app":"engage"}
created2024-04-14 03:55:48
last_update2024-04-14 03:55:48
depth3
children0
last_payout2024-04-21 03:55:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length126
author_reputation287,785,494,368,546
root_title"Hive Tax CSV – Free and Open Source Application"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id132,843,753
net_rshares0