Returns a DOM quote by its price.
Read-only property
Visual Basic |
---|
Public Property ItemByPrice( _ ByVal price_ As Double, _ Optional ByVal round_to_better As Boolean = True _ ) As CQGQuote |
- price_
- round_to_better
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.
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.
For the usage of the DOM collection, see the example section of the InstrumentDOMChanged Event.