Skip to main content
POST
/
v2
/
traditional_investing
/
limit_order
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_limit_order(owner="0x01E62835dd7F52173546A325294762143eE4a882", asset="AAPL", side="buy", size="10.0", price="190.00", time_in_force="gtc", reduce_only=False)

    # Handle response
    print(res)
{
  "typed_data": {},
  "action": {},
  "nonce": 123
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Body

application/json

Request to place a limit order on a traditional investing perp market.

owner
string
default:0x01E62835dd7F52173546A325294762143eE4a882
required

Owner of the traditional investing product account

asset
string
default:AAPL
required

Asset ticker symbol (e.g. AAPL, GOLD, EUR)

side
string
default:buy
required

Order side: 'buy' or 'sell'

size
string
default:10.0
required

Number of contracts (human-readable)

price
string
default:190.00
required

Limit price (human-readable)

time_in_force
string
default:gtc

Time-in-force: 'gtc' (good til cancel) or 'alo' (add liquidity only)

reduce_only
boolean
default:false

If true, order can only reduce an existing position

client_order_id
integer | null

Optional client order ID for idempotency (uint128)

Response

Successful Response

Returned by prepare endpoints — contains EIP-712 typed data for the user to sign.

typed_data
Typed Data · object
required

EIP-712 typed data for wallet signing (domain, types, primaryType, message)

action
Action · object
required

Raw Hyperliquid action (passed back to the execute endpoint)

nonce
integer
required

Timestamp-based nonce used during signing