Spaces:
Running
Running
Add 2 files
Browse files- README.md +7 -5
- index.html +253 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: trading-agent
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,253 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Multi-Agent Stock Trading System</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.gradient-bg {
|
| 11 |
+
background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
|
| 12 |
+
}
|
| 13 |
+
.card-hover:hover {
|
| 14 |
+
transform: translateY(-5px);
|
| 15 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 16 |
+
}
|
| 17 |
+
.dashboard-grid {
|
| 18 |
+
display: grid;
|
| 19 |
+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
| 20 |
+
gap: 1.5rem;
|
| 21 |
+
}
|
| 22 |
+
.signal-buy {
|
| 23 |
+
background-color: rgba(16, 185, 129, 0.1);
|
| 24 |
+
border-left: 4px solid #10b981;
|
| 25 |
+
}
|
| 26 |
+
.signal-sell {
|
| 27 |
+
background-color: rgba(239, 68, 68, 0.1);
|
| 28 |
+
border-left: 4px solid #ef4444;
|
| 29 |
+
}
|
| 30 |
+
.signal-hold {
|
| 31 |
+
background-color: rgba(59, 130, 246, 0.1);
|
| 32 |
+
border-left: 4px solid #3b82f6;
|
| 33 |
+
}
|
| 34 |
+
.chart-container {
|
| 35 |
+
height: 300px;
|
| 36 |
+
position: relative;
|
| 37 |
+
}
|
| 38 |
+
.risk-indicator {
|
| 39 |
+
transition: all 0.3s ease;
|
| 40 |
+
}
|
| 41 |
+
.risk-indicator:hover {
|
| 42 |
+
transform: scale(1.05);
|
| 43 |
+
}
|
| 44 |
+
.agent-avatar {
|
| 45 |
+
width: 60px;
|
| 46 |
+
height: 60px;
|
| 47 |
+
border-radius: 50%;
|
| 48 |
+
object-fit: cover;
|
| 49 |
+
border: 3px solid white;
|
| 50 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
| 51 |
+
}
|
| 52 |
+
</style>
|
| 53 |
+
</head>
|
| 54 |
+
<body class="bg-gray-50 font-sans">
|
| 55 |
+
<!-- Navigation -->
|
| 56 |
+
<nav class="gradient-bg text-white shadow-lg">
|
| 57 |
+
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
| 58 |
+
<div class="flex items-center space-x-2">
|
| 59 |
+
<i class="fas fa-robot text-2xl"></i>
|
| 60 |
+
<span class="text-xl font-bold">AlphaTrade AI</span>
|
| 61 |
+
</div>
|
| 62 |
+
<div class="hidden md:flex space-x-6">
|
| 63 |
+
<a href="#" class="hover:text-blue-200 transition">Dashboard</a>
|
| 64 |
+
<a href="#" class="hover:text-blue-200 transition">Agents</a>
|
| 65 |
+
<a href="#" class="hover:text-blue-200 transition">Portfolio</a>
|
| 66 |
+
<a href="#" class="hover:text-blue-200 transition">Analytics</a>
|
| 67 |
+
<a href="#" class="hover:text-blue-200 transition">Settings</a>
|
| 68 |
+
</div>
|
| 69 |
+
<div class="flex items-center space-x-4">
|
| 70 |
+
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg transition">
|
| 71 |
+
<i class="fas fa-play mr-2"></i>Start System
|
| 72 |
+
</button>
|
| 73 |
+
<button class="md:hidden">
|
| 74 |
+
<i class="fas fa-bars text-xl"></i>
|
| 75 |
+
</button>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
</nav>
|
| 79 |
+
|
| 80 |
+
<!-- Main Content -->
|
| 81 |
+
<div class="container mx-auto px-4 py-8">
|
| 82 |
+
<!-- System Status -->
|
| 83 |
+
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
|
| 84 |
+
<div class="flex justify-between items-center mb-6">
|
| 85 |
+
<h2 class="text-2xl font-bold text-gray-800">System Overview</h2>
|
| 86 |
+
<div class="flex space-x-4">
|
| 87 |
+
<div class="flex items-center">
|
| 88 |
+
<span class="w-3 h-3 rounded-full bg-green-500 mr-2"></span>
|
| 89 |
+
<span class="text-sm text-gray-600">Running</span>
|
| 90 |
+
</div>
|
| 91 |
+
<div class="flex items-center">
|
| 92 |
+
<span class="text-sm text-gray-600">Mode:</span>
|
| 93 |
+
<select class="ml-2 bg-gray-100 rounded px-2 py-1 text-sm">
|
| 94 |
+
<option>Long-term</option>
|
| 95 |
+
<option>Short-term</option>
|
| 96 |
+
</select>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
|
| 101 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-6">
|
| 102 |
+
<!-- Performance Card -->
|
| 103 |
+
<div class="bg-blue-50 rounded-lg p-4 flex items-center">
|
| 104 |
+
<div class="bg-blue-100 p-3 rounded-full mr-4">
|
| 105 |
+
<i class="fas fa-chart-line text-blue-600 text-xl"></i>
|
| 106 |
+
</div>
|
| 107 |
+
<div>
|
| 108 |
+
<p class="text-sm text-gray-500">Portfolio Return</p>
|
| 109 |
+
<p class="text-2xl font-bold text-blue-600">+12.4%</p>
|
| 110 |
+
<p class="text-xs text-gray-500">YTD</p>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
|
| 114 |
+
<!-- Risk Card -->
|
| 115 |
+
<div class="bg-red-50 rounded-lg p-4 flex items-center">
|
| 116 |
+
<div class="bg-red-100 p-3 rounded-full mr-4">
|
| 117 |
+
<i class="fas fa-shield-alt text-red-600 text-xl"></i>
|
| 118 |
+
</div>
|
| 119 |
+
<div>
|
| 120 |
+
<p class="text-sm text-gray-500">Risk Level</p>
|
| 121 |
+
<p class="text-2xl font-bold text-red-600">Medium</p>
|
| 122 |
+
<p class="text-xs text-gray-500">Sharpe: 1.2</p>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
|
| 126 |
+
<!-- Capital Card -->
|
| 127 |
+
<div class="bg-green-50 rounded-lg p-4 flex items-center">
|
| 128 |
+
<div class="bg-green-100 p-3 rounded-full mr-4">
|
| 129 |
+
<i class="fas fa-wallet text-green-600 text-xl"></i>
|
| 130 |
+
</div>
|
| 131 |
+
<div>
|
| 132 |
+
<p class="text-sm text-gray-500">Total Capital</p>
|
| 133 |
+
<p class="text-2xl font-bold text-green-600">$1,245,000</p>
|
| 134 |
+
<p class="text-xs text-gray-500">+$24,500 today</p>
|
| 135 |
+
</div>
|
| 136 |
+
</div>
|
| 137 |
+
|
| 138 |
+
<!-- Transactions Card -->
|
| 139 |
+
<div class="bg-purple-50 rounded-lg p-4 flex items-center">
|
| 140 |
+
<div class="bg-purple-100 p-3 rounded-full mr-4">
|
| 141 |
+
<i class="fas fa-exchange-alt text-purple-600 text-xl"></i>
|
| 142 |
+
</div>
|
| 143 |
+
<div>
|
| 144 |
+
<p class="text-sm text-gray-500">Today's Trades</p>
|
| 145 |
+
<p class="text-2xl font-bold text-purple-600">14</p>
|
| 146 |
+
<p class="text-xs text-gray-500">8 buys, 6 sells</p>
|
| 147 |
+
</div>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
</div>
|
| 151 |
+
|
| 152 |
+
<!-- Agent Dashboard -->
|
| 153 |
+
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
|
| 154 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-6">Agent Dashboard</h2>
|
| 155 |
+
|
| 156 |
+
<div class="flex mb-6 space-x-4 overflow-x-auto pb-2">
|
| 157 |
+
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg">All Agents</button>
|
| 158 |
+
<button class="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg transition">Analysts</button>
|
| 159 |
+
<button class="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg transition">Manager</button>
|
| 160 |
+
<button class="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg transition">Trader</button>
|
| 161 |
+
<button class="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg transition">Risk</button>
|
| 162 |
+
</div>
|
| 163 |
+
|
| 164 |
+
<div class="dashboard-grid">
|
| 165 |
+
<!-- Warren Buffet Agent -->
|
| 166 |
+
<div class="bg-white rounded-xl shadow-md p-6 transition duration-300 card-hover">
|
| 167 |
+
<div class="flex items-center mb-4">
|
| 168 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/d/d3/Warren_Buffett_at_the_2015_SelectUSA_Investment_Summit.jpg" class="agent-avatar">
|
| 169 |
+
<div class="ml-4">
|
| 170 |
+
<h3 class="font-bold text-lg">Warren Buffet</h3>
|
| 171 |
+
<p class="text-sm text-gray-500">Value Investing</p>
|
| 172 |
+
</div>
|
| 173 |
+
</div>
|
| 174 |
+
<div class="mb-4">
|
| 175 |
+
<div class="flex justify-between text-sm mb-1">
|
| 176 |
+
<span class="text-gray-500">Accuracy</span>
|
| 177 |
+
<span class="font-bold">78%</span>
|
| 178 |
+
</div>
|
| 179 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 180 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: 78%"></div>
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
<div class="mb-4">
|
| 184 |
+
<p class="text-sm text-gray-600 mb-2">Current Signals:</p>
|
| 185 |
+
<div class="space-y-2">
|
| 186 |
+
<div class="signal-buy p-2 rounded">
|
| 187 |
+
<div class="flex justify-between">
|
| 188 |
+
<span class="font-medium">AAPL</span>
|
| 189 |
+
<span class="text-green-600 font-bold">BUY</span>
|
| 190 |
+
</div>
|
| 191 |
+
<p class="text-xs text-gray-500">P/E: 24.5, P/B: 1.2</p>
|
| 192 |
+
</div>
|
| 193 |
+
<div class="signal-hold p-2 rounded">
|
| 194 |
+
<div class="flex justify-between">
|
| 195 |
+
<span class="font-medium">MSFT</span>
|
| 196 |
+
<span class="text-blue-600 font-bold">HOLD</span>
|
| 197 |
+
</div>
|
| 198 |
+
<p class="text-xs text-gray-500">P/E: 32.1, P/B: 1.8</p>
|
| 199 |
+
</div>
|
| 200 |
+
</div>
|
| 201 |
+
</div>
|
| 202 |
+
<button class="w-full bg-blue-50 hover:bg-blue-100 text-blue-600 py-2 rounded-lg transition">
|
| 203 |
+
View Details
|
| 204 |
+
</button>
|
| 205 |
+
</div>
|
| 206 |
+
|
| 207 |
+
<!-- Charlie Munger Agent -->
|
| 208 |
+
<div class="bg-white rounded-xl shadow-md p-6 transition duration-300 card-hover">
|
| 209 |
+
<div class="flex items-center mb-4">
|
| 210 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/5/5b/Charlie_Munger_at_Berkshire_Hathaway.jpg" class="agent-avatar">
|
| 211 |
+
<div class="ml-4">
|
| 212 |
+
<h3 class="font-bold text-lg">Charlie Munger</h3>
|
| 213 |
+
<p class="text-sm text-gray-500">Quality Investing</p>
|
| 214 |
+
</div>
|
| 215 |
+
</div>
|
| 216 |
+
<div class="mb-4">
|
| 217 |
+
<div class="flex justify-between text-sm mb-1">
|
| 218 |
+
<span class="text-gray-500">Accuracy</span>
|
| 219 |
+
<span class="font-bold">82%</span>
|
| 220 |
+
</div>
|
| 221 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 222 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: 82%"></div>
|
| 223 |
+
</div>
|
| 224 |
+
</div>
|
| 225 |
+
<div class="mb-4">
|
| 226 |
+
<p class="text-sm text-gray-600 mb-2">Current Signals:</p>
|
| 227 |
+
<div class="space-y-2">
|
| 228 |
+
<div class="signal-buy p-2 rounded">
|
| 229 |
+
<div class="flex justify-between">
|
| 230 |
+
<span class="font-medium">GOOGL</span>
|
| 231 |
+
<span class="text-green-600 font-bold">BUY</span>
|
| 232 |
+
</div>
|
| 233 |
+
<p class="text-xs text-gray-500">ROE: 18%, D/E: 0.2</p>
|
| 234 |
+
</div>
|
| 235 |
+
<div class="signal-sell p-2 rounded">
|
| 236 |
+
<div class="flex justify-between">
|
| 237 |
+
<span class="font-medium">TSLA</span>
|
| 238 |
+
<span class="text-red-600 font-bold">SELL</span>
|
| 239 |
+
</div>
|
| 240 |
+
<p class="text-xs text-gray-500">ROE: 8%, D/E: 0.4</p>
|
| 241 |
+
</div>
|
| 242 |
+
</div>
|
| 243 |
+
</div>
|
| 244 |
+
<button class="w-full bg-blue-50 hover:bg-blue-100 text-blue-600 py-2 rounded-lg transition">
|
| 245 |
+
View Details
|
| 246 |
+
</button>
|
| 247 |
+
</div>
|
| 248 |
+
|
| 249 |
+
<!-- Manager Agent -->
|
| 250 |
+
<div class="bg-white rounded-xl shadow-md p-6 transition duration-300 card-hover">
|
| 251 |
+
<div class="flex items-center mb-4">
|
| 252 |
+
<div class
|
| 253 |
+
</html>
|