Providers
Both settle in USDC on the
hyperliquid network. Use GET /v1/providers for the live list and for each provider’s supportedActions. GET /v1/providers lists every provider; a project explicitly disabled for a provider or for Perps gets 403 EXECUTE_FORBIDDEN on POST /v1/actions.
Action types
action in Execute an action and type filter in List actions. All 14 values are accepted by the API.
Action arguments
All fields ofargs are optional in the request schema; the action validates the ones it needs. R means required, O optional, blank means not used.
Notes on
open:
amountis margin in USD;sizeis position notional in USD. The notional must be at least 10 USD:sizeof at least 10, oramounttimesleverageof at least 10.- With
limitPricethe order is a limit order; without it, a market order. marginModeiscrossorisolatedand defaults toisolated. It cannot change while a position is open.closewithsizealso requires at least 10 USD notional.
fundingMethod is bridge2 (direct Hyperliquid Bridge2, Arbitrum USDC only, minimum 5 USDC) or lifi (any supported token and network). When omitted, bridge2 is used for Arbitrum USDC and lifi otherwise.
Amounts and sizes are decimal strings; prices, leverage and validUntil are numbers.
Action statuses
status on an action: CREATED, WAITING_FOR_NEXT, PROCESSING, SUCCESS, FAILED, CANCELED, STALE.
An action starts as CREATED. Poll Get an action until it reaches SUCCESS, FAILED or CANCELED.
Transaction types
Each entry intransactions[] has a type, a status, a signingFormat and a signablePayload. signingFormat is EIP712_TYPED_DATA for Hyperliquid venue actions and EVM_TRANSACTION for Arbitrum funding transactions. The enum also declares SOLANA_TRANSACTION and COSMOS_TRANSACTION, which Perps providers do not use.
Declared type values: APPROVAL, OPEN_POSITION, CLOSE_POSITION, UPDATE_LEVERAGE, STOP_LOSS, TAKE_PROFIT, CANCEL_ORDER, EDIT_ORDER, FUND, WITHDRAW, APPROVE_BUILDER_FEE, ENABLE_DEX_ABSTRACTION, APPROVE_AGENT, UPDATE_MARGIN, SET_TP_AND_SL, SET_USER_ABSTRACTION.
Two types can be returned before the operation you requested, and must be signed and submitted in the order returned:
ENABLE_DEX_ABSTRACTION is declared but not returned by current actions.
Transaction statuses
CREATED, QUEUED, BROADCASTED, CONFIRMED, FAILED, NOT_FOUND.
After Submit a transaction, a signedPayload for Hyperliquid or Arbitrum typed data moves to QUEUED; a transactionHash moves to BROADCASTED. Only a CREATED transaction can be submitted.
Order types and sides
Margin modes
marginMode: cross (collateral shared across positions) or isolated (dedicated collateral per position). A market lists the modes it allows in supportedMarginModes.
Position fields
Returned by Get positions.Event types
eventType: order_filled, liquidation, stop_loss_triggered, take_profit_triggered.
Each event has id, eventType, providerId, occurredAt, optional marketId, perpActionId (null for liquidations), providerOrderId, explorerUrl, and an order object with orderId, side, type, originalSizeBase, remainingSizeBase, and optional limitPrice, triggerPrice, fillPrice and closedPnl. Fill events are one per partial fill.
Activity
Get activity returns items with atype discriminator: event (an event object, ordered by occurredAt) or action (an action object, ordered by createdAt).
