Interface: PositionBase
Charting Library.PositionBase
Describes a single position.
Hierarchy
-
PositionBase↳
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.
exitLevels
Optional
exitLevels: ExitLevel[]
Exit levels associated with the position. Used when BrokerConfigFlags.supportMultipleExitLevels is enabled.
id
id: string
Position ID. Usually id should be equal to brokerSymbol
longQty
Optional
longQty: number
Long position quantity
message
Optional
message: OrderOrPositionMessage
Message describing the state of the position
qty
qty: number
Position Quantity (positive number)
shortQty
Optional
shortQty: number
Short position quantity
side
side: Side
Position Side
symbol
symbol: string
Symbol name
updateTime
Optional
updateTime: number
Last update time (unix timestamp in milliseconds)