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


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

    res = compass_api.traditional_investing.traditional_investing_execute(action={
        "key": "<value>",
        "key1": "<value>",
        "key2": "<value>",
    }, nonce=31516, signature="<value>")

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

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.)