Backtest Candles: Separate Download Action
Summary
Added a dedicated candles export/download action as a separate button from full backtest export JSON.
This is now available in both:
- Completed Backtest card in chat conversations.
- Backtest Detail page (header actions + Export tab).
Frontend Changes
API client
- Added
downloadBacktestCandlesExport(id)in:services/frontend/src/lib/api-client/index.ts
- It fetches
/api/backtests/:id/candlesand downloads as:backtest-{id}-candles.json
Conversation Backtest card
- Added optional callback in chat UI props and wired button:
Download Candles
- File:
packages/chat-ui/src/StreamingChatPanel.tsx
Bot detail chat integration
- Wired chat UI callback to API helper:
onBacktestCandlesExport={downloadBacktestCandlesExport}
- File:
services/frontend/src/routes/bots/BotDetailPage.tsx
Backtest detail page
- Added separate candles button in:
- Running header actions
- Failed header actions
- Completed header actions
- Export tab card (
Download Candles JSON)
- File:
services/frontend/src/routes/backtests/BacktestDetailPage.tsx
Validation
pnpm typecheckpassed.pnpm lintpassed with pre-existing warnings only.
Deployments
- Dev Pages:
https://e8d6c78c.quantago-dev-app.pages.dev - Production Pages:
https://a63fb3b6.quantago-app.pages.dev