diff --git a/frontend/app/trades/page.tsx b/frontend/app/trades/page.tsx index 85e84b6..da4be42 100644 --- a/frontend/app/trades/page.tsx +++ b/frontend/app/trades/page.tsx @@ -184,6 +184,14 @@ function FlowAnalysis({ symbol }: { symbol: Symbol }) { const totalDelta = totalBuy - totalSell; const buyPct = totalBuy + totalSell > 0 ? (totalBuy / (totalBuy + totalSell) * 100) : 50; + // 价格轴范围:只显示实际波动区间(±0.3%缓冲) + const prices = chartData.map(d => d.vwap).filter(v => v > 0); + const priceMin = prices.length > 0 ? Math.min(...prices) : 0; + const priceMax = prices.length > 0 ? Math.max(...prices) : 0; + const pricePad = (priceMax - priceMin) * 0.3 || priceMax * 0.001; + const priceYMin = Math.floor(priceMin - pricePad); + const priceYMax = Math.ceil(priceMax + pricePad); + return (