Skip to main content
HyperliquidPolymarket
POST/exchange

Request Headers

string
required
Must be application/json

Request Body

object
required
Signed action.
number
required
Replay-protection nonce, e.g., 1701234567890
object
required
Account owner or approved API wallet; use the exchange signing format.
string
Optional account-owner address. Rejects the request if the verified signer currently maps to another account. This unsigned check does not select an account or grant access.
number
Optional signed deadline in Unix milliseconds; requests after it are rejected

Entry triggers on assigned HIP-3

A perpetual stop or take order with r: false is an entry trigger. When it fires, it can open, add to, reduce, or reverse a position. It is accepted as a standalone order (grouping: "na") on an assigned HIP-3 market in isolated margin when POST /info with {"type": "config"} returns assignedEntryTriggersEnabled: true. Other perpetual triggers must be reduce-only. An account under liquidation or another trading restriction cannot place an entry trigger. An entry trigger waits as pending_trigger with no margin reserved. When its trigger price is reached it is placed under the same order ID and checked like an ordinary opening order at that time, including margin and fees, open-interest caps and the HIP-3 entry price bound. A market entry (isMarket: true) executes no worse than its signed limit or 1% from the mark price then, whichever is tighter. A limit entry places exactly its signed limit, so that limit must be within 1% of the trigger price on the adverse side (above it for a buy, below it for a sell); otherwise the item is rejected with Entry trigger limit must be within 1% of the trigger price: .... If the order is refused when it triggers, or cannot be placed within 10 seconds of its trigger price being reached, it ends rejected with code ENTRY_ACTIVATION_REJECTED, carrying the reason, or ENTRY_ACTIVATION_EXPIRED. It does not wait for another crossing. These codes appear as the order history’s rejectCode and on the user order rejections stream. A waiting entry trigger can be cancelled, a liquidation or trading restriction cancels it, and it can be modified until its trigger price is reached.

Response

Response Fields

string
"ok" when item results are returned; inspect each result for success or failure.
string
Always "order".
object
One result per input order, in request order.