Returns the position's side, basing on its open trades.
Read-only property
Visual Basic |
---|
Public Property Side As eOrderSide |
The position's side represented as eOrderSide.
Depending on UseOrderSide setting of CQG API Configuration the side can be undefined.
If UseOrderSide is set to True, the property value is osdBuy in case of long position and osdSell in case of short one.
If UseOrderSide is set to False, the property value is osdUndefined and the side is reflected by position's quantity sign.
See the usage of CQGPosition properties in the AccountChanged event's example section.