File size: 22,496 Bytes
8c3faf3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Binance Auto-Trading Bot</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.gradient-bg {
background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}
.tradingview-widget-container {
height: 100%;
width: 100%;
border-radius: 0.5rem;
overflow: hidden;
}
.strategy-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.blink {
animation: blink-animation 1s steps(5, start) infinite;
}
@keyframes blink-animation {
to {
visibility: hidden;
}
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<div class="min-h-screen flex flex-col">
<!-- Header -->
<header class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fab fa-btc text-2xl text-yellow-400"></i>
<h1 class="text-xl font-bold">Binance Auto-Trader</h1>
</div>
<div class="flex items-center space-x-4">
<div class="flex items-center space-x-2 bg-blue-800 px-3 py-1 rounded-full">
<span class="h-2 w-2 bg-green-400 rounded-full blink"></span>
<span class="text-sm">Connected</span>
</div>
<button class="bg-yellow-500 hover:bg-yellow-600 text-black px-4 py-2 rounded-lg font-medium transition">
<i class="fas fa-sign-in-alt mr-2"></i>Connect API
</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-grow container mx-auto px-4 py-6">
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
<!-- Left Sidebar -->
<div class="lg:col-span-1 space-y-6">
<!-- Bot Control Panel -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-lg font-semibold mb-4 flex items-center">
<i class="fas fa-robot text-blue-600 mr-2"></i> Bot Control
</h2>
<div class="space-y-4">
<div class="flex justify-between items-center">
<span class="font-medium">Status:</span>
<span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-sm">Running</span>
</div>
<div class="flex justify-between items-center">
<span class="font-medium">Trades Today:</span>
<span class="font-bold">24</span>
</div>
<div class="flex justify-between items-center">
<span class="font-medium">Avg. Profit:</span>
<span class="font-bold text-green-600">+0.85%</span>
</div>
<div class="pt-4 border-t border-gray-200">
<button class="w-full bg-red-500 hover:bg-red-600 text-white py-2 rounded-lg font-medium transition flex items-center justify-center">
<i class="fas fa-power-off mr-2"></i> Stop Bot
</button>
</div>
</div>
</div>
<!-- Strategy Configuration -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-lg font-semibold mb-4 flex items-center">
<i class="fas fa-chess-knight text-purple-600 mr-2"></i> Strategy
</h2>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Base Strategy</label>
<select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500">
<option selected>EMA + RSI Cross</option>
<option>Bollinger Bands</option>
<option>MACD Crossover</option>
<option>Mean Reversion</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Trade Size (USDC)</label>
<input type="number" value="0.5" step="0.1" min="0.1" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Time Frames</label>
<div class="grid grid-cols-3 gap-2">
<div class="flex items-center">
<input id="15m" type="checkbox" checked class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
<label for="15m" class="ml-2 text-sm">15m</label>
</div>
<div class="flex items-center">
<input id="30m" type="checkbox" checked class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
<label for="30m" class="ml-2 text-sm">30m</label>
</div>
<div class="flex items-center">
<input id="1h" type="checkbox" checked class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
<label for="1h" class="ml-2 text-sm">1h</label>
</div>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Pairs (USDC)</label>
<div class="space-y-2">
<div class="flex items-center">
<input id="doge" type="checkbox" checked class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
<label for="doge" class="ml-2 text-sm">DOGE/USDC</label>
</div>
<div class="flex items-center">
<input id="shib" type="checkbox" checked class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
<label for="shib" class="ml-2 text-sm">SHIB/USDC</label>
</div>
<div class="flex items-center">
<input id="xrp" type="checkbox" checked class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
<label for="xrp" class="ml-2 text-sm">XRP/USDC</label>
</div>
</div>
</div>
<div class="pt-4 border-t border-gray-200">
<button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-lg font-medium transition">
<i class="fas fa-save mr-2"></i> Save Settings
</button>
</div>
</div>
</div>
</div>
<!-- Main Dashboard -->
<div class="lg:col-span-3 space-y-6">
<!-- Performance Metrics -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">24h Profit</p>
<p class="text-2xl font-bold text-green-600">+$12.45</p>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-chart-line text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Win Rate</p>
<p class="text-2xl font-bold text-blue-600">72.5%</p>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-trophy text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Avg. Trade Time</p>
<p class="text-2xl font-bold text-purple-600">27m</p>
</div>
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-clock text-xl"></i>
</div>
</div>
</div>
</div>
<!-- Trading View Chart -->
<div class="bg-white rounded-xl shadow-md p-6 h-96">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold flex items-center">
<i class="fas fa-chart-candlestick text-yellow-500 mr-2"></i> DOGE/USDC (15m)
</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-gray-100 rounded-lg text-sm">15m</button>
<button class="px-3 py-1 bg-blue-600 text-white rounded-lg text-sm">30m</button>
<button class="px-3 py-1 bg-gray-100 rounded-lg text-sm">1h</button>
</div>
</div>
<div class="tradingview-widget-container">
<!-- This would be replaced with actual TradingView widget in production -->
<div class="bg-gray-200 h-full w-full flex items-center justify-center text-gray-500">
<div class="text-center">
<i class="fas fa-chart-line text-4xl mb-2"></i>
<p>TradingView Chart</p>
</div>
</div>
</div>
</div>
<!-- Recent Trades -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-lg font-semibold mb-4 flex items-center">
<i class="fas fa-exchange-alt text-green-600 mr-2"></i> Recent Trades
</h2>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Pair</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Price</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Profit</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Time</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">DOGE/USDC</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">
<span class="px-2 py-1 bg-green-100 text-green-800 rounded-full">Buy</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">$0.1234</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">0.5 USDC</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-bold text-green-600">+$0.42</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 min ago</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">SHIB/USDC</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">
<span class="px-2 py-1 bg-red-100 text-red-800 rounded-full">Sell</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">$0.000023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">0.5 USDC</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-bold text-green-600">+$0.31</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15 min ago</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">XRP/USDC</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">
<span class="px-2 py-1 bg-green-100 text-green-800 rounded-full">Buy</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">$0.5678</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">0.5 USDC</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-bold text-red-600">-$0.12</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">32 min ago</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">DOGE/USDC</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">
<span class="px-2 py-1 bg-red-100 text-red-800 rounded-full">Sell</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">$0.1256</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">0.5 USDC</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-bold text-green-600">+$0.56</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1h ago</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="gradient-bg text-white py-6">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<h2 class="text-lg font-bold flex items-center">
<i class="fab fa-btc text-yellow-400 mr-2"></i> Binance Auto-Trader
</h2>
<p class="text-sm opacity-75">24/7 Automated Trading Solution</p>
</div>
<div class="flex space-x-6">
<a href="#" class="hover:text-yellow-300 transition"><i class="fab fa-github"></i></a>
<a href="#" class="hover:text-yellow-300 transition"><i class="fab fa-twitter"></i></a>
<a href="#" class="hover:text-yellow-300 transition"><i class="fab fa-telegram"></i></a>
<a href="#" class="hover:text-yellow-300 transition"><i class="fas fa-envelope"></i></a>
</div>
</div>
<div class="mt-6 pt-6 border-t border-blue-800 text-center text-sm opacity-75">
<p>This is a demo interface. Trading cryptocurrencies involves risk. Past performance is not indicative of future results.</p>
</div>
</div>
</footer>
</div>
<script>
// Simple JavaScript for UI interactions
document.addEventListener('DOMContentLoaded', function() {
// Time frame buttons
const timeButtons = document.querySelectorAll('.tradingview-widget-container ~ div button');
timeButtons.forEach(button => {
button.addEventListener('click', function() {
timeButtons.forEach(btn => {
btn.classList.remove('bg-blue-600', 'text-white');
btn.classList.add('bg-gray-100');
});
this.classList.add('bg-blue-600', 'text-white');
this.classList.remove('bg-gray-100');
// In a real app, this would update the chart timeframe
console.log(`Switched to ${this.textContent} timeframe`);
});
});
// Connect API button
const connectBtn = document.querySelector('header button');
connectBtn.addEventListener('click', function() {
alert('This would connect to Binance API in a real application');
});
// Stop Bot button
const stopBotBtn = document.querySelector('.bg-red-500');
stopBotBtn.addEventListener('click', function() {
const isRunning = this.textContent.includes('Stop');
if (isRunning) {
this.innerHTML = '<i class="fas fa-play mr-2"></i> Start Bot';
this.classList.remove('bg-red-500', 'hover:bg-red-600');
this.classList.add('bg-green-500', 'hover:bg-green-600');
alert('Bot stopped. All open positions will be closed.');
} else {
this.innerHTML = '<i class="fas fa-power-off mr-2"></i> Stop Bot';
this.classList.remove('bg-green-500', 'hover:bg-green-600');
this.classList.add('bg-red-500', 'hover:bg-red-600');
alert('Bot started with current settings.');
}
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Filimon1/mu" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |