Skip to main content

Interface: Position

Charting Library.Position

Describes a single position.

Hierarchy

Properties

avgPrice

avgPrice: number

Average price

Inherited from

PositionBase.avgPrice


id

id: string

Position ID. Usually id should be equal to brokerSymbol

Inherited from

PositionBase.id


longQty

Optional longQty: number

Long position quantity

Inherited from

PositionBase.longQty


message

Optional message: OrderOrPositionMessage

Message describing the state of the position

Inherited from

PositionBase.message


qty

qty: number

Position Quantity (positive number)

Inherited from

PositionBase.qty


shortQty

Optional shortQty: number

Short position quantity

Inherited from

PositionBase.shortQty


side

side: Side

Position Side

Inherited from

PositionBase.side


symbol

symbol: string

Symbol name

Inherited from

PositionBase.symbol