Skip to main content
This section covers Hyperliquid-specific behavior that goes beyond the generic SDK documentation. For general concepts, see the Concepts section.

Topics

  • Signing Model — Phantom agent signing and the SDK-managed agent
  • Deposits — Funding your Hyperliquid account via LI.FI or the Arbitrum bridge
  • Setup — One-time account setup before trading
  • Trading — All account setup and trading actions with parameters
  • Withdrawals — Withdrawing USDC to Arbitrum
  • Account Abstraction — Account types, unified accounts, and configuration
  • WebSocket Protocol — Native WebSocket protocol, channel mapping, and rate limits

Defaults & assumptions

  • Default margin mode: CROSS — applied when marginMode is omitted on placeOrder or updateLeverage. For markets where cross margin is unavailable, check onlyIsolated on PerpsMarket before presenting a margin mode toggle in your UI.
  • Trade signing: trading actions are signed by the SDK-managed agent — no per-trade wallet popup.
  • Order fields: type and price are required on every order.
  • Withdrawals & sendAsset: signed by the user’s L1 wallet every time; agents cannot move funds.

Notes

  • Multiple quote assets are supported across HIP-3 venues (USDC, USDH, USDE, USDT0). See Trading / Available Markets for the current list.
  • Concepts — The action pattern, streaming, and multi-provider support
  • SDK / Streaming — Subscribe to live market data and user events via WebSocket
  • SDK / Account — Fetch account balances, positions, and fills
  • SDK / Trading — Place orders, cancel orders, and query order status
  • SDK / Actions — The create -> sign -> execute pattern for all operations
  • LI.FI Docs — Cross-chain swap and bridge for deposits