Skip to main content
The Pacifica Python SDK provides a comprehensive example on using this endpoint.

Request

FieldTypeNeedDescriptionExample
”id”Full UUID stringrequiredClient-defined request ID660065de-8f32-46ad-ba1e-83c93d3e3966
”params”objectrequiredContains action type and action parameters”create_order"
"create_order”objectrequiredSpecifies action type and contains parametersSee examples.
”account”stringrequiredUser’s wallet address42trU9A5…
“agent_wallet”stringoptionalAgent wallet address69trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”expiry_window”integeroptionalSignature expiry in milliseconds30000
”symbol”stringrequiredTrading pair symbolBTC
”price”stringrequiredOrder price50000
”reduce_only”booleanrequiredWhether the order is reduce-onlyfalse
”amount”stringrequiredOrder amount0.1
”side”stringrequiredOrder side (bid/ask)bid
”tif”stringrequiredTime in force (GTC, IOC, ALO, TOB)GTC
”client_order_id”Full UUID stringoptionalClient-defined order IDf47ac10b-58cc-4372-a567-0e02b2c3d479
”builder_code”stringoptionalBuilder program code (3-16 alphanumeric)MYCODE
”take_profit”objectoptionalTake profit stop order configurationSee next three rows
”stop_price”stringrequired (if “take_profit” exists)Stop trigger price55000
”limit_price”stringoptionalLimit price for the triggered order54950
”client_order_id”stringFull UUID stringClient-defined order ID for the stop ordere36ac10b-58cc-4372-a567-0e02b2c3d479
”trigger_price_type”stringoptionalPrice type to trigger stop. Options: mark_price (default), last_trade_price, mid_pricemark_price
”stop_loss”objectoptionalStop loss order configurationSee next three rows
”stop_price”stringrequired (if “stop_loss” exists)Stop trigger price48000
”limit_price”stringoptionalLimit price for the triggered order47950
”client_order_id”stringFull UUID stringClient-defined order ID for the stop orderd25ac10b-58cc-4372-a567-0e02b2c3d479
”trigger_price_type”stringoptionalPrice type to trigger stop. Options: mark_price (default), last_trade_price, mid_pricemark_price

Response

On error, the frame omits data and instead carries an err (string) field describing the failure, alongside the same id, type, code, t, and rl fields. Note: In order to protect liquidity providers from adverse selection, all TIF GTC, and TIF IOC orders are subject to a ~200ms delay.