Add live dashboard with WebSocket PnL streaming, deploy at ftdt.io/cv
Built a tasteful dark-themed dashboard showing real-time strategy performance. Components: - dashboard/server.py: FastAPI + WebSocket backend that collects strategy metrics and streams them to connected clients - dashboard/static/index.html: Clean single-page dashboard with equity curve (Chart.js), per-strategy PnL cards with Sharpe, win rate, drawdown, and a live trade log - Deployed as a background process on port 9175, proxied by Caddy at ftdt.io/cv via handle_path Also added docs/WALLET_SETUP.md with step-by-step instructions for setting up a Hyperliquid testnet wallet and claiming faucet USDC. Design: dark theme, JetBrains Mono for numbers, Inter for labels, status dots with pulse animation. No bloat — one HTML file + vanilla JS.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
# Hyperliquid Testnet Wallet Setup
|
||||
|
||||
To run the strategies on Hyperliquid Testnet, you need a wallet
|
||||
with testnet USDC. Here's how to set it up.
|
||||
|
||||
## 1. Create a wallet (if you don't have one)
|
||||
|
||||
Hyperliquid uses standard Ethereum wallets. You can generate one:
|
||||
```bash
|
||||
# Using Python (never use this key on mainnet!)
|
||||
python3 -c "
|
||||
from eth_account import Account
|
||||
acct = Account.create()
|
||||
print(f'Address: {acct.address}')
|
||||
print(f'Private Key: 0x{acct.key.hex()}')
|
||||
"
|
||||
```
|
||||
|
||||
Or use any Ethereum wallet you already have (MetaMask, Rabby, etc.)
|
||||
|
||||
## 2. Deposit on mainnet first
|
||||
|
||||
The testnet faucet only works for addresses that have deposited
|
||||
on Hyperliquid mainnet. Send a small amount of USDC to your
|
||||
address on mainnet (app.hyperliquid.xyz).
|
||||
|
||||
## 3. Get testnet USDC
|
||||
|
||||
Go to https://app.hyperliquid-testnet.xyz/drip and claim
|
||||
1,000 mock USDC. You can claim once every 4 hours.
|
||||
|
||||
## 4. Set the environment variable
|
||||
|
||||
```bash
|
||||
export HYPERLIQUID_TESTNET_PK=0x_your_private_key_here
|
||||
```
|
||||
|
||||
## 5. Verify
|
||||
|
||||
```bash
|
||||
curl -s https://api.hyperliquid-testnet.xyz/info \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"type":"clearinghouseState","user":"YOUR_ADDRESS"}'
|
||||
```
|
||||
|
||||
You should see your testnet balance in the response.
|
||||
Reference in New Issue
Block a user