Skip to main content
POST
/
v2
/
global_markets_perps
/
execute
Python (SDK)
from compass_api_sdk import CompassAPI


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.global_markets_perps.global_markets_perps_execute(action={
        "key": "<value>",
        "key1": "<value>",
    }, nonce=511479, signature="<value>")

    # Handle response
    print(res)
{
  "status": "<string>",
  "response": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.compasslabs.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Body

application/json

Submit a signed Hyperliquid action for execution.

action
Action · object
required

Raw Hyperliquid action from the prepare step

nonce
integer
required

Nonce from the prepare step

signature
string
required

User's EIP-712 signature (hex, 65 bytes)

vault_address
string | null

Optional vault address

Response

Successful Response

Returned after submitting a signed action to the Hyperliquid exchange.

status
string
required

'ok' or 'error'

response
Response · object

Hyperliquid response data (order statuses, etc.)