Positions Class
Represents a collection of Position objects that access market position
information for specified symbols, position types, and accounts when using
an PositionsProvider component.
The Updated event is called whenever a change occurs in the referenced
data.
Namespace: tsdata.trading
Additional
properties, methods, and events are described in the classes listed
under Inheritance Hierarchy (see below).
|
Name |
Type |
Description |
|
Count |
int |
Gets the
total number of positions in the current Positions collection. |
|
Position[index] |
object |
Gets the
Position object associated
with the specified index. |
|
Position[symbol,account] |
object |
Gets the
Position object based
on the specified symbol and account. |
|
Position[positionID] |
object |
Gets the
Position object based
on the specified positionID string. |
|
TryPosition[symbol,account] |
object |
Gets the
Position object, if present, based
on the specified symbol and account, otherwise return a null. |
|
TryPosition[positionID] |
object |
Gets the
Position object, if present, based
on the specified positionID string, otherwise return a null. |
|
Name |
Description |
|
Contains(pos) |
True if the specified position is contained in the
collection, otherwise False. |
|
Name |
Description |
 |
Updated |
Occurs whenever any Position in the collection is
updated. See PositionUpdatedEventArgs
for the properties returned by the handler's args parameter. |