# Created a script to merge those pesky Cost Transactions

**URL:** <https://discuss.koinly.io/t/created-a-script-to-merge-those-pesky-cost-transactions/13750>\
**Category:** Tax Questions\
**Created:** [April 18, 2022, 8:27pm UTC](https://discuss.koinly.io/t/created-a-script-to-merge-those-pesky-cost-transactions/13750 "2022-04-18T20:27:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![poolsidestudios](https://yyz2.discourse-cdn.com/flex052/user_avatar/discuss.koinly.io/poolsidestudios/32/3000_2.png) [@poolsidestudios](https://discuss.koinly.io/u/poolsidestudios)\
**Post date:** [April 18, 2022, 8:27pm UTC](https://discuss.koinly.io/t/created-a-script-to-merge-those-pesky-cost-transactions/13750/1 "2022-04-18T20:27:03Z")

</div>

Always slightly irritated that the lists are hard to read and don’t offer a proper structure (as in LP txx bundled together, transfers clearly marked etc)

The part that makes it even less bearable are transaction costs. Which is why I created this script to merge batch them into one per day. Reduces my KOINLY transaction count significantly. Another nice side effect is that I ca also see how much I’ve spent on gas each day 🙂

It would be great if KOINLY had an automerge function for that per day/month…

watch the clip in the link below:

[cost tx batch merge](https://www.dropbox.com/s/lenh3opx01mipaz/20220418132042864.mp4?dl=0)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex052/uploads/koinly_app/original/1X/7ac58e5593a7122893d066794a7254dcdb5ddb31.png) [@system](https://discuss.koinly.io/u/system)\
**Post date:** [June 17, 2022, 8:27pm UTC](https://discuss.koinly.io/t/created-a-script-to-merge-those-pesky-cost-transactions/13750/2 "2022-06-17T20:27:06Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
