CQG API 4.0 - Revised
QueryPositionsStatement Method
See Also  Send Feedback
gw_account_id

Account Gateway id, for which the statement is requested

date_

Date, for which the statement is requested. The special value 1 January 3000 00:00:00 UTC must be provided in case a position statement request for a current day

CQGCEL Interface : QueryPositionsStatement Method

Glossary Item Box

Description

Sends an asynchronous query for account positions statement. The query is constructed based on the passed arguments.

Syntax

Visual Basic
Public Sub QueryPositionsStatement( _
   ByVal gw_account_id As Long, _
   ByVal date_ As Date _
) 

Parameters

gw_account_id

Account Gateway id, for which the statement is requested

date_

Date, for which the statement is requested. The special value 1 January 3000 00:00:00 UTC must be provided in case a position statement request for a current day

Remarks

The outcome of the request, as well as any errors, are reported via the PositionsStatementResolved event, which is fired only once per request.

Please, note that every CQGPosition from resolved CQGPositionsStatement will have invalid values in all current price dependent members (MVOOTEProfitLoss and UPL) since this method does not make instrument subscription internally.

Read about CQGAccount's AutoSubscribeInstruments property to see how to request positions with valid MVOOTEProfitLoss and UPL values.

See Also