Skip to main content
The Hyperliquid provider exposes trading operations in the actions array from GET /providers. Each action lists which signers can execute it. For account setup actions (the provider’s setup array) and post-setup options (options), see Setup. For full parameter schemas, see the Actions API reference.

actions

These are returned in the actions array and are used for ongoing trading operations after account setup is complete.

placeOrder

Places a new order — market, limit, or with attached take-profit/stop-loss triggers. If the requested leverage differs from the current setting, the backend automatically prepends an updateLeverage action step.
SignersAGENT
ParamsPlaceOrderParams{ market, side, type?, size, price?, leverage?, marginMode?, reduceOnly?, timeInForce?, expiresAt?, takeProfit?, stopLoss? }
SDK methodsplaceOrder()

placeTriggerOrder

Places standalone take-profit and/or stop-loss triggers on an existing position, independent of a new order. The trigger size is determined by the current position.
SignersAGENT
ParamsPlaceTriggerOrderParams{ market, side, takeProfit?, stopLoss? }
SDK methodsplaceTriggerOrder()

cancelOrder

Cancels one or more open orders or trigger orders by ID.
SignersAGENT
ParamsCancelOrderParams{ ids }
SDK methodscancelOrders()

modifyOrder

Modifies existing orders in-place — change price, size, or trigger parameters without cancelling and re-placing.
SignersAGENT
ParamsModifyOrderParams{ modifications: [{ id, price?, size?, triggerPrice?, limitPrice? }] }
SDK methodsmodifyOrders()

updateLeverage

Changes the leverage setting for an asset. This affects new orders and existing positions on that asset.
SignersAGENT
ParamsUpdateLeverageParams{ market, leverage, marginMode? }
NoteUsually generated automatically by placeOrder when the requested leverage or margin mode differs from current

updatePositionMargin

Adds or removes margin on an isolated position. Use this to adjust liquidation price without changing the position size.
SignersAGENT
ParamsUpdatePositionMarginParams{ market, action: 'add' | 'remove', amount }
SDK methodsupdatePositionMargin()

sendAsset

Transfers collateral between Hyperliquid sub-exchanges (HIP-3 providers). For example, moving USDC from the default venue to the xyz venue, or between any two markets within the provider.
SignersUSER (agents cannot transfer assets)
ParamsSendAssetParams{ collateral, sourceDex, destinationDex, amount }
NoteUnder unifiedAccount mode, like-for-like quote assets are already shared — this is primarily useful for transfers between markets with different quote assets
Withdrawals are not part of the trading actions — they require a direct user signature and are documented separately. See Withdrawals.

categories

The categories array on the provider lists all trading categories. Each category’s id is used as the categoryId field in MarketRef. The list is built dynamically from Hyperliquid’s perpDexs endpoint at request time, so it always reflects the current set of active venues — including any HIP-3 sub-dexes that have launched since this page was written. A typical response looks like:
Category IDQuote AssetDescription
hyperliquidUSDCDefault perpetuals venue (Hyperliquid’s main '' perp dex)
<sub-dex name>USDC / USDH / USDE / USDT0 / …One entry per active HIP-3 sub-dex (xyz, flx, hyna, etc.). Quote asset is determined by the sub-dex’s collateralToken.
spotSpot category (no quote asset)
The set of HIP-3 sub-dexes changes as new venues launch — names and quote assets are not stable. Always read the live GET /providers response (or getProviders() from the SDK) to discover the current set of categories and their quote assets, rather than hard-coding values from this page.