tda-api
tda-api copied to clipboard
re-subscription needed for streaming client on "EXPIRED_KEY"
There's a case for streaming when ACCT_ACTIVITY service will un-subscribe you due to an "expired key" -- refer to below log of the "data"
{"seq": 29, "key": "xxxxxf1ff5f3", "ACCOUNT": "", "MESSAGE_TYPE": "ERROR", "MESSAGE_DATA": "EXPIRED_KEY"}
Noticed that this is a "data" type of message -- not a "response" -- unfortunately this is all the logs i kept and im unware of the code returned. Since all data is handled by the handler, we're not checking for code since a piece of data is considered success but as you can see it's a bit confusing with a MESSAGE_TYPE=ERROR.
WIP -- will add more context and discussion but I'd like to bookmark this issue for now
Describe the solution you'd like A clear and concise description of what you want to happen. (TBD)
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. (TBD)
Additional context Add any other context or screenshots about the feature request here. (TBD)