Skip to main content
Version: latest

PositionBase

Interface
Types Module: Broker

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