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.