Skip to main content
POST
Execute an action
Returns 200 with an action whose transactions[] you sign and submit in the order returned, using Submit a transaction, then poll Get an action. Nothing executes until a signed payload is submitted. All 14 action types are accepted; each provider’s supportedActions and argument schemas come from GET /v1/providers. Beyond the requested action, the response can contain transactions returned before it, such as APPROVE_BUILDER_FEE and SET_USER_ABSTRACTION. Sign every transaction returned, in order, even if you did not request it. Required arguments per action are in Action arguments.
Open a limit order
Errors use the details.code envelope described in Errors and retries. Codes specific to this route:
POST /v1/actions is the only Perps route behind the geolocation guard; it returns 403 for blocked regions. Read the perpetuals disclaimer before integrating.

Authorizations

x-api-key
string
header
required

Body

application/json
providerId
string
required

Provider identifier

Example:

"hyperliquid"

address
string
required

User wallet address

Example:

"0x1234..."

action
enum<string>
required

Action to execute

Available options:
open,
close,
updateLeverage,
stopLoss,
takeProfit,
cancelOrder,
editOrder,
fund,
withdraw,
approveAgent,
approveBuilderFee,
updateMargin,
setTpAndSl,
setUnifiedAccount
Example:

"open"

args
object
required

Action arguments (validated via Zod in chains)

Response

Action created with unsigned transactions ready for signing

id
string
required

Unique action identifier (UUID)

Example:

"550e8400-e29b-41d4-a716-446655440000"

providerId
string
required

Provider identifier

Example:

"hyperliquid"

action
enum<string>
required

Action type executed

Available options:
open,
close,
updateLeverage,
stopLoss,
takeProfit,
cancelOrder,
editOrder,
fund,
withdraw,
approveAgent,
approveBuilderFee,
updateMargin,
setTpAndSl,
setUnifiedAccount
Example:

"open"

status
enum<string>
required

Current action status

Available options:
CANCELED,
CREATED,
WAITING_FOR_NEXT,
PROCESSING,
FAILED,
SUCCESS,
STALE
Example:

"CREATED"

summary
object | null
required

Human-readable breakdown of what this action does

transactions
object[]
required

Unsigned transactions to sign and submit

createdAt
string<date-time>
required

When the action was created

Example:

"2026-02-19T10:23:45.000Z"

completedAt
string<date-time> | null
required

When the action completed (null if still in progress)

Example:

"2026-02-19T10:23:48.000Z"

signedMetadata
object

TLV-encoded, secp256k1-signed metadata.

Hex string of concatenated TLV fields. Each field: Tag (1 byte) + Length (1 byte) + Value (N bytes). Tags > 0x7f use a 3-byte header: 0x81 prefix + Tag (1 byte) + Length (1 byte).

Fields in order: STRUCTURE_TYPE (0x01), VERSION (0x02), ACTION_TYPE (0x81 0xd0, u8: order=0x00 modify=0x01 cancel=0x02 updateLeverage=0x03 close=0x04 updateIsolatedMargin=0x05), ASSET_ID (0x81 0xd1, uint32 BE), ASSET_TICKER (0x24, UTF-8), NETWORK_TYPE (0x81 0xd2), BUILDER_ADDRESS (0x81 0xd3, 20 bytes, optional), MARGIN (0x81 0xd4, u64 big-endian, USD value with 6 decimal precision, e.g. 87500000 = $87.50, optional), LEVERAGE (0x81 0xd5, u32 big-endian, optional), SIGNATURE (0x15, DER-encoded secp256k1 over SHA-256 of preceding bytes).

Example:

"01012b02010181d0010081d1040000000b24034152421547..."