CQG API 4.0 - Revised
PositionsStatementResolved Event
See Also  Send Feedback
cqg_positions_statement

Reference to the resolved CQGPositionsStatement

cqg_error

CQGError object describing the last error occurred while processing the positions statement request or Nothing/Invalid_Error in case of no error.

CQGCEL.IsValid(Invalid_Error) returns False.

CQGCEL Interface : PositionsStatementResolved Event

Glossary Item Box

Description

This event is fired when the positions statement (CQGPositionsStatement) is resolved or when some error has occurred while processing the positions statement request.

Syntax

Visual Basic
Public Event PositionsStatementResolved( _
   ByVal cqg_positions_statement As CQGPositionsStatement, _
   ByVal cqg_error As CQGError _
)

Parameters

cqg_positions_statement

Reference to the resolved CQGPositionsStatement

cqg_error

CQGError object describing the last error occurred while processing the positions statement request or Nothing/Invalid_Error in case of no error.

CQGCEL.IsValid(Invalid_Error) returns False.

Remarks

Please, note that every CQGPosition from resolved CQGPositionsStatement will have invalid values in all current price dependent members (MVOOTEProfitLoss and UPL) since QueryPositionsStatement 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