Git Product home page Git Product logo

Comments (9)

MartinScharrer avatar MartinScharrer commented on June 25, 2024 3

I now had a look myself and unfortunatly TR seems to not include the VISA card transactions (payments done with card, safeback and round-up ETF buys) in the timeline responses. This is the reason why they are not included by pytr.

I got some success by implementing a timelineTransactions subscription which then appends more timeline_events, but this only gives me some more entries in the events_with_documents.json file like "Round up" and Card Transactions, but not all and some of their PDFs fail to download with API errors. Further investigation is required.

from pytr.

MartinScharrer avatar MartinScharrer commented on June 25, 2024 2

I made the necessary changes (https://github.com/MartinScharrer/pytr/tree/timeline_V2). It works now for me. I will do some further tests and then make a pull request.

from pytr.

otmezger avatar otmezger commented on June 25, 2024

I also would love to see this. In addition to just the visa transactions, it would be great to get a complete export of the "cash" account, it's basically a normal bank account and exporting it can enable me to import it in my personal finance software (actual budget)

from pytr.

otmezger avatar otmezger commented on June 25, 2024

They must have an API. Both TR web app and mobile app show the card transactions, so they must be serving it somehow. Iā€™m not very familiar with websocket, and was unable to find my way around the code.

from pytr.

MartinScharrer avatar MartinScharrer commented on June 25, 2024

I analyzed the API now. They seem to have added additional subscriptions (timelineTransactions, timelineDetailV2) which need to be used instead of the old ones (timeline, timelineDetail) which are however still supported but do not include the newer entry types like the card transactions.

I forked the project now (https://github.com/MartinScharrer/pytr) and added handling of the new websocket subscriptions and their handling. Still needs some work in order to get the documents downloaded as the structure changed.

from pytr.

otmezger avatar otmezger commented on June 25, 2024

Let me know if you need another hand testing. thanks!

from pytr.

marzzzello avatar marzzzello commented on June 25, 2024

@otmezger If you can test the PR that would be great. If everything works I can make a new release

from pytr.

tenjaa avatar tenjaa commented on June 25, 2024

I gave it a try and observed a few things by comparing both documents with the following commands:

$dir1 = Get-ChildItem -Recurse -path C:\dir1
$dir2 = Get-ChildItem -Recurse -path C:\dir2
Compare-Object -ReferenceObject $dir1 -DifferenceObject $dir2

it works

I got the new saveback documents. I did not try the round up feature yet so I cannot say anything regarding that.

additional general meeting documents

There are two very recent new documents. They should be there and are just missing in the current version it seems.

different order

I have two deletion confirmations of the same security, same day, same minute.
With the current version, the one with the the starting id ac4... gets renamed. With the new version the one with the id 21c... gets renamed. But both documents are present.
For me that would be fine.

error

I get the following error message with the new version

Received error message: '106 E {"errors":[{"errorCode":"NOT_FOUND","errorField":null,"errorMessage":"Could not find resource","meta":{"source":"PLATFORM"}}]}'

Interestingly it does not seem to matter. Looking at the logs, there are no files missing from the security that it was just checking when that error occured.

from pytr.

MartinScharrer avatar MartinScharrer commented on June 25, 2024

I got some error with some new documents which do not have the date in the subtitle entry.
Some code needs to be coded more robust to handle this.

from pytr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.