Realized Gain Tracker Per Trade
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Realized Gain Tracker Per Trade is your professional tax and performance tracking tool for every trade you make on decentralized exchanges and NFT marketplaces. It automatically detects individual trades from transaction pages and calculates realized gain or loss per trade using historical cost basis tracking. The tool matches each sell trade against your previous purchase history to determine the acquisition cost using FIFO (First In, First Out) or LIFO (Last In, First Out) methods. It calculates net gain after accounting for fees and gas costs, displaying per-trade profit/loss with buy price, sell price, quantity, and percentage return. The tool maintains a persistent cost basis ledger across trading sessions, provides exportable gain/loss reports with summary statistics, and supports tax year filtering for compliance reporting.
WHERE IT RUNS
This script runs on all major DEX interfaces including Uniswap (app.uniswap.org), SushiSwap (app.sushi.com), Curve (curve.fi), Balancer (balancer.fi), 1inch (1inch.io), 0x Protocol (0x.org), CowSwap (cow.fi), and PancakeSwap (app.pancakeswap.finance), as well as major NFT marketplaces including OpenSea (opensea.io), Blur (blur.io), LooksRare (looksrare.org), and Zora (zora.co). It works on swap pages, NFT purchase pages, and transaction confirmation interfaces.
HOW TO USE
Install the script through the BotGentz userscript manager. Click "Connect Wallet" to link your EVM wallet extension. The tool automatically scans for trades on confirmation pages. Configure your preferred cost basis method (FIFO or LIFO) and tax year. Use "Add to Ledger" to manually enter cost basis for tokens purchased before script installation. The panel displays your total gain, total loss, and net gain across all tracked trades. Use "Export Report" to generate a tax-compliant report for your selected tax year, with all trade data formatted for easy review.
PERSISTENT COST BASIS LEDGER WITH FIFO/LIFO ENGINE
Unlike simple profit calculators that only show current portfolio value, this tool implements a persistent cost basis ledger that tracks every purchase and allocates cost to each sale using configurable accounting methods. The ledger maintains a detailed record of each token lot with acquisition price, quantity, and remaining balance. When a trade is detected, the engine applies the selected method (FIFO or LIFO) to determine which lots to match against the sale. For FIFO, the oldest lots are consumed first; for LIFO, the newest lots are consumed first. Each matched lot contributes its cost to the trade's cost basis, and any partially consumed lots retain their remaining balance for future trades. The ledger is automatically saved after every trade, ensuring accurate cost basis tracking across all trading sessions without manual intervention.
THE PANEL
The floating panel is fully draggable and snap-to-edge enabled. You can collapse it to a compact bubble when not in use, resize it to your preferred dimensions, and it remembers its position across page loads using persistent storage. Press Escape to quickly dismiss the panel. The panel displays your trade count, gain/loss summary, recent trades, cost basis method, and auto-track status with real-time updates.
PLEASE NOTE
This script requires the free BotGentz extension to be installed in your browser—it does not run as a standalone extension. You also need a real EVM wallet extension already installed and configured for transaction verification. The tool cannot automatically track cost basis for trades made before script installation—manual entry may be required. It relies on the page exposing complete trade data in a detectable format and cannot account for fees or gas costs not visible on the page. No user data is collected or transmitted—all trade data and cost basis ledger stay local in your browser storage. The tool provides assistance with tax tracking but does not constitute financial or tax advice.