بنقرة واحدة
sapphire-hyperliquid
Hyperliquid L1 perpetuals trading bot — EIP-712 signed orders, 150+ assets
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Hyperliquid L1 perpetuals trading bot — EIP-712 signed orders, 150+ assets
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Infrastructure-as-code — GCP Terraform, Pi deployment configs, Docker
Trading engine — signals, risk, execution, self-improvement loop
PM hub — project board, task scoring, event stream, Telegram integration
Send a test trading signal through the Sapphire pipeline
Agent dispatch — OpenClaw, NemoClaw, orchestrator, runtime policy
Aster DEX trading bot — Solana perpetuals, CEX-style API, Shield HFT strategy
| name | sapphire-hyperliquid |
| description | Hyperliquid L1 perpetuals trading bot — EIP-712 signed orders, 150+ assets |
| type | service |
| runtime | python |
| deploy_target | rari2 |
| dependencies | ["sapphire-core"] |
| entry_point | src/hyperliquid_bot/main.py |
| test_command | pytest tests/ |
Trading bot for Hyperliquid (https://api.hyperliquid.xyz) — a high-performance L1 DEX for perpetuals.
src/hyperliquid_bot/public_feed.py is the Sapphire signal-only public feed.
It subscribes to public trades, bbo, and l2Book WebSocket feeds for
configured symbols and emits only read-only event-bus signals:
hyperliquid.tradehyperliquid.imbalancehyperliquid.book.thinIt is blocked unless SAPPHIRE_HYPERLIQUID_LIVE=1 and still never reads wallet
keys, never calls authenticated endpoints, and never submits trades.
Dry-run tool checks:
echo '{"action":"status"}' | /usr/local/bin/python3 plugins/claw-sapphire/tools/hyperliquid.py
echo '{"action":"subscribe-test"}' | /usr/local/bin/python3 plugins/claw-sapphire/tools/hyperliquid.py
https://api.hyperliquid.xyz (no API key, wallet signs orders)https://api.hyperliquid-testnet.xyzwss://api.hyperliquid.xyz/wsclient.py — Async HTTP client (market data + signed order execution)
main.py — Bot loop, signal execution, pubsub subscription
Store in Secret Manager as hyperliquid-private-key:
HYPERLIQUID_PRIVATE_KEY — Ethereum wallet private key (0x-prefixed)HYPERLIQUID_TESTNET — set to true for testnet (default: false)HYPERLIQUID_SIZE_USD — default position size in USD (default: 100)# Copy to rari2
rsync -av services/hyperliquid/ rari@100.x.x.y:/home/rari/Sapphire/services/bot-hyperliquid/
# Install deps in isolated venv
ssh rari@100.x.x.y "cd ~/Sapphire/services/bot-hyperliquid && python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt"
# Install systemd service
ssh rari@100.x.x.y "sudo systemctl enable --now hyperliquid-trading.service"
BTC, ETH, SOL, HYPE (native token), ZEC — same signals as Lighter bot but routed here when configured.