CQG API 4.0 - Revised
RequestTimedBars Method
See Also  Send Feedback
cqg_timed_bars_request

Specifies timed bars request, which contains all the parameters as properties.

Notes:

Values provided for properties that are not required are ignored.

If values are not provided for properties that are required, an exception will be thrown.

CQGCEL Interface : RequestTimedBars Method

Glossary Item Box

Description

Starts an asynchronous request for timed bars.

Syntax

Visual Basic
Public Function RequestTimedBars( _
   ByVal cqg_timed_bars_request As CQGTimedBarsRequest _
) As CQGTimedBars

Parameters

cqg_timed_bars_request

Specifies timed bars request, which contains all the parameters as properties.

Notes:

Values provided for properties that are not required are ignored.

If values are not provided for properties that are required, an exception will be thrown.

Remarks

An exception will be thrown if an asynchronous request could not be made.

Otherwise, returns a CQGTimedBars object which doesn't contain any timed bars yet and status is rsInProgress.

Notes:

It is a good practice to cancel the request as soon as it becomes unnecessary. Such approach allows using memory resources more optimal.

Call RemoveTimedBars for request cancelling.

See Also