import { EngineSimplePosition } from '../lib/types/position'; import { DepthSummary, PositionDepthState } from './position.types'; /** Return the sum the unrealised profit/loss across all active positions */ export declare function getUnrealisedPnl(activePositions: EngineSimplePosition[]): number; /** Return the */ export declare function getUnrealsedPnlPct(activePositions: EngineSimplePosition[], walletBalance: number): number; export declare function calculateDepthForPosition(asset: string, symbol: string, baseAssetBalance: number, positionAmount: number, entryPrice: number, unrealisedPnl: number, totalNetUnrealisedPnl: number, leverage: number): PositionDepthState; /** * Aggregate total depth use per position */ export declare function calculateDepthForPositions(balanceAvailable: number, symbolLeverageCache: Record, positions: EngineSimplePosition[] | undefined, quoteBalanceAsset?: string): PositionDepthState[]; export declare function calulateDepthSummaryForAllPositions(balance: number, symbolLeverageCache: Record, positions: EngineSimplePosition[] | undefined, quoteBalanceAsset: string | undefined, leverageType: 'cross' | 'isolated'): DepthSummary; export declare function getDepthPercentForAllPositions(positions: EngineSimplePosition[], walletBalance: number, symbolLeverageCache: Record, quoteBalanceAsset?: string): number;