Skip to content

DarkSpine433/T212-data-exporter

Repository files navigation

🚀 Trading212 CFD & CRYPTO Data Exporter

🌍 Language / Język: 🇬🇧 English | 🇵🇱 Polski

If you find this tool useful, please leave a star on GitHub! 🌟

GitHub stars GitHub issues GitHub version License

A free tool enabling the export of detailed transaction data from Trading212 CFD and Crypto accounts to JSON and CSV format. This project solves the problem of the lack of native data export on the platform.

👉 Official website https://darkspine433.github.io/T212-data-exporter/

🤝 Collaboration: The tool works best with https://kalkulatorgieldowy.pl/ and was built in collaboration with them.


1 2 3

✨ Key Features (v2.0.0)

  • Universal Export: Fully supports both CFD and Crypto accounts. Downloads closed positions, FX fees, interest (CASH_INTEREST), overnight fees, transaction history, and dividend records.
  • Next-Gen API Engine: Completely updated request headers (X-Trader-Client, X-Trader-Device-Model, etc.) and endpoints to align with the latest Trading212 authorization mechanics.
  • Advanced Window Resizing: Draggable corner handles let you manually scale the UI to your needs. Includes a smart "Auto Fit" layout option.
  • Persistent UI State: Automatically saves window dimensions and position via localStorage so it loads exactly where you left it.
  • Double-Click Minimize: Double-clicking the panel header instantly minimizes the interface, with smart overrides for inner interactive components.
  • Privacy Mode: "Hide Results" toggle that instantly blurs sensitive financial data for clean screenshots or videos.
  • Pause & Resume: Total control over the extraction process with real-time pause/resume functionality.
  • NBP Exchange Rates: Automated integration with NBP mid-market rates for all supported Trading 212 account currencies.
  • Multiple Formats: Export data to JSON (optimized for tax calculators), CSV, and TXT summaries with client-side code compression (Terser minification).
  • 100% Privacy: All processing is done locally in your browser; no data ever leaves your device.

🐛 Reporting Bugs

If the script encounters a problem:

  1. Click the "Save Logs" button in the tool panel to download the T212_Logs.txt file.
  2. Open an issue in the Issues tab.
  3. Describe the situation and attach the downloaded log file.

🏗️ Project Structure

  • index.html - Homepage and bookmarklet code generator.
  • src/styles/ - Centralized CSS system using Inter font architecture and variables.
  • src/core/ - Application core engines, data extraction, and localization handlers.
  • src/components/ - Interactive layouts (such as modern mobile support dialogs).
  • src/assets/ - Optimized static resources, icons, and Open Graph graphics.
  • tests/ - Dedicated directory for scripts and data testing.

👨‍💻 Contributing

Want to improve the project?

  1. Fork the repository.
  2. Make your improvements.
  3. Open a Pull Request.

⚖️ Copyright and License

© 2026 Dawid Konopiaty. All rights reserved.

  • End Users: May use the script for personal purposes completely free of charge (exporting personal data).
  • Restrictions: Copying, redistributing, or publishing the source code on other websites without prior written or spoken consent from the author is prohibited.

For the full text of the terms, see LICENSE.md.


⚠️ Disclaimer

This tool is provided "as is", completely free of charge. The author is not responsible for any potential calculations errors, data gaps, or legal and tax consequences resulting from the use of the generated file. The result should be treated as an estimation.