Alexo19 commited on
Commit
bb43a33
Β·
verified Β·
1 Parent(s): ccd5e7a

FINISH WHAT IT STARTED

Browse files
Files changed (2) hide show
  1. api-docs.html +285 -0
  2. index.html +4 -3
api-docs.html ADDED
@@ -0,0 +1,285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>API Documentation | CryptoSignal Sleuth</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://unpkg.com/feather-icons"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
11
+ <script>
12
+ tailwind.config = {
13
+ darkMode: 'class',
14
+ theme: {
15
+ extend: {
16
+ colors: {
17
+ primary: {
18
+ 500: '#d946ef',
19
+ },
20
+ secondary: {
21
+ 500: '#f97316',
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
27
+ </script>
28
+ <style>
29
+ .vanta-bg {
30
+ position: absolute;
31
+ top: 0;
32
+ left: 0;
33
+ width: 100%;
34
+ height: 100%;
35
+ z-index: -1;
36
+ opacity: 0.3;
37
+ }
38
+ .glass-card {
39
+ backdrop-filter: blur(16px) saturate(180%);
40
+ -webkit-backdrop-filter: blur(16px) saturate(180%);
41
+ background-color: rgba(17, 25, 40, 0.75);
42
+ border-radius: 12px;
43
+ border: 1px solid rgba(255, 255, 255, 0.125);
44
+ }
45
+ .endpoint-card {
46
+ transition: all 0.3s ease;
47
+ }
48
+ .endpoint-card:hover {
49
+ transform: translateY(-3px);
50
+ border-color: #d946ef;
51
+ }
52
+ </style>
53
+ </head>
54
+ <body class="bg-gray-900 text-gray-100 min-h-screen">
55
+ <div id="vanta-bg" class="vanta-bg"></div>
56
+
57
+ <nav class="border-b border-gray-800 py-4">
58
+ <div class="container mx-auto px-4 flex justify-between items-center">
59
+ <div class="flex items-center space-x-2">
60
+ <i data-feather="activity" class="text-primary-500"></i>
61
+ <span class="text-xl font-bold bg-gradient-to-r from-primary-500 to-secondary-500 bg-clip-text text-transparent">CryptoSignal Sleuth</span>
62
+ </div>
63
+ <div class="hidden md:flex space-x-6">
64
+ <a href="index.html" class="hover:text-primary-500 transition">Dashboard</a>
65
+ <a href="#" class="hover:text-primary-500 transition">Signals</a>
66
+ <a href="#" class="hover:text-primary-500 transition">Analytics</a>
67
+ <a href="#" class="hover:text-primary-500 transition">Traders</a>
68
+ <a href="api-docs.html" class="text-primary-500 font-medium">API Docs</a>
69
+ </div>
70
+ <button class="md:hidden">
71
+ <i data-feather="menu"></i>
72
+ </button>
73
+ </div>
74
+ </nav>
75
+
76
+ <main class="container mx-auto px-4 py-8">
77
+ <!-- API Hero Section -->
78
+ <section class="glass-card p-8 mb-12 relative overflow-hidden">
79
+ <div class="absolute -top-20 -right-20 w-64 h-64 rounded-full bg-primary-500 opacity-10 blur-3xl"></div>
80
+ <div class="absolute -bottom-20 -left-20 w-64 h-64 rounded-full bg-secondary-500 opacity-10 blur-3xl"></div>
81
+ <div class="relative z-10">
82
+ <h1 class="text-4xl md:text-6xl font-bold mb-4">API <span class="text-primary-500">Documentation</span></h1>
83
+ <p class="text-xl text-gray-300 mb-8 max-w-2xl">Integrate with our powerful crypto signal analysis platform</p>
84
+ <div class="flex flex-col sm:flex-row gap-4">
85
+ <button class="bg-primary-500 hover:bg-primary-600 text-white px-6 py-3 rounded-lg font-medium transition transform hover:scale-105">Get API Key</button>
86
+ <button class="border border-primary-500 text-primary-500 hover:bg-primary-500/10 px-6 py-3 rounded-lg font-medium transition">View Examples</button>
87
+ </div>
88
+ </div>
89
+ </section>
90
+
91
+ <!-- API Endpoints -->
92
+ <section class="mb-16">
93
+ <h2 class="text-3xl font-bold mb-8">Available <span class="text-secondary-500">Endpoints</span></h2>
94
+
95
+ <!-- Endpoint 1 -->
96
+ <div class="glass-card endpoint-card p-6 rounded-xl mb-6 border border-gray-800">
97
+ <div class="flex flex-col md:flex-row md:items-center md:justify-between">
98
+ <div class="mb-4 md:mb-0">
99
+ <span class="bg-green-900/50 text-green-400 px-3 py-1 rounded-full text-sm font-medium">GET</span>
100
+ <span class="ml-2 text-xl font-mono font-bold">/api/v1/signals</span>
101
+ </div>
102
+ <button class="bg-gray-800 hover:bg-gray-700 text-white px-4 py-2 rounded text-sm font-medium transition">
103
+ Try It Out
104
+ </button>
105
+ </div>
106
+ <p class="text-gray-400 mt-4">Retrieve the latest trading signals from monitored channels</p>
107
+
108
+ <div class="mt-6">
109
+ <h4 class="text-sm font-semibold text-gray-400 uppercase tracking-wider mb-2">Parameters</h4>
110
+ <table class="w-full text-sm">
111
+ <thead>
112
+ <tr class="border-b border-gray-800">
113
+ <th class="text-left py-2">Name</th>
114
+ <th class="text-left py-2">Type</th>
115
+ <th class="text-left py-2">Description</th>
116
+ </tr>
117
+ </thead>
118
+ <tbody>
119
+ <tr class="border-b border-gray-800">
120
+ <td class="py-3">symbol</td>
121
+ <td class="py-3">string</td>
122
+ <td class="py-3">Filter by trading pair (e.g. BTC/USDT)</td>
123
+ </tr>
124
+ <tr class="border-b border-gray-800">
125
+ <td class="py-3">type</td>
126
+ <td class="py-3">string</td>
127
+ <td class="py-3">BUY or SELL</td>
128
+ </tr>
129
+ <tr>
130
+ <td class="py-3">limit</td>
131
+ <td class="py-3">integer</td>
132
+ <td class="py-3">Number of results to return (default: 10)</td>
133
+ </tr>
134
+ </tbody>
135
+ </table>
136
+ </div>
137
+ </div>
138
+
139
+ <!-- Endpoint 2 -->
140
+ <div class="glass-card endpoint-card p-6 rounded-xl mb-6 border border-gray-800">
141
+ <div class="flex flex-col md:flex-row md:items-center md:justify-between">
142
+ <div class="mb-4 md:mb-0">
143
+ <span class="bg-blue-900/50 text-blue-400 px-3 py-1 rounded-full text-sm font-medium">POST</span>
144
+ <span class="ml-2 text-xl font-mono font-bold">/api/v1/webhook</span>
145
+ </div>
146
+ <button class="bg-gray-800 hover:bg-gray-700 text-white px-4 py-2 rounded text-sm font-medium transition">
147
+ Try It Out
148
+ </button>
149
+ </div>
150
+ <p class="text-gray-400 mt-4">Set up a webhook to receive real-time signal notifications</p>
151
+
152
+ <div class="mt-6">
153
+ <h4 class="text-sm font-semibold text-gray-400 uppercase tracking-wider mb-2">Request Body</h4>
154
+ <div class="bg-gray-800/50 rounded-lg p-4">
155
+ <pre class="text-sm overflow-x-auto"><code class="language-json">{
156
+ "url": "https://yourdomain.com/webhook",
157
+ "events": ["new_signal", "signal_update"],
158
+ "secret": "your_webhook_secret"
159
+ }</code></pre>
160
+ </div>
161
+ </div>
162
+ </div>
163
+
164
+ <!-- Endpoint 3 -->
165
+ <div class="glass-card endpoint-card p-6 rounded-xl mb-6 border border-gray-800">
166
+ <div class="flex flex-col md:flex-row md:items-center md:justify-between">
167
+ <div class="mb-4 md:mb-0">
168
+ <span class="bg-purple-900/50 text-purple-400 px-3 py-1 rounded-full text-sm font-medium">GET</span>
169
+ <span class="ml-2 text-xl font-mono font-bold">/api/v1/analytics</span>
170
+ </div>
171
+ <button class="bg-gray-800 hover:bg-gray-700 text-white px-4 py-2 rounded text-sm font-medium transition">
172
+ Try It Out
173
+ </button>
174
+ </div>
175
+ <p class="text-gray-400 mt-4">Get performance analytics for signals and traders</p>
176
+
177
+ <div class="mt-6">
178
+ <h4 class="text-sm font-semibold text-gray-400 uppercase tracking-wider mb-2">Response Example</h4>
179
+ <div class="bg-gray-800/50 rounded-lg p-4">
180
+ <pre class="text-sm overflow-x-auto"><code class="language-json">{
181
+ "success_rate": 72.5,
182
+ "avg_profit": 8.2,
183
+ "top_traders": [
184
+ {
185
+ "name": "CryptoWhale",
186
+ "success_rate": 85.3,
187
+ "total_signals": 142
188
+ }
189
+ ]
190
+ }</code></pre>
191
+ </div>
192
+ </div>
193
+ </div>
194
+ </section>
195
+
196
+ <!-- Authentication Section -->
197
+ <section class="glass-card p-8 rounded-xl mb-16 bg-gradient-to-r from-primary-500/10 to-secondary-500/10 border border-primary-500/30">
198
+ <h2 class="text-3xl font-bold mb-6">Authentication</h2>
199
+ <p class="text-lg text-gray-300 mb-6">
200
+ All API requests require authentication via API key. Include your API key in the <code class="bg-gray-800 px-2 py-1 rounded text-sm">X-API-KEY</code> header.
201
+ </p>
202
+ <div class="flex flex-col sm:flex-row gap-4">
203
+ <button class="bg-primary-500 hover:bg-primary-600 text-white px-6 py-3 rounded-lg font-medium transition transform hover:scale-105">Manage API Keys</button>
204
+ <button class="border border-primary-500 text-primary-500 hover:bg-primary-500/10 px-6 py-3 rounded-lg font-medium transition">View Rate Limits</button>
205
+ </div>
206
+ </section>
207
+ </main>
208
+
209
+ <footer class="border-t border-gray-800 py-8 mt-12">
210
+ <div class="container mx-auto px-4">
211
+ <div class="flex flex-col md:flex-row justify-between items-center">
212
+ <div class="flex items-center space-x-2 mb-4 md:mb-0">
213
+ <i data-feather="activity" class="text-primary-500"></i>
214
+ <span class="text-xl font-bold">CryptoSignal Sleuth</span>
215
+ </div>
216
+ <div class="flex space-x-6">
217
+ <a href="#" class="hover:text-primary-500 transition">
218
+ <i data-feather="twitter" class="w-5 h-5"></i>
219
+ </a>
220
+ <a href="#" class="hover:text-primary-500 transition">
221
+ <i data-feather="github" class="w-5 h-5"></i>
222
+ </a>
223
+ <a href="#" class="hover:text-primary-500 transition">
224
+ <i data-feather="discord" class="w-5 h-5"></i>
225
+ </a>
226
+ <a href="#" class="hover:text-primary-500 transition">
227
+ <i data-feather="mail" class="w-5 h-5"></i>
228
+ </a>
229
+ </div>
230
+ </div>
231
+ <div class="mt-8 pt-8 border-t border-gray-800 flex flex-col md:flex-row justify-between">
232
+ <div class="mb-6 md:mb-0">
233
+ <p class="text-gray-400">&copy; 2023 CryptoSignal Sleuth. All rights reserved.</p>
234
+ </div>
235
+ <div class="grid grid-cols-2 md:grid-cols-3 gap-8">
236
+ <div>
237
+ <h4 class="text-sm font-semibold text-gray-400 uppercase tracking-wider mb-4">Product</h4>
238
+ <ul class="space-y-2">
239
+ <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">Features</a></li>
240
+ <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">Pricing</a></li>
241
+ <li><a href="api-docs.html" class="text-gray-300 hover:text-primary-500 transition">API Docs</a></li>
242
+ </ul>
243
+ </div>
244
+ <div>
245
+ <h4 class="text-sm font-semibold text-gray-400 uppercase tracking-wider mb-4">Company</h4>
246
+ <ul class="space-y-2">
247
+ <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">About</a></li>
248
+ <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">Blog</a></li>
249
+ <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">Careers</a></li>
250
+ </ul>
251
+ </div>
252
+ <div>
253
+ <h4 class="text-sm font-semibold text-gray-400 uppercase tracking-wider mb-4">Legal</h4>
254
+ <ul class="space-y-2">
255
+ <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">Privacy</a></li>
256
+ <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">Terms</a></li>
257
+ <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">Cookie Policy</a></li>
258
+ </ul>
259
+ </div>
260
+ </div>
261
+ </div>
262
+ </div>
263
+ </footer>
264
+
265
+ <script>
266
+ // Initialize Vanta.js globe background
267
+ VANTA.GLOBE({
268
+ el: "#vanta-bg",
269
+ mouseControls: true,
270
+ touchControls: true,
271
+ gyroControls: false,
272
+ minHeight: 200.00,
273
+ minWidth: 200.00,
274
+ scale: 1.00,
275
+ scaleMobile: 1.00,
276
+ color: "#d946ef",
277
+ backgroundColor: "#111827",
278
+ size: 1.00
279
+ });
280
+
281
+ // Initialize feather icons
282
+ feather.replace();
283
+ </script>
284
+ </body>
285
+ </html>
index.html CHANGED
@@ -62,8 +62,9 @@
62
  <a href="#" class="hover:text-primary-500 transition">Signals</a>
63
  <a href="#" class="hover:text-primary-500 transition">Analytics</a>
64
  <a href="#" class="hover:text-primary-500 transition">Traders</a>
 
65
  </div>
66
- <button class="md:hidden">
67
  <i data-feather="menu"></i>
68
  </button>
69
  </div>
@@ -291,8 +292,8 @@
291
  <ul class="space-y-2">
292
  <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">Features</a></li>
293
  <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">Pricing</a></li>
294
- <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">API</a></li>
295
- </ul>
296
  </div>
297
  <div>
298
  <h4 class="text-sm font-semibold text-gray-400 uppercase tracking-wider mb-4">Company</h4>
 
62
  <a href="#" class="hover:text-primary-500 transition">Signals</a>
63
  <a href="#" class="hover:text-primary-500 transition">Analytics</a>
64
  <a href="#" class="hover:text-primary-500 transition">Traders</a>
65
+ <a href="#" class="hover:text-primary-500 transition">API Docs</a>
66
  </div>
67
+ <button class="md:hidden">
68
  <i data-feather="menu"></i>
69
  </button>
70
  </div>
 
292
  <ul class="space-y-2">
293
  <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">Features</a></li>
294
  <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">Pricing</a></li>
295
+ <li><a href="#" class="text-gray-300 hover:text-primary-500 transition">API Docs</a></li>
296
+ </ul>
297
  </div>
298
  <div>
299
  <h4 class="text-sm font-semibold text-gray-400 uppercase tracking-wider mb-4">Company</h4>