CoolFace
Apppublic

dprogers/insider-whale-tracker

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
api.html88 linesDownload Raw Back to root
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>API | Insider Whale Tracker</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/prismjs@1.29.0/prism.min.js"></script>10    <link href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet">11</head>12<body class="bg-gray-50">13    <div class="flex">14        <!-- Sidebar same as dashboard.html -->15        <div class="w-64 bg-white shadow-md min-h-screen p-4">16            <div class="flex items-center space-x-2 mb-8">17                <i data-feather="activity" class="w-8 h-8 text-blue-600"></i>18                <h1 class="text-xl font-bold">Whale Tracker</h1>19            </div>20            <nav class="space-y-2">21                <a href="dashboard.html" class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100">22                    <i data-feather="home" class="w-5 h-5"></i>23                    <span>Dashboard</span>24                </a>25                <a href="alerts.html" class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100">26                    <i data-feather="bell" class="w-5 h-5"></i>27                    <span>Alerts</span>28                </a>29                <a href="research.html" class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100">30                    <i data-feather="search" class="w-5 h-5"></i>31                    <span>Research</span>32                </a>33                <a href="api.html" class="flex items-center space-x-2 p-2 rounded-lg bg-blue-100 text-blue-600">34                    <i data-feather="code" class="w-5 h-5"></i>35                    <span>API</span>36                </a>37            </nav>38        </div>39 40        <!-- Main Content -->41        <div class="flex-1 p-8">42            <h1 class="text-2xl font-bold mb-6">API Documentation</h1>43            44            <div class="bg-white rounded-lg shadow overflow-hidden mb-8">45                <div class="p-6 border-b">46                    <h2 class="text-xl font-semibold">Getting Started</h2>47                    <p class="text-gray-600 mt-2">Access real-time whale signals through our REST API with JSON responses.</p>48                </div>49                <div class="p-6">50                    <h3 class="font-medium mb-2">Authentication</h3>51                    <p class="text-gray-600 mb-4">All API requests require an API key sent in the header:</p>52                    <pre><code class="language-bash">curl -H "X-API-KEY: your_api_key_here" https://api.whaletracker.com/v1/signals</code></pre>53 54                    <h3 class="font-medium mt-6 mb-2">Example Request</h3>55                    <pre><code class="language-javascript">fetch('https://api.whaletracker.com/v1/signals?min_score=80', {56  headers: {57    'X-API-KEY': 'your_api_key_here'58  }59})60.then(response => response.json())61.then(data => console.log(data));</code></pre>62 63                    <h3 class="font-medium mt-6 mb-2">Example Response</h3>64                    <pre><code class="language-json">{65  "data": [66    {67      "id": "sig_123",68      "date": "2023-08-15",69      "investor": "Palantir Technologies",70      "target": "Lilium NV",71      "ticker": "LILM",72      "stake": 5.2,73      "score": 92,74      "filing_type": "13G"75    }76  ]77}</code></pre>78                </div>79            </div>80        </div>81    </div>82 83    <script>84        feather.replace();85        Prism.highlightAll();86    </script>87</body>88</html>