Skip to main content

Operation Type (for Signing)

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”symbol”stringrequiredTrading pair symbolBTC
”side”stringrequiredOrder side (bid/ask)bid
”reduce_only”booleanrequiredWhether the order is reduce-onlyfalse
”stop_order”objectrequiredStop order configurationSee next five rows
”stop_price”stringrequiredStop trigger price48000
”limit_price”stringoptionalLimit price for the triggered order47950
”client_order_id”Full UUID stringoptionalClient-defined order ID for the stop orderd25ac10b-58cc-4372-a567-0e02b2c3d479
”trigger_price_type”stringoptionalPrice type used to trigger the stop order. Defaults to last_trade_price. Options: mark_price, last_trade_price, mid_pricemark_price
”amount”stringoptionalOrder amount (inside stop_order). If omitted, the full position size is used0.1
”agent_wallet”stringoptionalAgent wallet address69trU9A5…
“expiry_window”integeroptionalSignature expiry in milliseconds30000
”builder_code”stringoptionalBuilder program code (3-16 alphanumeric characters)MYCODE

Response

  • Status 200: Stop order created successfully
  • Status 400: Bad request
  • Status 500: Internal server error

Code Example (Python)