Skip to content
This repository was archived by the owner on Nov 16, 2025. It is now read-only.

DanielFerrariR/tr2sa

Repository files navigation

tr2sa: Convert Trade Republic Transactions History to Snowball Analytics CSV

This library only purpose is to generate a CSV file for Snowball Analytics. It is not affiliated with Trade Republic Bank GmbH.

Currently supported transactions:

  • trades
  • savings plans
  • roundups
  • 15 euros per month bonus
  • dividends
  • interests
  • tax corrections
  • received stock gift (when opening an account and from a friend)

Update cash balance

You need to manually update your current cash balance in Snowball Analytics.

1 - Go to the current portfolio settings and make sure 'Cash accounting' is in 'Current balance'

2 - Import the CSV

4 - Go to https://snowball-analytics.com/cash and update your cash balance.

What is currently supported

  • Download JSON and convert it to Snowball CSV
  • Connect to WebSocket (interact via prompt)
    • Known supported commands:
      • Transactions: {"type": "timelineTransactions", after: '...' } // list of transactions with optional 'after' option to get the next list of transactions (after needs the hash from the previous call)
      • Transaction Details: {"type": "timelineDetailV2", "id": timeline_id } // extra details of a transactions with required timeline_id that is id of a transaction
      • Activity Log: {"type": "timelineActivityLog", after: '...' } // list of activies with optional 'after' option to get the next list of activities (after needs the hash from the previous call)
      • Cash: {"type": "cash" } // Cash balance
      • Can get more of options from https://github.com/pytr-org/pytr/blob/master/pytr/api.py code, but this project isn't supporting and explaining how to use the others for now

Steps

1 - Install Node 20.19.0 (use the exact version to avoid errors)

2 - npm install

3 - npm start

Tip

If you liked this project and want me to keep it updated. Consider to tip any amount to: https://streamlabs.com/danielferrarir/tip

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •