Skip to main content
POST
/
orders
Create multiple orders
curl --request POST \
  --url https://clob.kuest.com/orders \
  --header 'Content-Type: application/json' \
  --header 'KUEST_ADDRESS: <kuest_address>' \
  --header 'KUEST_API_KEY: <kuest_api_key>' \
  --header 'KUEST_PASSPHRASE: <kuest_passphrase>' \
  --header 'KUEST_SIGNATURE: <kuest_signature>' \
  --header 'KUEST_TIMESTAMP: <kuest_timestamp>' \
  --data '
[
  {
    "order": {
      "tokenId": "<string>",
      "conditionId": "<string>",
      "maker": "<string>",
      "signer": "<string>",
      "taker": "<string>",
      "makerAmount": "<string>",
      "takerAmount": "<string>",
      "side": "BUY",
      "nonce": "<string>",
      "feeRateBps": "<string>",
      "salt": "<string>",
      "signatureType": 0,
      "signature": "<string>",
      "expiration": "<string>",
      "metadata": {}
    },
    "orderType": "FOK",
    "owner": "<string>",
    "postOnly": false
  }
]
'
[
  {
    "success": true,
    "errorMsg": "<string>",
    "orderID": "<string>",
    "takingAmount": "<string>",
    "makingAmount": "<string>",
    "status": "<string>"
  }
]
Submit up to 15 orders in one request. Every entry in the array shares the same payload shape as POST /order, so you can mix execution policies or token IDs while saving round trips.
Batch placement also requires L2 authentication headers: KUEST_ADDRESS, KUEST_SIGNATURE, KUEST_TIMESTAMP, KUEST_API_KEY, and KUEST_PASSPHRASE. Review the flow in the Authentication overview.
If the system-wide pause is active, the batch request responds with 409 and {"error":"system_paused"}. Books paused individually still return 409 along with {"error":"condition_paused"}. Every entry in the batch must use an owner value that matches KUEST_ADDRESS; otherwise the API returns 400 with {"error":"owner_address_mismatch"}.
Each entry in the response includes a status field mirroring Place single order. Every array entry mirrors the single-order placement response structure, enabling you to inspect insert success, warnings, and order IDs independently. Need to check the final state of a submitted order? Call GET /data/order/{id}. To revoke any remaining quantity, use DELETE /order.

Batch item fields

Each array element accepts the same fields documented in POST /order. Provide the owner field alongside orderType and the nested order payload so it matches the KUEST_ADDRESS header. Key constraints repeated here for convenience:
FieldTypeRequiredDescription
ownerstringYesPolygon address that owns the API key. Must match the KUEST_ADDRESS header.
orderTypestringYesTime-in-force policy for the order (FOK, FAK, GTC, GTD).
postOnlybooleanNoWhen true, the order must rest on the book (GTC/GTD only).
orderobjectYesFull order payload identical to the single-order endpoint.
order.tokenIdstringYesIdentifier of the token/outcome being traded.
order.conditionIdstringYesMarket condition identifier tied to the token.
order.expirationstringConditionalRequired for GTD, optional elsewhere.
order.makerstringYesAddress that holds the asset being offered.
order.signerstringYesAddress that signed the order.
order.takerstringYesCounterparty address (use the zero address for open orders).
order.makerAmountstringYesMaker quantity with fixed precision.
order.takerAmountstringYesTaker quantity with fixed precision.
order.sidestringYesEither BUY or SELL.
order.metadataobject|nullNoOptional JSON metadata stored with the order.
order.noncestringYesMonotonic maker nonce.
order.feeRateBpsstringYesMaker fee rate in basis points.
order.saltstringYesUnique entropy for replay protection.
order.signatureTypenumberYes0 = EOA, 1 = proxy signer, 2 = Gnosis Safe signer.
order.signaturestringYesHex-encoded signature over the order payload.
order.metadata remains optional just like the single-order endpoint and can be omitted entirely in batch submissions. order.side must be the uppercase string BUY or SELL, and owner must align with the KUEST_ADDRESS header. When the exchange enforces a minimum fee, order.feeRateBps must be greater than or equal to the base fee returned by GET /fee-rate for the same order.tokenId.

Order types

TypePartial fills?Rests on the book?Auto expiration?
FOK (Fill-Or-Kill)❌ No❌ No✅ Immediately if not 100% filled
FAK (Fill-And-Kill / IOC)✅ Yes❌ No✅ Any remaining size cancels right away
GTC (Good-Til-Cancelled)✅ Yes✅ Yes, until cancelled❌ No
GTD (Good-Til-Date)✅ Yes✅ Yes, until the given timestamp✅ At the specified expiration time
For GTD, remember the one-minute safety buffer: if the order should expire in 90 seconds, set expiration = now + 90 + 60. Requests with fewer than 1 or more than 15 entries return HTTP 400 Bad Request without per-order results. When the batch exceeds the limit, the response body includes the message "batch supports at most 15 orders" to clarify the rejection.

Headers

KUEST_ADDRESS
string
required

Checksummed wallet address performing the request.

KUEST_API_KEY
string<uuid>
required

API key obtained from the L1 derivation endpoint.

KUEST_PASSPHRASE
string
required

64 character hexadecimal passphrase associated with the API key.

KUEST_TIMESTAMP
string
required

Millisecond epoch timestamp (string) used for freshness checks.

KUEST_SIGNATURE
string
required

Hex-encoded HMAC-SHA256 signature built from the L2 signing string.

Body

application/json
Required array length: 1 - 15 elements
order
object
required
orderType
enum<string>
required

Time-in-force policy for the order.

Available options:
FOK,
FAK,
GTC,
GTD
owner
string
required

API key owner issuing the request.

postOnly
boolean
default:false

When true, the order must rest on the book (GTC/GTD only).

Response

Batch order placement results

success
boolean
required

Indicates whether the order was accepted.

errorMsg
string
required

Human-readable status for the placement.

orderID
string
required

Order identifier when accepted.

takingAmount
string
required

Taker amount reported by the placement engine (empty when not provided).

makingAmount
string
required

Maker amount reported by the placement engine (empty when not provided).

status
string
required

Placement status (e.g. live or error).