-
-
Notifications
You must be signed in to change notification settings - Fork 107
Fix parsing of new TR API event style and a few minor things #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add additional event types Remove duplicate doc ids in filenames
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good so far. I have yet to test it.
Tested it and indeed it works nicely for me. Thanks a lot! |
pytr/event.py
Outdated
"ORDER_CANCELED", | ||
"ORDER_CREATED", | ||
"ORDER_EXPIRED", | ||
"ORDER_REJECTED", | ||
"PAYMENT-SERVICE-IN-PAYMENT-DIRECT-DEBIT", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This caused some direct transfers to be missing from the generated file for me...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, ok, removed for now. However, what kind of event is this? It is not mapped to anything through tr_event_type_mapping...
Maybe you could provide anonymised json data for this?
…g#223) Fix parsing of new event style Add additional event types Remove duplicate doc ids in filenames
Trade Republic has modified the payload for some events. This needs some fixes in event parsing.
With this change I also add some event types that went unrecognized so far and I incorporate a suggestion about file names from #212.