CQG API 4.0 - Revised
RemoveAllInstruments Method
See Also  Send Feedback
CQGCEL Interface : RemoveAllInstruments Method

Glossary Item Box

Description

Unsubscribes and removes all currently resolved instruments from the Instruments collection.

Syntax

Visual Basic
Public Sub RemoveAllInstruments() 

Remarks

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.

Example

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.

See Also