interface PriceLineOptions {
    badge?: string;
    closeButton?: boolean;
    color: string;
    cursor?: string;
    dashed: boolean;
    extentFromRight?: number;
    id: string;
    label?: string;
    leftLabel?: string;
    lineWidth: number;
    price: number;
    qty?: string | number;
}

Properties

badge?: string

Solid colored badge segment at the start of the pill group (e.g. 'BUY', 'TP', 'SL').

closeButton?: boolean

Draw a cancel (✕) segment at the end of the pill group; hit-tests as ${id}::close.

color: string
cursor?: string

Cursor hint when hovered (e.g. 'ns-resize' for draggable lines).

dashed: boolean
extentFromRight?: number

Fraction of the plot width the line spans, measured from the right (price) axis. 1 = full width (default); 0.3 = only the rightmost 30%, like a partial-width order line. The right-axis tag is always drawn.

id: string

Stable id returned by hit-test (for click/drag routing).

label?: string

Right-axis tag text. Defaults to the formatted price.

leftLabel?: string

Info text segment (order type, price, P&L ...) — the classic left tag text.

lineWidth: number
price: number
qty?: string | number

Quantity segment rendered as a neutral box after the badge.