Labels: backend, enhancement, predictions
Problem
Users cannot export their prediction history for record-keeping or tax purposes; data is only available through paginated API reads.
Requirements
- Add
GET /predictions/export returning a streamed CSV of the caller's predictions.
- Support date-range filtering.
- Stream results to avoid loading all rows into memory.
- Set correct content-type and attachment headers.
Acceptance Criteria
- The endpoint returns a valid CSV of the user's predictions.
- Date filtering narrows the export correctly.
- Large exports stream without excessive memory use.
- Tests cover header, content, and filter behavior.
Files
backend/src/predictions/predictions.controller.ts, backend/src/predictions/predictions.service.ts, backend/src/predictions/dto
Labels: backend, enhancement, predictions
Problem
Users cannot export their prediction history for record-keeping or tax purposes; data is only available through paginated API reads.
Requirements
GET /predictions/exportreturning a streamed CSV of the caller's predictions.Acceptance Criteria
Files
backend/src/predictions/predictions.controller.ts,backend/src/predictions/predictions.service.ts,backend/src/predictions/dto