Skip to main content

PositionBase

Interface

Describes a single position.

Properties

avgPrice

The weighted average price of all positions for a symbol. The library uses this value to draw a position line on the chart.

Type

number


id

Position ID. Usually id should be equal to brokerSymbol

Type

string


longQty

Optional

Long position quantity

Type

number


message

Optional

Message describing the state of the position

Type

OrderOrPositionMessage


qty

Position Quantity (positive number)

Type

number


shortQty

Optional

Short position quantity

Type

number


side

Position Side

Type

Side


symbol

Symbol name

Type

string