Interface PartialStatistics

Statistical data calculated from partial profit/loss events.

Provides metrics for partial profit/loss milestone tracking.

const stats = await Partial.getData("my-strategy");

console.log(`Total events: ${stats.totalEvents}`);
console.log(`Profit events: ${stats.totalProfit}`);
console.log(`Loss events: ${stats.totalLoss}`);
interface PartialStatistics {
    eventList: PartialEvent[];
    totalEvents: number;
    totalLoss: number;
    totalProfit: number;
}

Properties

eventList: PartialEvent[]

Array of all profit/loss events with full details

totalEvents: number

Total number of all events (includes profit, loss)

totalLoss: number

Total number of loss events

totalProfit: number

Total number of profit events