This guide walks you through using a Python notebook for your 2023 crypto tax calculations. By simply inputting your wallet addresses, the notebook fetches line item details and calculates your overall profit or loss (PnL) for the year (in dollar value). It employs the average cost basis method for fungible tokens, which you can learn more about here.Documentation Index
Fetch the complete documentation index at: https://dune-pro-1110-add-delete-endpoints-python-js-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Accessing the notebook
- Start editing via this Google Colab Notebook (Note to save you must save another copy.)
- Download from this Hex Notebook
Setup
Ensure you have the Dune API SDK installed and your API key ready.- Install Dune API SDK:
How to use the notebook
Replace'your_api_key_here' with your Dune API key:

