feat: add pip-installable aura-trade-sdk and real TradingView advanced chart
This commit is contained in:
+10
-41
@@ -4,8 +4,7 @@ import React, { useState, useEffect } from "react";
|
||||
import { TitanHeader } from "@/components/header/TitanHeader";
|
||||
import { WatchlistRadar } from "@/components/radar/WatchlistRadar";
|
||||
import { EconomicCalendarDock } from "@/components/macro/EconomicCalendarDock";
|
||||
import { TradingViewCanvas } from "@/components/chart/TradingViewCanvas";
|
||||
import { TimeframeSelector } from "@/components/chart/TimeframeSelector";
|
||||
import { ChartStageContainer } from "@/components/chart/ChartStageContainer";
|
||||
import { CockpitDock } from "@/components/dock/CockpitDock";
|
||||
import { ConfluenceMeter } from "@/components/execution/ConfluenceMeter";
|
||||
import { TitanOrderTerminal } from "@/components/execution/TitanOrderTerminal";
|
||||
@@ -238,45 +237,15 @@ export default function TitanQuantTerminalPage() {
|
||||
|
||||
{/* Center Stage (6 cols on xl): Dual-Pane Chart Stage & Cockpit Dock */}
|
||||
<section className="xl:col-span-6 flex flex-col gap-2.5">
|
||||
{/* Active Chart Navigation & Controls */}
|
||||
<div className="bg-[#070d18] border border-[#14233d] rounded-xl p-2.5 flex items-center justify-between shadow-lg">
|
||||
<div className="flex items-center gap-3">
|
||||
<span className="font-extrabold text-amber-400 text-sm font-mono tracking-wider">
|
||||
{activeSymbol}.PRO
|
||||
</span>
|
||||
<span className="text-[11px] text-gray-400 font-mono hidden sm:inline">
|
||||
Institutional Exness Direct Feed
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-2">
|
||||
<TimeframeSelector
|
||||
activeTimeframe={activeTimeframe}
|
||||
onSelect={(tf) => {
|
||||
soundFX.playClick();
|
||||
setActiveTimeframe(tf);
|
||||
}}
|
||||
/>
|
||||
<button
|
||||
onClick={() => {
|
||||
soundFX.playClick();
|
||||
setShowConnectModal(true);
|
||||
}}
|
||||
className="bg-[#0b172a] hover:bg-[#122240] border border-[#182e52] text-gray-300 text-xs px-2.5 py-1 rounded-md flex items-center gap-1.5 transition font-mono"
|
||||
>
|
||||
<KeyRound className="w-3.5 h-3.5 text-cyan-400" /> Connect MT5
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 60 FPS TradingView Canvas */}
|
||||
<div className="flex-1 bg-[#070d18] border border-[#14233d] rounded-xl overflow-hidden min-h-[380px] shadow-xl">
|
||||
<TradingViewCanvas
|
||||
candles={candles}
|
||||
liveTick={packet?.tick || null}
|
||||
activeFvgs={confluence?.active_fvgs || []}
|
||||
/>
|
||||
</div>
|
||||
<ChartStageContainer
|
||||
symbol={activeSymbol}
|
||||
timeframe={activeTimeframe}
|
||||
onSelectTimeframe={(tf) => setActiveTimeframe(tf)}
|
||||
candles={candles}
|
||||
liveTick={packet?.tick || null}
|
||||
activeFvgs={confluence?.active_fvgs || []}
|
||||
onOpenConnectModal={() => setShowConnectModal(true)}
|
||||
/>
|
||||
|
||||
{/* Lower 4-Tab Analytical Cockpit Dock */}
|
||||
<CockpitDock
|
||||
|
||||
Reference in New Issue
Block a user