CQG API 4.0 - Revised
InstrumentDOMChanged Event
See Also  Send Feedback
cqg_instrument

Changed instrument: its DOMAsks and DOMBids collections contain new DOM book

prev_asks

Collection of asks from previous DOM book

prev_bids

Collection of bids from previous DOM book

CQGCEL Interface : InstrumentDOMChanged Event

Glossary Item Box

Description

This event is fired when instrument's DOM* is updated.

Syntax

Visual Basic
Public Event InstrumentDOMChanged( _
   ByVal cqg_instrument As CQGInstrument, _
   ByVal prev_asks As CQGDOMQuotes, _
   ByVal prev_bids As CQGDOMQuotes _
)

Parameters

cqg_instrument

Changed instrument: its DOMAsks and DOMBids collections contain new DOM book

prev_asks

Collection of asks from previous DOM book

prev_bids

Collection of bids from previous DOM book

Remarks

In order to receive this event for an instrument, its data subscription level should be set to dsQuotesAndDOM.

Mode and frequency of DOM update firing can be changed from CQGAPIConfig.DOMUpdatesMode and CQGAPIConfig.DOMUpdatesPeriod properties.

When the event is fired for the first time the prevAsks and prevBids collections are empty.

 

Note: Not all the instruments have DOM support. In case such instrument's subscription level is set to dsQuotesAndDOM this event will be fired only once and all DOM collections (instrument.DOMAsks, instrument.DOMBids, prevAsks and prevBids) will be empty.


*DOM goes for depth of market

Example

These examples show the handling of InstrumentDOMChanged event. Here is also shown how to get the best ask/bid of the new DOM book.

VB
C#
 
 

See Also