Expand description
Core types for the Hyperliquid SDK.
These types mirror the Hyperliquid API exactly for byte-identical serialization.
Modules§
- const_
hex_ b128 - B128 hex serialization
- decimal_
normalized - Normalized decimal serialization (removes trailing zeros)
- oid_
or_ cloid - Serde module for OidOrCloid
Structs§
- Action
Request - Signed action request
- Agent
SetAbstraction - Agent set abstraction
- Approve
Agent - Approve agent (API key)
- Approve
Builder Fee - Approve builder fee
- Batch
Cancel - Batch cancel
- Batch
Cancel Cloid - Batch cancel by client order ID
- Batch
Modify - Batch modification
- Batch
Order - Batch of orders
- Builder
- Builder fee information
- CDeposit
- Stake (cDeposit)
- CWithdraw
- Unstake (cWithdraw)
- Cancel
- Cancel request
- Cancel
ByCloid - Cancel by client order ID
- Close
Position - Close position
- Modify
- Order modification
- Noop
- No-op (consume nonce)
- Order
Request - Order request for the API
- Reserve
Request Weight - Reserve request weight (purchase rate limit capacity)
- Schedule
Cancel - Schedule cancel (dead-man’s switch)
- Send
Asset - Send asset
- Signature
- ECDSA signature (r, s, v format)
- Spot
Send - Spot token transfer
- Token
Delegate - Delegate tokens
- TopUp
Isolated Only Margin - Top up isolated only margin
- Twap
Cancel - TWAP cancel
- Twap
Order - TWAP order
- Twap
Spec - TWAP order specification
- Update
Isolated Margin - Update isolated margin
- Update
Leverage - Update leverage
- UsdClass
Transfer - USD class transfer (perp <-> spot)
- UsdSend
- USD transfer
- User
SetAbstraction - User set abstraction
- Validator
L1Stream - Validator L1 stream (vote on risk-free rate)
- Vault
Transfer - Vault transfer (deposit/withdraw)
- Withdraw3
- Withdraw to Arbitrum
Enums§
- Action
- All possible actions that can be sent to the exchange
- Chain
- Hyperliquid chain (Mainnet or Testnet)
- Order
Grouping - Order grouping for TP/SL attachment
- Order
Type Placement - Order type for placement (limit or trigger)
- Side
- Order side
- TIF
- Time in force for orders
- Time
InForce - Time in force for the wire format (PascalCase)
- TpSl
- Take profit or stop loss trigger type
Constants§
- CORE_
MAINNET_ EIP712_ DOMAIN - EIP-712 domain for Hyperliquid signing
Type Aliases§
- Cloid
- Client Order ID - 128-bit unique identifier
- OidOr
Cloid - Either an order ID (u64) or a client order ID (Cloid)