This event is fired when the positions statement (CQGPositionsStatement) is resolved or when some error has occurred while processing the positions statement request.
Visual Basic |
---|
Public Event PositionsStatementResolved( _ ByVal cqg_positions_statement As CQGPositionsStatement, _ ByVal cqg_error As CQGError _ ) |
- 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.
Please, note that every CQGPosition from resolved CQGPositionsStatement will have invalid values in all current price dependent members (MVO, OTE, ProfitLoss and UPL) since QueryPositionsStatement does not make instrument subscription internally.
Read about CQGAccount's AutoSubscribeInstruments property to see how to request positions with valid MVO, OTE, ProfitLoss and UPL values.