Add TradingView charts, sentiment, funding rates to Tools

This commit is contained in:
root
2026-02-23 17:59:26 +00:00
parent 925245fd10
commit 13112a9cee
2 changed files with 227 additions and 77 deletions
+1 -16
View File
@@ -4,7 +4,7 @@ import { useState, useEffect } from 'react'
import { TradingChart } from './TradingChart'
import { TradingTools } from './TradingTools'
type TradingTab = 'research' | 'strategies' | 'execution' | 'journal' | 'whaletrades' | 'tools'
type TradingTab = 'research' | 'strategies' | 'execution' | 'journal' | 'tools'
interface Trader {
id: string
@@ -274,7 +274,6 @@ export function TradingPanel() {
{ id: 'strategies', label: '🎯 Strategies', count: traders.filter(t => t.status === 'active').length },
{ id: 'execution', label: '⚡ Execution', count: trades.filter(t => t.status === 'open').length },
{ id: 'journal', label: '📔 Journal', count: trades.length },
{ id: 'whaletrades', label: '🐋 WhaleTrades', count: 0 },
{ id: 'tools', label: '🧮 Tools', count: 3 },
]
@@ -560,20 +559,6 @@ export function TradingPanel() {
</div>
)}
{/* WhaleTrades Tab */}
{activeTab === 'whaletrades' && (
<div className="border border-white/20 rounded-lg p-4 bg-white/5">
<h3 className="text-lg font-bold mb-4">🐋 WhaleTrades Tools</h3>
<p className="text-white/60 mb-4">Professional trading tools embedded from WhaleTrades.io</p>
<iframe
src="https://whaletrades.io/"
className="w-full h-[600px] rounded-lg border border-white/10"
title="WhaleTrades"
/>
</div>
)}
{/* Tools Tab */}
{activeTab === 'tools' && (
<TradingTools />