Luzuko's picture
Make this bot work on Synthetic Indices on Deriv.com
e845d7b verified
Raw History Blame Contribute Delete
22.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MatchDiffer Trading Bot</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
undefined: {
100: '#f3f4f6',
200: '#e5e7eb',
300: '#d1d5db',
400: '#9ca3af',
500: '#6b7280',
600: '#4b5563',
700: '#374151',
800: '#1f2937',
900: '#111827',
}
}
}
}
}
</script>
<style>
#vanta-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.3;
}
.trading-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);
}
</style>
</head>
<body class="bg-undefined-900 text-undefined-100 min-h-screen">
<div id="vanta-bg"></div>
<!-- Navigation -->
<nav class="bg-undefined-800 bg-opacity-80 backdrop-blur-md border-b border-undefined-700 fixed w-full z-10">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0">
<span class="text-undefined-300 font-bold text-xl flex items-center">
<i data-feather="activity" class="mr-2"></i> MatchDiffer
</span>
</div>
<div class="hidden md:block">
<div class="ml-10 flex items-baseline space-x-4">
<a href="#" class="bg-undefined-700 text-white px-3 py-2 rounded-md text-sm font-medium">Dashboard</a>
<a href="matchdiffer_bot.xml" download class="text-undefined-300 hover:bg-undefined-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Download XML</a>
<a href="#" class="text-undefined-300 hover:bg-undefined-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">History</a>
<a href="#" class="text-undefined-300 hover:bg-undefined-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Settings</a>
</div>
</div>
</div>
<div class="hidden md:block">
<div class="ml-4 flex items-center md:ml-6">
<button class="bg-undefined-600 p-1 rounded-full text-undefined-200 hover:text-white focus:outline-none">
<i data-feather="bell"></i>
</button>
<div class="ml-3 relative">
<div>
<button class="max-w-xs bg-undefined-600 rounded-full flex items-center text-sm focus:outline-none" id="user-menu">
<span class="sr-only">Open user menu</span>
<div class="h-8 w-8 rounded-full bg-undefined-500 flex items-center justify-center">
<i data-feather="user"></i>
</div>
</button>
</div>
</div>
</div>
</div>
<div class="-mr-2 flex md:hidden">
<button class="bg-undefined-600 inline-flex items-center justify-center p-2 rounded-md text-undefined-200 hover:text-white hover:bg-undefined-700 focus:outline-none">
<i data-feather="menu"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="pt-24 pb-12 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto">
<!-- Header -->
<div class="mb-8 text-center">
<h1 class="text-4xl font-bold text-undefined-100 mb-2">Synthetic Indices Bot for Deriv</h1>
<p class="text-xl text-undefined-300 max-w-3xl mx-auto">
Automated trading on Deriv's Synthetic Indices using volatility index patterns
</p>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="bg-undefined-800 bg-opacity-70 backdrop-blur-sm rounded-lg p-6 shadow-lg border border-undefined-700 trading-card transition-all duration-300">
<div class="flex items-center">
<div class="p-3 rounded-full bg-undefined-700 mr-4">
<i data-feather="trending-up" class="text-green-400"></i>
</div>
<div>
<p class="text-sm font-medium text-undefined-300">Today's Profit</p>
<p class="text-2xl font-semibold text-green-400">+$1,245.67</p>
</div>
</div>
</div>
<div class="bg-undefined-800 bg-opacity-70 backdrop-blur-sm rounded-lg p-6 shadow-lg border border-undefined-700 trading-card transition-all duration-300">
<div class="flex items-center">
<div class="p-3 rounded-full bg-undefined-700 mr-4">
<i data-feather="bar-chart-2" class="text-blue-400"></i>
</div>
<div>
<p class="text-sm font-medium text-undefined-300">Active Strategies</p>
<p class="text-2xl font-semibold text-blue-400">8</p>
</div>
</div>
</div>
<div class="bg-undefined-800 bg-opacity-70 backdrop-blur-sm rounded-lg p-6 shadow-lg border border-undefined-700 trading-card transition-all duration-300">
<div class="flex items-center">
<div class="p-3 rounded-full bg-undefined-700 mr-4">
<i data-feather="clock" class="text-yellow-400"></i>
</div>
<div>
<p class="text-sm font-medium text-undefined-300">Execution Speed</p>
<p class="text-2xl font-semibold text-yellow-400">47ms</p>
</div>
</div>
</div>
</div>
<!-- Trading Interface -->
<div class="bg-undefined-800 bg-opacity-70 backdrop-blur-sm rounded-xl shadow-xl overflow-hidden border border-undefined-700 mb-8">
<div class="px-6 py-4 border-b border-undefined-700 flex justify-between items-center">
<h2 class="text-xl font-semibold text-undefined-100">Trading Interface</h2>
<div class="flex space-x-2">
<button class="bg-undefined-700 hover:bg-undefined-600 text-undefined-100 px-3 py-1 rounded text-sm flex items-center">
<i data-feather="refresh-cw" class="w-4 h-4 mr-1"></i> Refresh
</button>
<button class="bg-green-600 hover:bg-green-500 text-white px-3 py-1 rounded text-sm flex items-center">
<i data-feather="play" class="w-4 h-4 mr-1"></i> Start Bot
</button>
</div>
</div>
<div class="p-6">
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<!-- Match Differ Configuration -->
<div class="bg-undefined-700 bg-opacity-50 rounded-lg p-6 border border-undefined-600">
<h3 class="text-lg font-medium text-undefined-100 mb-4 flex items-center">
<i data-feather="sliders" class="mr-2"></i> Volatility Settings
</h3>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-undefined-300 mb-1">Volatility Threshold</label>
<input type="range" min="0" max="100" value="60" class="w-full h-2 bg-undefined-600 rounded-lg appearance-none cursor-pointer">
<div class="flex justify-between text-xs text-undefined-400 mt-1">
<span>Low</span>
<span>Medium</span>
<span>High</span>
</div>
</div>
<div>
<label class="block text-sm font-medium text-undefined-300 mb-1">Trend Sensitivity</label>
<input type="range" min="0" max="100" value="40" class="w-full h-2 bg-undefined-600 rounded-lg appearance-none cursor-pointer">
<div class="flex justify-between text-xs text-undefined-400 mt-1">
<span>Slow</span>
<span>Normal</span>
<span>Fast</span>
</div>
</div>
<div class="flex items-center justify-between pt-2">
<span class="text-sm font-medium text-undefined-300">Auto Compound</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" value="" class="sr-only peer">
<div class="w-11 h-6 bg-undefined-500 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 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-500"></div>
</label>
</div>
</div>
</div>
<!-- Live Trading Data -->
<div class="bg-undefined-700 bg-opacity-50 rounded-lg p-6 border border-undefined-600">
<h3 class="text-lg font-medium text-undefined-100 mb-4 flex items-center">
<i data-feather="activity" class="mr-2"></i> Live Data Feed
</h3>
<div class="overflow-hidden">
<div class="min-h-[300px] bg-undefined-800 rounded p-4 font-mono text-sm overflow-y-auto">
<div class="text-green-400">[10:23:45] PATTERN: Volatility 10 Index rising trend detected</div>
<div class="text-green-400">[10:23:46] EXECUTED: BUY Volatility 10 Index @ 1234.56</div>
<div class="text-gray-400">[10:23:47] Analyzing Volatility 25 Index...</div>
<div class="text-red-400">[10:23:48] REVERSAL: Volatility 25 Index showing downtrend</div>
<div class="text-red-400">[10:23:49] EXECUTED: SELL Volatility 25 Index @ 987.65</div>
<div class="text-gray-400">[10:23:50] Monitoring Volatility 50 Index...</div>
<div class="text-green-400">[10:23:51] PATTERN: Volatility 50 Index forming bullish pattern</div>
<div class="text-green-400">[10:23:52] EXECUTED: BUY Volatility 50 Index @ 567.89</div>
<div class="text-gray-400">[10:23:53] Scanning for new opportunities...</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Strategy Performance -->
<div class="bg-undefined-800 bg-opacity-70 backdrop-blur-sm rounded-xl shadow-xl overflow-hidden border border-undefined-700">
<div class="px-6 py-4 border-b border-undefined-700">
<h2 class="text-xl font-semibold text-undefined-100">Strategy Performance</h2>
</div>
<div class="p-6">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-undefined-700">
<thead class="bg-undefined-700 bg-opacity-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-undefined-300 uppercase tracking-wider">Strategy</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-undefined-300 uppercase tracking-wider">Pairs</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-undefined-300 uppercase tracking-wider">Win Rate</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-undefined-300 uppercase tracking-wider">P/L (24h)</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-undefined-300 uppercase tracking-wider">Status</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-undefined-300 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-undefined-800 bg-opacity-50 divide-y divide-undefined-700">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-undefined-700 rounded-full flex items-center justify-center">
<i data-feather="zap"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-undefined-100">QuickMatch</div>
<div class="text-sm text-undefined-400">Match-focused</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-undefined-100">Volatility 10, Volatility 25</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-undefined-100">78%</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-green-400">+$423.51</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-900 text-green-300">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-undefined-400">
<button class="text-blue-400 hover:text-blue-300 mr-3"><i data-feather="edit-2" class="w-4 h-4"></i></button>
<button class="text-red-400 hover:text-red-300"><i data-feather="trash-2" class="w-4 h-4"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-undefined-700 rounded-full flex items-center justify-center">
<i data-feather="target"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-undefined-100">PrecisionDiffer</div>
<div class="text-sm text-undefined-400">Differ-focused</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-undefined-100">Volatility 50, Volatility 75</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-undefined-100">65%</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-green-400">+$287.93</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-900 text-green-300">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-undefined-400">
<button class="text-blue-400 hover:text-blue-300 mr-3"><i data-feather="edit-2" class="w-4 h-4"></i></button>
<button class="text-red-400 hover:text-red-300"><i data-feather="trash-2" class="w-4 h-4"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-undefined-700 rounded-full flex items-center justify-center">
<i data-feather="crosshair"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-undefined-100">Hybrid Analyzer</div>
<div class="text-sm text-undefined-400">Match/Differ</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-undefined-100">Volatility 100, Crash/Boom</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-undefined-100">71%</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-green-400">+$198.24</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-900 text-yellow-300">Paused</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-undefined-400">
<button class="text-blue-400 hover:text-blue-300 mr-3"><i data-feather="edit-2" class="w-4 h-4"></i></button>
<button class="text-red-400 hover:text-red-300"><i data-feather="trash-2" class="w-4 h-4"></i></button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-undefined-800 bg-opacity-80 backdrop-blur-md border-t border-undefined-700 mt-12">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
<div class="md:flex md:items-center md:justify-between">
<div class="flex justify-center md:order-2 space-x-6">
<a href="#" class="text-undefined-400 hover:text-undefined-300">
<i data-feather="github"></i>
</a>
<a href="#" class="text-undefined-400 hover:text-undefined-300">
<i data-feather="twitter"></i>
</a>
<a href="#" class="text-undefined-400 hover:text-undefined-300">
<i data-feather="linkedin"></i>
</a>
</div>
<div class="mt-8 md:mt-0 md:order-1">
<p class="text-center text-base text-undefined-400">
&copy; 2023 MatchDiffer Trading Bot. All rights reserved.
</p>
</div>
</div>
</div>
</footer>
<script>
// Initialize Vanta.js background
VANTA.GLOBE({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x3b82f6,
backgroundColor: 0x111827,
size: 0.8
});
// Initialize Feather Icons
feather.replace();
</script>
</body>
</html>