Download components/binance-tools.js from kantaphat/python-binance-hedge-wizard: direct link, hf CLI and curl.
- Browser
- Download file 2.11 kB
-
https://huggingface.co/spaces/kantaphat/python-binance-hedge-wizard/resolve/main/components/binance-tools.js
- Command line
-
hf download hf://spaces/kantaphat/python-binance-hedge-wizard/components/binance-tools.js
-
curl -L -o binance-tools.js https://huggingface.co/spaces/kantaphat/python-binance-hedge-wizard/resolve/main/components/binance-tools.js
2.11 kB
| class BinanceTools extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| .tools-container { | |
| background: white; | |
| border-radius: 12px; | |
| padding: 2rem; | |
| box-shadow: 0 4px 6px rgba(0,0,0,0.1); | |
| margin-top: 2rem; | |
| } | |
| .tool-card { | |
| border: 1px solid #e5e7eb; | |
| border-radius: 8px; | |
| padding: 1.5rem; | |
| margin-bottom: 1rem; | |
| transition: all 0.2s ease; | |
| } | |
| .tool-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 12px rgba(0,0,0,0.1); | |
| } | |
| .tool-title { | |
| font-weight: 600; | |
| color: #065f46; | |
| margin-bottom: 0.5rem; | |
| } | |
| .tool-desc { | |
| color: #4b5563; | |
| font-size: 0.9rem; | |
| margin-bottom: 1rem; | |
| } | |
| .btn { | |
| background: #065f46; | |
| color: white; | |
| padding: 0.5rem 1rem; | |
| border-radius: 6px; | |
| font-size: 0.9rem; | |
| display: inline-block; | |
| text-decoration: none; | |
| } | |
| .btn:hover { | |
| background: #047857; | |
| } | |
| </style> | |
| <div class="tools-container"> | |
| <div class="tool-card"> | |
| <div class="tool-title">Arbitrage Scanner</div> | |
| <div class="tool-desc">Detect price differences across Binance markets for arbitrage opportunities</div> | |
| <a href="#" class="btn">View Tool</a> | |
| </div> | |
| <div class="tool-card"> | |
| <div class="tool-title">Hedge Position Manager</div> | |
| <div class="tool-desc">Automate your hedge positions with dynamic rebalancing</div> | |
| <a href="#" class="btn">View Tool</a> | |
| </div> | |
| <div class="tool-card"> | |
| <div class="tool-title">Market Maker Bot</div> | |
| <div class="tool-desc">Python-based market making strategy with customizable parameters</div> | |
| <a href="#" class="btn">View Tool</a> | |
| </div> | |
| </div> | |
| `; | |
| } | |
| } | |
| customElements.define('binance-tools', BinanceTools); |