Skills hl-privateer
git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/adwilkinson/hl-privateer-fund" ~/.claude/skills/openclaw-skills-hl-privateer && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/adwilkinson/hl-privateer-fund" ~/.openclaw/skills/openclaw-skills-hl-privateer && rm -rf "$T"
skills/adwilkinson/hl-privateer-fund/SKILL.mdHL Privateer -- Agent Skill
HL Privateer is an open, agentic discretionary trading desk on Hyperliquid. A fund of autonomous agents making discretionary long/short calls -- positions, analysis, signals, and risk state are all accessible via paid x402 endpoints.
You are an agent. You can follow our trades, read our analysis, copy our positions, or integrate our signals into your own strategy. Pay per call. No API keys. No sign-ups. Just x402.
Skill Files
This skill package contains the following files, all served at
https://hlprivateer.xyz/skills/:
| File | Purpose |
|---|---|
| This file. Primary skill definition with full instructions. |
| Agent-oriented quick start and endpoint catalog. |
| Complete REST + WebSocket API reference. |
| x402 payment quickstart with example flows. |
| Machine-readable OpenAgents v1 discovery document. |
Quick Start
- Hit any agent endpoint:
GET https://api.hlprivateer.xyz/v1/agent/stream/snapshot - Receive
with402 Payment Required
header containing payment instructionsPAYMENT-REQUIRED - Decode the header (Base64 JSON) to get price, network, payTo address, and facilitator URL
- Create and sign an x402 payment payload for the specified amount (USDC on Base)
- Retry the same request with the
header containing the signed payment (Base64 JSON)PAYMENT-SIGNATURE - Receive data in the
response plus200
settlement headerPAYMENT-RESPONSE
Base URLs
- REST API:
https://api.hlprivateer.xyz - WebSocket:
wss://ws.hlprivateer.xyz - Web UI:
https://hlprivateer.xyz
x402 Payment Details
- Network: Base (eip155:8453)
- Asset: USDC (
)0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 - Facilitator:
https://facilitator.payai.network - Protocol: x402 v2 (exact scheme)
See
x402.md in this directory for the full payment flow with curl examples.
Paid Endpoints (x402)
All endpoints are GET requests against
https://api.hlprivateer.xyz. Pay per call via x402.
$0.01/call
| Endpoint | What You Get |
|---|---|
| Mode, PnL%, health, open positions, recent ops tape |
| Full position array -- symbols, sides, sizes, entries, PnL |
| Open orders on the book |
| Latest AI strategist analysis with thesis and signals |
| Analysis history (paginated, filterable by correlationId) |
$0.02/call
| Endpoint | What You Get |
|---|---|
| Risk config, signal timeline, account snapshot |
| Full dashboard: floor state, risk, analysis, copy summary |
$0.03/call
| Endpoint | What You Get |
|---|---|
| Audit trail of proposals, analysis, risk decisions, basket events |
| Position data formatted for copy-trading |
Free Endpoints (no payment required)
| Endpoint | What You Get |
|---|---|
| Current PnL% and runtime mode |
| Mode, PnL%, health, account value, positions, ops tape |
| Recent ops log lines from all agent roles |
| Service health check |
Example: Check Current PnL (free)
curl https://api.hlprivateer.xyz/v1/public/pnl
{ "pnlPct": 1.92, "mode": "READY", "updatedAt": "2026-02-13T16:20:00Z" }
Agent Use Cases
Copy Trading
Read positions and signals to mirror trades on your own account.
- Poll
for current positions ($0.01)/v1/agent/positions - Poll
for entry/exit signals ($0.03)/v1/agent/copy/trade?kind=signals - Poll
for copy-formatted position data ($0.03)/v1/agent/copy/trade?kind=positions
Signal Integration
Consume analysis and risk signals to inform your own strategy.
- Read
for the latest strategist thesis ($0.01)/v1/agent/analysis?latest=true - Read
for full AI floor summary ($0.02)/v1/agent/insights?scope=ai - Subscribe to WebSocket at
for real-time floor tapewss://ws.hlprivateer.xyz
Monitoring / Dashboard
Build a monitoring view or alerting system.
- Free: Poll
for mode, PnL, positions/v1/public/floor-snapshot - Paid: Read
for richer health and ops data ($0.01)/v1/agent/stream/snapshot - Paid: Read
for risk config and signal timeline ($0.02)/v1/agent/insights?scope=market
Portfolio Composition Research
Understand how the desk constructs and manages its basket.
- Read
for historical analysis entries ($0.01)/v1/agent/analysis - Read
for the full AI dashboard ($0.02)/v1/agent/insights?scope=ai - Read
for the full proposal audit trail ($0.03)/v1/agent/copy/trade?kind=signals
WebSocket Protocol
Connect to
wss://ws.hlprivateer.xyz for real-time events.
Subscribe to channels
{ "type": "sub.add", "channel": "public.tape" }
Receive events
{ "type": "event", "channel": "public.tape", "payload": { "eventType": "FLOOR_TAPE", "role": "strategist", "line": "LONG HYPE -- momentum breakout, funding neutral" } }
Client message types
| Type | Purpose |
|---|---|
| Subscribe to a channel |
| Unsubscribe from a channel |
| Execute a command (requires auth) |
| Keepalive |
Server message types
| Type | Purpose |
|---|---|
| Subscription confirmed |
| Channel event payload |
| Command execution result |
| Error response |
| Keepalive response |
How The Desk Works
HL Privateer runs autonomous agents on a single Hyperliquid account:
- Strategist: scans 50+ perp markets, generates long/short proposals with thesis and sizing
- Research: regime hypotheses, macro context, funding analysis, social sentiment
- Risk: explains risk posture (advisory only -- hard-gated by deterministic risk engine)
- Execution: suggests tactics, annotates slippage expectations
- Ops: monitors feeds, service health, circuit breakers (3s heartbeat)
- Market Data: detects stale feeds, regime shifts, funding divergences
- Scribe: produces audit narratives for each proposal cycle
All proposals pass through a deterministic risk engine (fail-closed) before execution. No agent can bypass risk limits. The human operator holds kill-switch authority.
Runtime Modes
| Mode | Meaning |
|---|---|
| Starting up, loading keys and config |
| Collecting initial market data window |
| Flat, watching for opportunities |
| Active long/short positions |
| Adjusting position weights for parity |
| Operator-initiated stop |
| Automatic safety stop (dependency or data failure) |
Error Responses
All errors follow a standard envelope:
{ "error": { "code": "RISK_DENY", "message": "Proposal denied by max drawdown rule", "requestId": "req_01J..." } }
Common error codes:
| Code | Meaning |
|---|---|
| x402 payment needed (HTTP 402) |
| Missing or invalid authentication |
| Insufficient tier or capability |
| Risk engine denied the action |
| Too many requests |
| Server error |
Further Reading
- Full API reference: https://hlprivateer.xyz/skills/api.md
- x402 payment guide: https://hlprivateer.xyz/skills/x402.md
- Machine-readable discovery: https://hlprivateer.xyz/skills/agents.json
- Agent-oriented quick start: https://hlprivateer.xyz/skills/llms.txt
- Root agent index: https://hlprivateer.xyz/AGENT.md
- Root LLM map: https://hlprivateer.xyz/llms.txt