CQG API 4.0 - Revised
ItemByPrice Property
See Also  Send Feedback
price_
round_to_better
CQGDOMQuotes Collection : ItemByPrice Property

Glossary Item Box

Description

Returns a DOM quote by its price.

Property type

Read-only property

Syntax

Visual Basic
Public Property ItemByPrice( _
   ByVal price_ As Double, _
   Optional ByVal round_to_better As Boolean = True _
) As CQGQuote

Parameters

price_
round_to_better

Return Type

Corresponding collection item represented as CQGQuote.

If the accessed item does not exist, see Accessing non-existent collection items to learn more about the return type.

Remarks

The impact of roundToBetter parameter depends on the collection. If the collection is a collection of asks, the better price is the lowest. Hence a quote will be returned with lower price than the one given in Price parameter.

And vice-versa for bids - if  roundToBetter is True a quote with a higher price will be returned.

Example

For the usage of the DOM collection, see the example section of the InstrumentDOMChanged Event.

See Also