Interface RiskStatisticsModel

Statistical data calculated from risk rejection events.

Provides metrics for risk management tracking.

const stats = await Risk.getData("BTCUSDT", "my-strategy");

console.log(`Total rejections: ${stats.totalRejections}`);
console.log(`Rejections by symbol:`, stats.bySymbol);
interface RiskStatisticsModel {
    byStrategy: Record<string, number>;
    bySymbol: Record<string, number>;
    eventList: RiskEvent[];
    totalRejections: number;
}

Properties

byStrategy: Record<string, number>

Rejections grouped by strategy

bySymbol: Record<string, number>

Rejections grouped by symbol

eventList: RiskEvent[]

Array of all risk rejection events with full details

totalRejections: number

Total number of risk rejections