Contract for breakeven events.
Emitted by breakevenSubject when a signal's stop-loss is moved to breakeven (entry price). Used for tracking risk reduction milestones and monitoring strategy safety.
Events are emitted only once per signal (idempotent - protected by ClientBreakeven state). Breakeven is triggered when price moves far enough in profit direction to cover transaction costs.
Consumers:
symbol: string
Trading pair symbol (e.g., "BTCUSDT"). Identifies which market this breakeven event belongs to.
strategyName: string
Strategy name that generated this signal. Identifies which strategy execution this breakeven event belongs to.
exchangeName: string
Exchange name where this signal is being executed. Identifies which exchange this breakeven event belongs to.
frameName: string
Frame name where this signal is being executed. Identifies which frame this breakeven event belongs to (empty string for live mode).
data: IPublicSignalRow
Complete signal row data with original prices. Contains all signal information including originalPriceStopLoss, originalPriceTakeProfit, and totalExecuted.
currentPrice: number
Current market price at which breakeven was triggered. Used to verify threshold calculation.
backtest: boolean
Execution mode flag.
timestamp: number
Event timestamp in milliseconds since Unix epoch.
Timing semantics: