'use client' import { useState, useEffect } from 'react' export function TradingTools() { const [activeTool, setActiveTool] = useState<'calculator' | 'alerts' | 'notes' | 'charts' | 'sentiment'>('charts') return (
Powered by TradingView • {symbols.find(s => s.id === symbol)?.label}
Loading...
) : fearGreed ? ({fearGreed.value}
{fearGreed.classification}
Unable to fetch data
)}Loading...
return (Loading...
return (Next: {rate.nextFunding}
Max Risk
${result.riskAmount.toFixed(2)}
Position Size
${result.positionSize.toFixed(2)}
Required Margin
${result.margin.toFixed(2)}
Potential Profit
+${result.potentialProfit.toFixed(2)}
No alerts yet
) : (${alert.price.toLocaleString()}
{alert.time}
No notes yet
) : ({note.content}
{new Date(note.date).toLocaleDateString()} • {new Date(note.date).toLocaleTimeString()}