Visit: http://localhost:3000/api/test-snapshots?limit=10
This will show you:
- All unique timestamps where data was saved
- For each timestamp: which sectors exist and their values
- Sample data for verification
The frontend uses: /api/snapshots?type=sector&start={startTime}&end={endTime}
Example:
http://localhost:3000/api/snapshots?type=sector&start=2026-01-02T07:10:00.000Z&end=2026-01-02T07:20:00.000Z
Replace the timestamps with actual times from Step 1.
- Go to the momentum page:
http://localhost:3000/momentum - Enable replay mode (move the slider)
- Move the slider to different times that you saw in Step 1
- Compare the sector data shown with what the API returned
Open browser DevTools (F12) and check the Console tab for:
[SectorPerformance] Fetching historical data for time: ...- Any errors or warnings
- When you move the slider to time T, it should:
- Query for snapshots in range [T-5min, T+5min]
- Find the closest snapshot to time T for each sector
- Display those sectors with their values
If data is the same at all times:
- Check if multiple timestamps have the same data (from test-snapshots API)
- Check if the API is returning the same snapshots for different time ranges
- Check browser console for any errors
- Verify that timestamps are rounded to 5-minute intervals (12:40, 12:45, etc.)