Jump to content
  • 0

Excel sample how-to logout cleanly



I downloaded the excel sample trading app, and have added an auto trading algo referencing the streamed price data, including auto trade placement with relevant stop and limits and it works nicely, however, I'm not sure on how to log out cleanly (rest and streamed).
There is a logout public sub in the igApiRestClient class module which I think I'm calling using the following public sub I added in sheet1 & associated logout button:
 Public Sub Logout_Button()
 Dim ab As IGApiRestClient
 Set ab = New IGApiRestClient
  Call ab.logout
   m_loggedIn = False
  MsgBox "LoggedOut!"
 End Sub
(stepping through the code does jump to and step through the logout class sub, but I'm obviously doing something wrong.)
Any guidance would be really appreciated.

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...