Interface BuySellButtonsOptions

interface BuySellButtonsOptions {
    buyColor?: string;
    buyLabel?: string;
    id?: string;
    margin?: number | { x: number; y: number };
    position?: WatermarkPosition;
    qty?: string | number;
    sellColor?: string;
    sellLabel?: string;
    showPrices?: boolean;
}

Properties

buyColor?: string

Buy button color (defaults to the theme buy).

buyLabel?: string

Button labels. Default BUY / SELL.

id?: string

Stable id prefix; hit-tests emit ${id}:sell / ${id}:buy / ${id}:qty. Default trade.

margin?: number | { x: number; y: number }

Gap from the plot edges in media px. A number applies to both axes; pass { x, y } to offset independently (e.g. clear an OHLC legend at the top).

Corner to dock to. Default top-left.

qty?: string | number

Quantity shown in the centre chip (e.g. lots or absolute qty).

sellColor?: string

Sell button color (defaults to the theme sell).

sellLabel?: string
showPrices?: boolean

Show the price line above each label. Default true.