kantaphat commited on
Commit
27d39ac
Β·
verified Β·
1 Parent(s): e408b12

Python binance th hedgefund

Browse files
Files changed (5) hide show
  1. README.md +8 -5
  2. components/binance-tools.js +67 -0
  3. index.html +23 -17
  4. script.js +27 -0
  5. style.css +12 -21
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Python Binance Hedge Wizard
3
- emoji: πŸ’»
4
- colorFrom: indigo
5
- colorTo: indigo
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: Python Binance Hedge Wizard πŸπŸ’°
3
+ colorFrom: blue
4
+ colorTo: red
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/binance-tools.js ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class BinanceTools extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .tools-container {
7
+ background: white;
8
+ border-radius: 12px;
9
+ padding: 2rem;
10
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
11
+ margin-top: 2rem;
12
+ }
13
+ .tool-card {
14
+ border: 1px solid #e5e7eb;
15
+ border-radius: 8px;
16
+ padding: 1.5rem;
17
+ margin-bottom: 1rem;
18
+ transition: all 0.2s ease;
19
+ }
20
+ .tool-card:hover {
21
+ transform: translateY(-2px);
22
+ box-shadow: 0 4px 12px rgba(0,0,0,0.1);
23
+ }
24
+ .tool-title {
25
+ font-weight: 600;
26
+ color: #065f46;
27
+ margin-bottom: 0.5rem;
28
+ }
29
+ .tool-desc {
30
+ color: #4b5563;
31
+ font-size: 0.9rem;
32
+ margin-bottom: 1rem;
33
+ }
34
+ .btn {
35
+ background: #065f46;
36
+ color: white;
37
+ padding: 0.5rem 1rem;
38
+ border-radius: 6px;
39
+ font-size: 0.9rem;
40
+ display: inline-block;
41
+ text-decoration: none;
42
+ }
43
+ .btn:hover {
44
+ background: #047857;
45
+ }
46
+ </style>
47
+ <div class="tools-container">
48
+ <div class="tool-card">
49
+ <div class="tool-title">Arbitrage Scanner</div>
50
+ <div class="tool-desc">Detect price differences across Binance markets for arbitrage opportunities</div>
51
+ <a href="#" class="btn">View Tool</a>
52
+ </div>
53
+ <div class="tool-card">
54
+ <div class="tool-title">Hedge Position Manager</div>
55
+ <div class="tool-desc">Automate your hedge positions with dynamic rebalancing</div>
56
+ <a href="#" class="btn">View Tool</a>
57
+ </div>
58
+ <div class="tool-card">
59
+ <div class="tool-title">Market Maker Bot</div>
60
+ <div class="tool-desc">Python-based market making strategy with customizable parameters</div>
61
+ <a href="#" class="btn">View Tool</a>
62
+ </div>
63
+ </div>
64
+ `;
65
+ }
66
+ }
67
+ customElements.define('binance-tools', BinanceTools);
index.html CHANGED
@@ -1,19 +1,25 @@
1
- <!doctype html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
  <html>
3
+ <head>
4
+ <title>Python Binance Hedge Wizard</title>
5
+ <link rel="stylesheet" href="style.css">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <meta charset="utf-8">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ </head>
10
+ <body class="flex justify-center items-center h-screen overflow-hidden bg-white font-sans text-center px-6">
11
+ <div class="w-full max-w-3xl mx-auto">
12
+ <span class="text-xs rounded-full mb-2 inline-block px-2 py-1 border border-emerald-500/15 bg-emerald-500/15 text-emerald-500">🐍 Binance Hedge Fund Tools</span>
13
+ <h1 class="text-4xl lg:text-6xl font-bold font-sans mb-8">
14
+ <span class="text-2xl lg:text-4xl text-gray-400 block font-medium">Python-powered Binance</span>
15
+ Hedge Fund Automation
16
+ </h1>
17
+ </div>
18
+ <binance-tools></binance-tools>
19
+ <img src="https://static.photos/finance/640x360/42" class="absolute bottom-8 right-8 w-[200px] rounded-lg shadow-lg opacity-90 hover:opacity-100 transition-opacity" />
20
+ <script src="components/binance-tools.js"></script>
21
+ <script src="script.js"></script>
22
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
23
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
24
+ </body>
25
  </html>
script.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', () => {
2
+ // Add interactive cursor effect
3
+ const cursor = document.createElement('div');
4
+ cursor.classList.add('cursor');
5
+ document.body.appendChild(cursor);
6
+
7
+ document.addEventListener('mousemove', (e) => {
8
+ cursor.style.left = e.clientX + 'px';
9
+ cursor.style.top = e.clientY + 'px';
10
+ });
11
+
12
+ // Add typewriter effect to the heading
13
+ const heading = document.querySelector('h1 span:last-child');
14
+ const text = heading.textContent;
15
+ heading.textContent = '';
16
+
17
+ let i = 0;
18
+ const typeWriter = () => {
19
+ if (i < text.length) {
20
+ heading.textContent += text.charAt(i);
21
+ i++;
22
+ setTimeout(typeWriter, 100);
23
+ }
24
+ };
25
+
26
+ setTimeout(typeWriter, 1000);
27
+ });
style.css CHANGED
@@ -1,28 +1,19 @@
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
4
  }
5
-
6
  h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
2
  body {
3
+ font-family: 'Inter', sans-serif;
4
+ background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
5
+ transition: all 0.3s ease;
6
  }
 
7
  h1 {
8
+ text-shadow: 0 2px 4px rgba(0,0,0,0.1);
 
 
 
 
 
 
 
 
9
  }
10
 
11
+ img {
12
+ animation: float 6s ease-in-out infinite;
 
 
 
 
13
  }
14
 
15
+ @keyframes float {
16
+ 0% { transform: translateY(0) rotate(30deg); }
17
+ 50% { transform: translateY(-20px) rotate(30deg); }
18
+ 100% { transform: translateY(0) rotate(30deg); }
19
+ }