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`); }, },}); Copy
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`); }, },});
Optional
Optional lifecycle callbacks
End of backtest period (inclusive)
Unique identifier for this frame
Interval for timestamp generation
Optional developer note for documentation
Start of backtest period (inclusive)
Frame schema registered via addFrame(). Defines backtest period and interval for timestamp generation.
Example