curl --request POST \
--url https://api.example.com/order \
--header 'Content-Type: application/json' \
--data '
{
"order": {
"order.salt": "<string>",
"order.maker": "<string>",
"order.signer": "<string>",
"order.taker": "<string>",
"order.conditionId": "<string>",
"order.tokenId": "<string>",
"order.makerAmount": "<string>",
"order.takerAmount": "<string>",
"order.expiration": "<string>",
"order.nonce": "<string>",
"order.feeRateBps": "<string>",
"order.side": "<string>",
"order.signatureType": 123,
"order.signature": "<string>"
},
"orderType": "<string>",
"owner": "<string>"
}
'{
"orderID": "<string>",
"success": true,
"error": "<string>"
}Submit a new trading order to the CLOB (Central Limit Order Book)
curl --request POST \
--url https://api.example.com/order \
--header 'Content-Type: application/json' \
--data '
{
"order": {
"order.salt": "<string>",
"order.maker": "<string>",
"order.signer": "<string>",
"order.taker": "<string>",
"order.conditionId": "<string>",
"order.tokenId": "<string>",
"order.makerAmount": "<string>",
"order.takerAmount": "<string>",
"order.expiration": "<string>",
"order.nonce": "<string>",
"order.feeRateBps": "<string>",
"order.side": "<string>",
"order.signatureType": 123,
"order.signature": "<string>"
},
"orderType": "<string>",
"owner": "<string>"
}
'{
"orderID": "<string>",
"success": true,
"error": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kuestcom/prediction-market/llms.txt
Use this file to discover all available pages before exploring further.
KUEST_ADDRESS - User’s wallet addressKUEST_API_KEY - API key from trading auth credentialsKUEST_PASSPHRASE - Passphrase from trading auth credentialsKUEST_TIMESTAMP - Current Unix timestamp (seconds)KUEST_SIGNATURE - HMAC signature of the requestContent-Type: application/jsonAccept: application/jsonBUY or SELLGTC - Good Till Cancelled (limit order, default)GTD - Good Till Date (limit order with expiration)FOK - Fill Or Kill (must be fully filled immediately)FAK - Fill And Kill (fill partially, cancel remainder)makerAmount = price × shares (in micro units)takerAmount = shares (in micro units)makerAmount = shares (in micro units)takerAmount = price × shares (in micro units)condition_paused - Trading is paused for this marketsystem_paused - Trading is temporarily paused system-widenot enough balance / allowance - Insufficient available balanceorder expired - Order expiration timestamp is in the pastinvalid order signature - Signature verification failedorder is invalid. duplicated. - Identical order already existsorder couldn't be fully filled, fok orders are fully filled/killed - FOK order cannot be fillednot enough unlocked balance - Insufficient unlocked collateralpostonly would cross the best bid/ask - Post-only order would execute immediatelycurl -X POST 'https://api.kuest.io/order' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'KUEST_ADDRESS: 0x1234...' \
-H 'KUEST_API_KEY: your-api-key' \
-H 'KUEST_PASSPHRASE: your-passphrase' \
-H 'KUEST_TIMESTAMP: 1709467200' \
-H 'KUEST_SIGNATURE: computed-hmac-signature' \
-d '{
"order": {
"salt": "12345678901234567890",
"maker": "0xproxy...",
"signer": "0xuser...",
"taker": "0x0000000000000000000000000000000000000000",
"conditionId": "0xcondition...",
"tokenId": "123456789",
"makerAmount": "500000000",
"takerAmount": "1000000000",
"expiration": "0",
"nonce": "0",
"feeRateBps": "200",
"side": "BUY",
"signatureType": 0,
"signature": "0xsignature..."
},
"orderType": "GTC",
"owner": "your-api-key"
}'
```bash
## Example Response
```json
{
"orderID": "ord_abc123xyz789",
"success": true
}
```bash
## Order Types Explained
### GTC (Good Till Cancelled)
Limit order that remains active until:
- Fully filled
- Manually cancelled
- Market resolves
### GTD (Good Till Date)
Limit order with expiration timestamp. Automatically cancelled if not filled by expiration time.
### FOK (Fill Or Kill)
Must be fully filled immediately or rejected entirely. Used for market orders when full execution is required.
### FAK (Fill And Kill)
Executes immediately for available liquidity, cancels unfilled portion. Default for market orders.
## See Also
- [Cancel Order](/api/trading/cancel-order) - Cancel an existing order
- [Get Orders](/api/trading/get-orders) - Retrieve user's orders
- [Orderbook](/api/trading/orderbook) - View market orderbook