Trade gTrade perps via CAI — defi_markets, defi_preflight, defi_trade, defi_order_status, hosted /act enrollment. Requires platform or full API scope. Powere...
Coding
CAI: hyperliquid-with-cai
Try itTrade Hyperliquid perps via CAI — defi_markets, defi_preflight, defi_trade, defi_order_status, no HL website signup. Requires platform or full API scope. Pow...
What it does
Trade Hyperliquid perps via CAI — defi_markets, defi_preflight, defi_trade, defi_order_status, no HL website signup. Requires platform or full API scope. Powered by CAI.com. Canonical skill v1.0.17.
The skill document
Hyperliquid with CAI (Route B)
CAI E-mode trades Hyperliquid perpetuals using a custodial EVM address and a derived agent key. The user does not register on hyperliquid.xyz. Protocol onboarding is approveAgent (and optional deposit) via hosted /act, not a separate HL account.
When to Use
- "Trade Hyperliquid perps with my CAI wallet"
- "Enable HL agent trading without creating a Hyperliquid account"
- "Place a small BTC perp on Hyperliquid after enrollment"
- "Show my HL open orders and positions"
Route B task flow (preferred)
- User enables hyperliquid at
https://cai.com/automation-settings. platform_readinessordefi_portfoliowithplatform_slug=hyperliquid. Ifdeposit_required, guide user through/actwith optionalhl_deposit_usdor explain bridge timing (~1 min after ARB USDC bridge).- If not enrolled:
platform_automation_enrollwithplatform_slug=hyperliquid→ user completes/act(approveAgent). - Markets:
defi_marketswithplatform_slug=hyperliquidand optionaldex— resolveassetfrom catalog. - Preflight:
defi_preflightuntilvalid: true. - Place:
defi_tradeexample:platform_slug:hyperliquidaction:placeasset:BTC(or HIP-3xyz:SYMBOL)size,price,is_buy,intent_usd, optionaldex
- Status (primary): poll
defi_order_statuswith returned canonicalorder_iduntilis_terminal: true. - Status (secondary):
defi_orders(?status=active) anddefi_positionswith?platform_slug=hyperliquid. - Close:
defi_tradewithaction:close,asset,close_mode=full(orintent_usd=max) — reduce-only; notrade_index. - Cancel:
defi_tradewithaction:cancel,oid+asset(orcancels[]). - Sell guard:
place+is_buy=falsewithout long → preflightNO_POSITION_TO_CLOSE— useaction=closeinstead.
Legacy aliases (deprecated)
hyperliquid_readiness,hyperliquid_place_order,hyperliquid_cancel,hyperliquid_positions— do not use in new flows.
What NOT to say
- Do not tell users to "register on Hyperliquid" or "login to hyperliquid.xyz".
- Do not use
transfer_statusfor HL order lifecycle (usedefi_orders).
Honesty
gap_id:GAP_DEFI_HYPERLIQUID_V1,GAP_DEFI_AUTOMATION_V1—partial_liveuntil enroll + trade smokes pass.- Agent key cannot withdraw to arbitrary addresses (protocol design).
- HIP-3 / trade.xyz markets: use
assetlikexyz:NVDAordexparam — see trade-xyz-with-cai wrapper for narrative.
Quick Setup
openclaw secrets set CAI_API_KEY "your_dashboard_api_key"
Scope: platform or full.
Canonical Reference
Related skills
Current Hyperliquid perpetual funding rates across tracked coins
Read live Hyperliquid market data from the desk computer with curl or the Python SDK - mid, mark and oracle prices, order book depth, funding (current, predicted, historical), open interest, volume, candles, perp and spot metadata, margin tiers, and how to save datasets for the strategy lab. Read-only, no key. Use for any market brief, depth read, funding question or data pull.
Trade Ostium RWA perps on Arbitrum via CAI — defi_markets, defi_preflight, defi_trade, defi_order_status, hosted /act enrollment. Requires platform or full A...
Backtest and deploy trading strategies on Superior Trade's managed cloud.
Manage Hyperliquid perp positions and margin from the desk computer - read positions and margin, set leverage and cross/isolated mode, add isolated margin, understand margin tiers and liquidation price, close a position with a reduce-only IOC, and clean up orphaned orders. Write actions are Execution Trader only, on an approved ticket. Use for leverage changes, closes, protection checks and margin questions.