Contract for partial profit level events.
Emitted by partialProfitSubject when a signal reaches a profit level milestone (10%, 20%, 30%, etc). Used for tracking partial take-profit execution and monitoring strategy performance.
Events are emitted only once per level per signal (Set-based deduplication in ClientPartial). Multiple levels can be emitted in a single tick if price jumps significantly.
Consumers:
symbol: string
Trading pair symbol (e.g., "BTCUSDT"). Identifies which market this profit event belongs to.
data: ISignalRow
Complete signal row data. Contains all signal information: id, position, priceOpen, priceTakeProfit, priceStopLoss, etc.
currentPrice: number
Current market price at which this profit level was reached. Used to calculate actual profit percentage.
level: PartialLevel
Profit level milestone reached (10, 20, 30, 40, 50, 60, 70, 80, 90, or 100). Represents percentage profit relative to entry price.
backtest: boolean
Execution mode flag.
timestamp: number
Event timestamp in milliseconds since Unix epoch.
Timing semantics: