Interface: Position
Charting Library.Position
Describes a single position.
Hierarchy
-
↳
Position
Properties
avgPrice
avgPrice: number
The weighted average price of all positions for a symbol. The library uses this value to draw a position line on the chart and to calculate profit and loss values.
Inherited from
exitLevels
Optional
exitLevels: ExitLevel[]
Exit levels associated with the position. Used when BrokerConfigFlags.supportMultipleExitLevels is enabled.
Inherited from
id
id: string
Position ID. Usually id should be equal to brokerSymbol
Inherited from
longQty
Optional
longQty: number
Long position quantity
Inherited from
message
Optional
message: OrderOrPositionMessage
Message describing the state of the position
Inherited from
qty
qty: number
Position Quantity (positive number)
Inherited from
shortQty
Optional
shortQty: number
Short position quantity
Inherited from
side
side: Side
Position Side
Inherited from
symbol
symbol: string
Symbol name
Inherited from
updateTime
Optional
updateTime: number
Last update time (unix timestamp in milliseconds)