Unsubscribes and removes all currently resolved instruments from the Instruments collection.
Visual Basic |
---|
Public Sub RemoveAllInstruments() |
After the RemoveAllInstruments method is called, no InstrumentChanged events are fired and all of the previously received CQGInstrument object references become invalid.
This method works in synchronous mode; i.e. after the method return, no instruments will be in the Instruments collection
This method removes all subscribed instruments including those which were subscribed via AutoSubscribeInstruments setting. In CQG API v. 3.0 and higher it may result in unavailability of account summaries and position properties.
See the usage of CQGCEL methods in the OrderChanged event's example section.
See the usage of RemoveAllInstruments method in the CQGCEL Example example section.