PerformanceContract

Contract for performance tracking events.

Emitted during execution to track performance metrics for various operations. Useful for profiling and identifying bottlenecks.

timestamp: number

Timestamp when the metric was recorded (milliseconds since epoch)

previousTimestamp: number

Timestamp of the previous event (milliseconds since epoch, null for first event)

metricType: PerformanceMetricType

Type of operation being measured

duration: number

Duration of the operation in milliseconds

strategyName: string

Strategy name associated with this metric

exchangeName: string

Exchange name associated with this metric

symbol: string

Trading symbol associated with this metric

backtest: boolean

Whether this metric is from backtest mode (true) or live mode (false)