-
Notifications
You must be signed in to change notification settings - Fork 202
Open
Labels
Description
Problem
"Get price data on past 24 hours" — backend works but results dump as plain text. Two gaps:
tk ticket: sa-lurv
- No UI component — every other market data tool has a
*UI.tsxcard, butgetHistoricalPricesdoes not - Default dataPoints=2 is too sparse — returns just start/end values instead of a meaningful time series for 24h
Fix
- Create
HistoricalPricesUI.tsxwith a price chart (sparkline or line chart). Will need a lightweight chart library (recharts, lightweight-charts) or custom SVG sparkline — no chart library exists in the project yet. - Increase default dataPoints for short ranges (≤7 days → 24 points for hourly resolution)
- Update system prompt to guide LLM to request more data points for recent ranges
Key Files
apps/agentic-server/src/tools/getHistoricalPrices.tsapps/agentic-server/src/lib/asset/coingecko/api.tsapps/agentic-chat/src/components/tools/(new UI component)
Acceptance Criteria
- HistoricalPricesUI renders visual price chart for returned data points
- 24h queries return enough data points for meaningful chart
- Percent change and start/end prices clearly displayed
- Multiple assets render comparison view
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog