I am testing the new python api to connect to a deployed TREP server.
And I follow this example to open a streaming to retrieve live prices.
What I found is if I provide incorrect username, the stream will keep retrying and never terminate the thread.
the session.stream_auto_reconnection is hardcoded to True and cannot be configured.
calling stream.close() also raise error "AttributeError: 'NoneType' object has no attribute 'remove_listener'". I guess it is because stream is pending to be opened, so you cant really close it.
What should I do to stop stream from reconnecting or to terminate it?