Sends an asynchronous query for account positions statement. The query is constructed based on the passed arguments.
Visual Basic |
---|
Public Sub QueryPositionsStatement( _ ByVal gw_account_id As Long, _ ByVal date_ As Date _ ) |
- 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
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 (MVO, OTE, ProfitLoss 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 MVO, OTE, ProfitLoss and UPL values.