CQG API 4.0 - Revised
ePositionSubscriptionLevel Enumeration
See Also  Send Feedback

Glossary Item Box

Description

Specifies the update subscription levels for an account's positions.

Members

MemberValueDescription
pslNoPositions0No position information is provided.

This is the default value.

When initially set the CQGAccount.Positions collection remains empty.

If this value is set after some other value, then the CQGAccount.Positions collection will not be emptied, i.e. it will remain in the same state as it was when setting to pslNoPositions.

If the subscription level is changed from lower to higher an AccountChanged event will be fired with actPositionsReloaded type.

pslSnapshot1Positions for the account are obtained and fully refreshed once, but no updates on new trades/new positions are received after that.

To update the collection in this case, the user must set the subscription level to pslNoPositions and back to pslSnapshot.

pslSnapshotAndUpdates2Positions for the account are obtained, fully refreshed and all updates are fired as well, e.g. new trades, new positions, position changes etc.

Note: If you want to get an event on each price change, you also need to set CQGAPIConfig.FireEventOnChangedPrices to True.

Remarks

This is an account specific setting, i.e. each account may have its own position subscription level.