Interface IFrameSchema

Frame schema registered via addFrame(). Defines backtest period and interval for timestamp generation.

addFrame({
frameName: "1d-backtest",
interval: "1m",
startDate: new Date("2024-01-01T00:00:00Z"),
endDate: new Date("2024-01-02T00:00:00Z"),
callbacks: {
onTimeframe: (timeframe, startDate, endDate, interval) => {
console.log(`Generated ${timeframe.length} timestamps`);
},
},
});
interface IFrameSchema {
    callbacks?: Partial<IFrameCallbacks>;
    endDate: Date;
    frameName: string;
    interval: FrameInterval;
    note?: string;
    startDate: Date;
}

Properties

callbacks?: Partial<IFrameCallbacks>

Optional lifecycle callbacks

endDate: Date

End of backtest period (inclusive)

frameName: string

Unique identifier for this frame

interval: FrameInterval

Interval for timestamp generation

note?: string

Optional developer note for documentation

startDate: Date

Start of backtest period (inclusive)