import { Broker } from './broker'; export declare class Position { private readonly broker; constructor(broker: Broker); /** * Position size in units of asset. Negative if position is short. */ get size(): number; /** * Profit (positive) or loss (negative) of the current position in cash units. */ get pl(): number; /** * Profit (positive) or loss (negative) of the current position in percent. */ get plPct(): number; /** * True if the position is long (position size is positive). */ get isLong(): boolean; /** * True if the position is short (position size is negative). */ get isShort(): boolean; /** * Close portion of position by closing `portion` of each active trade. */ close(portion?: number): void; }