Files
trading_bot_v3/app/trading/page.js
mindesbunister 4fe9c1342c Fix chart loading issues and remove sample position data
- Fixed TradingChart data generation to use unique daily timestamps
- Removed sample position data from trading page
- Added better error handling and logging to chart initialization
- Fixed time format issues that were preventing chart rendering
- Added test pages for debugging chart functionality
2025-07-16 12:54:48 +02:00

47 lines
1.5 KiB
JavaScript

'use client'
import React from 'react'
import TradeExecutionPanel from '../../components/TradeExecutionPanel.js'
import PositionsPanel from '../../components/PositionsPanel.js'
import PendingOrdersPanel from '../../components/PendingOrdersPanel.js'
import TradesHistoryPanel from '../../components/TradesHistoryPanel.js'
import TradingChart from '../../components/TradingChart'
export default function TradingPage() {
return (
<div className="space-y-8">
{/* Trading Chart - Full Width */}
<div className="bg-gray-900 rounded-lg p-6">
<div className="flex items-center justify-between mb-4">
<h2 className="text-xl font-semibold text-white">SOL/USDC</h2>
<div className="flex items-center space-x-4 text-sm text-gray-400">
<span>1M</span>
<span>5M</span>
<span className="text-blue-400">15M</span>
<span>1H</span>
<span>4H</span>
<span>1D</span>
</div>
</div>
<TradingChart symbol="SOL/USDC" positions={[]} />
</div>
<div className="grid grid-cols-1 xl:grid-cols-2 gap-8">
<div className="space-y-6">
<TradeExecutionPanel />
</div>
<div className="space-y-6">
{/* Open Positions */}
<PositionsPanel />
{/* Pending Orders */}
<PendingOrdersPanel />
{/* Recent Trades */}
<TradesHistoryPanel />
</div>
</div>
</div>
)
}