supper-time / index.html
Jayteer's picture
Add 3 files
e62a874 verified
Raw History Blame Contribute Delete
30.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forex Tracker 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, #1e3c72 0%, #2a5298 100%);
}
.price-up {
color: #10b981;
}
.price-down {
color: #ef4444;
}
.chart-container {
height: 300px;
}
.blink {
animation: blink-animation 1s steps(5, start) infinite;
}
@keyframes blink-animation {
to {
visibility: hidden;
}
}
.tradingview-widget-container {
height: 100%;
width: 100%;
}
</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">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-chart-line text-2xl"></i>
<h1 class="text-2xl font-bold">Forex Tracker Bot</h1>
</div>
<div class="flex items-center space-x-4">
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg flex items-center">
<i class="fas fa-user-circle mr-2"></i>
Login
</button>
<button class="bg-green-600 hover:bg-green-700 px-4 py-2 rounded-lg flex items-center">
<i class="fas fa-sign-in-alt mr-2"></i>
Sign Up
</button>
</div>
</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">
<!-- Currency Pairs -->
<div class="bg-white rounded-xl shadow-md p-4">
<h2 class="text-lg font-semibold mb-4 flex items-center">
<i class="fas fa-list-ul mr-2 text-blue-600"></i>
Tracked Pairs
</h2>
<div class="space-y-2">
<div class="flex justify-between items-center p-2 hover:bg-gray-50 rounded cursor-pointer">
<div>
<span class="font-medium">EUR/USD</span>
<span class="text-xs text-gray-500 ml-1">Euro/US Dollar</span>
</div>
<div class="text-right">
<div class="font-medium">1.0987</div>
<div class="text-xs price-up">+0.12% <i class="fas fa-caret-up"></i></div>
</div>
</div>
<div class="flex justify-between items-center p-2 hover:bg-gray-50 rounded cursor-pointer">
<div>
<span class="font-medium">GBP/USD</span>
<span class="text-xs text-gray-500 ml-1">Pound/US Dollar</span>
</div>
<div class="text-right">
<div class="font-medium">1.2789</div>
<div class="text-xs price-down">-0.05% <i class="fas fa-caret-down"></i></div>
</div>
</div>
<div class="flex justify-between items-center p-2 hover:bg-gray-50 rounded cursor-pointer">
<div>
<span class="font-medium">USD/JPY</span>
<span class="text-xs text-gray-500 ml-1">US Dollar/Yen</span>
</div>
<div class="text-right">
<div class="font-medium">143.56</div>
<div class="text-xs price-up">+0.23% <i class="fas fa-caret-up"></i></div>
</div>
</div>
<div class="flex justify-between items-center p-2 hover:bg-gray-50 rounded cursor-pointer">
<div>
<span class="font-medium">AUD/USD</span>
<span class="text-xs text-gray-500 ml-1">Aussie/US Dollar</span>
</div>
<div class="text-right">
<div class="font-medium">0.6723</div>
<div class="text-xs price-up">+0.18% <i class="fas fa-caret-up"></i></div>
</div>
</div>
<div class="flex justify-between items-center p-2 hover:bg-gray-50 rounded cursor-pointer">
<div>
<span class="font-medium">USD/CAD</span>
<span class="text-xs text-gray-500 ml-1">US Dollar/CAD</span>
</div>
<div class="text-right">
<div class="font-medium">1.3245</div>
<div class="text-xs price-down">-0.09% <i class="fas fa-caret-down"></i></div>
</div>
</div>
</div>
<div class="mt-4">
<button class="w-full bg-blue-100 text-blue-600 hover:bg-blue-200 px-4 py-2 rounded-lg flex items-center justify-center">
<i class="fas fa-plus mr-2"></i>
Add Currency Pair
</button>
</div>
</div>
<!-- Alerts -->
<div class="bg-white rounded-xl shadow-md p-4">
<h2 class="text-lg font-semibold mb-4 flex items-center">
<i class="fas fa-bell mr-2 text-yellow-600"></i>
Price Alerts
</h2>
<div class="space-y-3">
<div class="flex justify-between items-center p-2 bg-yellow-50 rounded">
<div>
<span class="font-medium">EUR/USD</span>
<span class="text-xs text-gray-500">Above 1.1000</span>
</div>
<div class="flex space-x-2">
<button class="text-gray-500 hover:text-blue-600">
<i class="fas fa-edit"></i>
</button>
<button class="text-gray-500 hover:text-red-600">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<div class="flex justify-between items-center p-2 bg-yellow-50 rounded">
<div>
<span class="font-medium">GBP/USD</span>
<span class="text-xs text-gray-500">Below 1.2700</span>
</div>
<div class="flex space-x-2">
<button class="text-gray-500 hover:text-blue-600">
<i class="fas fa-edit"></i>
</button>
<button class="text-gray-500 hover:text-red-600">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
</div>
<div class="mt-4">
<button class="w-full bg-yellow-100 text-yellow-600 hover:bg-yellow-200 px-4 py-2 rounded-lg flex items-center justify-center">
<i class="fas fa-plus mr-2"></i>
Create Alert
</button>
</div>
</div>
</div>
<!-- Main Dashboard -->
<div class="lg:col-span-3 space-y-6">
<!-- Market Overview -->
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-xl font-semibold flex items-center">
<i class="fas fa-globe mr-2 text-blue-600"></i>
Market Overview
</h2>
<div class="flex space-x-2">
<button class="bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg text-sm">
1H
</button>
<button class="bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg text-sm">
1D
</button>
<button class="bg-blue-100 text-blue-600 px-3 py-1 rounded-lg text-sm">
1W
</button>
<button class="bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg text-sm">
1M
</button>
</div>
</div>
<div class="chart-container">
<!-- Placeholder for TradingView widget -->
<div class="tradingview-widget-container">
<div class="flex items-center justify-center h-full bg-gray-100 rounded-lg">
<div class="text-center">
<i class="fas fa-chart-line text-4xl text-gray-300 mb-2"></i>
<p class="text-gray-500">Live Forex Chart</p>
</div>
</div>
</div>
</div>
</div>
<!-- Trading Dashboard -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Quick Trade -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-semibold mb-4 flex items-center">
<i class="fas fa-exchange-alt mr-2 text-green-600"></i>
Quick Trade
</h2>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Currency Pair</label>
<div class="relative">
<select class="w-full p-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500">
<option>EUR/USD</option>
<option>GBP/USD</option>
<option>USD/JPY</option>
<option>AUD/USD</option>
<option>USD/CAD</option>
</select>
</div>
</div>
<div class="grid grid-cols-2 gap-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Amount</label>
<input type="number" class="w-full p-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500" placeholder="0.00">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Leverage</label>
<select class="w-full p-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500">
<option>1:1</option>
<option>1:10</option>
<option selected>1:50</option>
<option>1:100</option>
</select>
</div>
</div>
<div class="grid grid-cols-2 gap-4">
<button class="bg-red-100 text-red-600 hover:bg-red-200 p-3 rounded-lg font-medium flex items-center justify-center">
<i class="fas fa-arrow-down mr-2"></i>
Sell
</button>
<button class="bg-green-100 text-green-600 hover:bg-green-200 p-3 rounded-lg font-medium flex items-center justify-center">
<i class="fas fa-arrow-up mr-2"></i>
Buy
</button>
</div>
</div>
</div>
<!-- Bot Settings -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-semibold mb-4 flex items-center">
<i class="fas fa-robot mr-2 text-purple-600"></i>
Bot Settings
</h2>
<div class="space-y-4">
<div class="flex items-center justify-between">
<span class="text-sm font-medium">Auto Trading</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked>
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"></div>
</label>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Strategy</label>
<select class="w-full p-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500">
<option>Moving Average Crossover</option>
<option>RSI Divergence</option>
<option>Bollinger Bands</option>
<option>MACD</option>
</select>
</div>
<div class="grid grid-cols-2 gap-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Take Profit (%)</label>
<input type="number" class="w-full p-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500" placeholder="1.5">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Stop Loss (%)</label>
<input type="number" class="w-full p-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500" placeholder="0.5">
</div>
</div>
<button class="w-full bg-purple-600 hover:bg-purple-700 text-white p-3 rounded-lg font-medium">
Save Settings
</button>
</div>
</div>
</div>
<!-- Recent Trades -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-semibold mb-4 flex items-center">
<i class="fas fa-history mr-2 text-blue-600"></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 class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Pair</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Entry Price</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Current Price</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Profit/Loss</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium">EUR/USD</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Buy</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">1.0956</td>
<td class="px-6 py-4 whitespace-nowrap">1.0987</td>
<td class="px-6 py-4 whitespace-nowrap">$1,000</td>
<td class="px-6 py-4 whitespace-nowrap price-up">+$31.00</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 bg-blue-100 text-blue-800 rounded-full text-xs">Active</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium">GBP/USD</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 bg-red-100 text-red-800 rounded-full text-xs">Sell</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">1.2805</td>
<td class="px-6 py-4 whitespace-nowrap">1.2789</td>
<td class="px-6 py-4 whitespace-nowrap">$750</td>
<td class="px-6 py-4 whitespace-nowrap price-up">+$12.00</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 bg-blue-100 text-blue-800 rounded-full text-xs">Active</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium">USD/JPY</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Buy</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">143.20</td>
<td class="px-6 py-4 whitespace-nowrap">143.56</td>
<td class="px-6 py-4 whitespace-nowrap">$500</td>
<td class="px-6 py-4 whitespace-nowrap price-up">+$25.20</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 bg-blue-100 text-blue-800 rounded-full text-xs">Active</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap font-medium">AUD/USD</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 bg-red-100 text-red-800 rounded-full text-xs">Sell</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">0.6735</td>
<td class="px-6 py-4 whitespace-nowrap">0.6723</td>
<td class="px-6 py-4 whitespace-nowrap">$1,200</td>
<td class="px-6 py-4 whitespace-nowrap price-up">+$14.40</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 bg-gray-100 text-gray-800 rounded-full text-xs">Closed</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800 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">
<div class="flex items-center space-x-2">
<i class="fas fa-chart-line text-xl"></i>
<span class="font-bold">Forex Tracker Bot</span>
</div>
<p class="text-sm text-gray-400 mt-1">Automate your forex trading with AI-powered strategies</p>
</div>
<div class="flex space-x-6">
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-facebook"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-linkedin"></i>
</a>
</div>
</div>
<div class="border-t border-gray-700 mt-6 pt-6 text-sm text-gray-400">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<span>&copy; 2023 Forex Tracker Bot. All rights reserved.</span>
</div>
<div class="flex space-x-4">
<a href="#" class="hover:text-white">Terms</a>
<a href="#" class="hover:text-white">Privacy</a>
<a href="#" class="hover:text-white">Contact</a>
<a href="#" class="hover:text-white">FAQ</a>
</div>
</div>
</div>
</div>
</footer>
</div>
<script>
// Simulate live price updates
function updatePrices() {
const pairs = document.querySelectorAll('.tracked-pairs .pair');
pairs.forEach(pair => {
const priceElement = pair.querySelector('.price');
const changeElement = pair.querySelector('.change');
// Simulate small price changes
const currentPrice = parseFloat(priceElement.textContent);
const change = (Math.random() - 0.5) * 0.001;
const newPrice = currentPrice + change;
priceElement.textContent = newPrice.toFixed(4);
// Update change indicator
const percentChange = (change / currentPrice) * 100;
if (percentChange >= 0) {
changeElement.textContent = `+${percentChange.toFixed(2)}%`;
changeElement.className = 'text-xs price-up';
changeElement.innerHTML += ' <i class="fas fa-caret-up"></i>';
} else {
changeElement.textContent = `${percentChange.toFixed(2)}%`;
changeElement.className = 'text-xs price-down';
changeElement.innerHTML += ' <i class="fas fa-caret-down"></i>';
}
});
// Update recent trades
const tradePrices = document.querySelectorAll('.recent-trades .current-price');
tradePrices.forEach(priceEl => {
const current = parseFloat(priceEl.textContent);
const change = (Math.random() - 0.5) * 0.002;
priceEl.textContent = (current + change).toFixed(4);
});
// Update P/L
const plElements = document.querySelectorAll('.recent-trades .pl');
plElements.forEach(el => {
const currentPL = parseFloat(el.textContent.replace(/[^0-9.-]/g, ''));
const change = (Math.random() - 0.5) * 5;
const newPL = currentPL + change;
if (newPL >= 0) {
el.textContent = `+$${newPL.toFixed(2)}`;
el.className = 'px-6 py-4 whitespace-nowrap price-up';
} else {
el.textContent = `-$${Math.abs(newPL).toFixed(2)}`;
el.className = 'px-6 py-4 whitespace-nowrap price-down';
}
});
}
// Update prices every 3 seconds
setInterval(updatePrices, 3000);
// Toggle bot settings
document.querySelectorAll('.bot-toggle').forEach(toggle => {
toggle.addEventListener('change', function() {
const settingsSection = this.closest('.bot-settings').querySelector('.settings-content');
if (this.checked) {
settingsSection.classList.remove('hidden');
} else {
settingsSection.classList.add('hidden');
}
});
});
// Simulate trade execution
document.querySelectorAll('.trade-btn').forEach(btn => {
btn.addEventListener('click', function() {
const type = this.classList.contains('buy-btn') ? 'Buy' : 'Sell';
const pair = this.closest('.quick-trade').querySelector('select').value;
const amount = this.closest('.quick-trade').querySelector('input').value || '1000';
// Show confirmation
alert(`${type} order for ${amount} of ${pair} has been placed!`);
});
});
</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=Jayteer/supper-time" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>