-
Notifications
You must be signed in to change notification settings - Fork 21
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
Session still persists after halting script or jupyter book #24
Comments
Could you verify if the session persists even after invoking the api.logout() method? checkConnection = api.isconnected()
print("Is Connected?: ", checkConnection)
time.sleep(1) |
Hello!
It makes sense? I'm going to create a PR for this and let you decide to include it or not. |
|
Hello, I've noticed that when I don't use the logout method in my class or Jupyter Notebook, the session with the broker persists, and you cannot log in again. As a consequence, you have to wait until it expires (in my case, up to 5 hours).
This will fix it (inside the cTrader class)
(i've forked the repo and created a commit for it, if this is not the right approach i won't create the PR)
Cheers.
The text was updated successfully, but these errors were encountered: