Create Order
Creates a buy/sell order for prediction market positions. Requires signed order data.
Request body
Example request
{
"order": {
"salt": "1778155025318314496",
"maker": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"signer": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"taker": "0x0000000000000000000000000000000000000000",
"tokenId": "19633204485790857949828516737993423758628930235371629943999544859324645414627",
"makerAmount": 5000000,
"takerAmount": 10000000,
"expiration": "0",
"price": 0.75,
"signature": "0x123abc456def789ghi0123abc456def789ghi0123abc456def789ghi0123456789012345678901",
"signatureType": 2
},
"ownerId": 12345,
"orderType": "GTC",
"marketSlug": "biden-vs-trump-2024",
"postOnly": true,
"clientOrderId": "client-order-001",
"onBehalfOf": 12345,
"timestamp": 1735689600000,
"recvWindow": 1500,
"stpPolicy": "cancel_maker"
}Response
Order successfully created and matched
Example response
{
"order": {
"salt": "1778155025318314496",
"maker": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"signer": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"taker": "0x0000000000000000000000000000000000000000",
"tokenId": "19633204485790857949828516737993423758628930235371629943999544859324645414627",
"makerAmount": "5000000",
"takerAmount": "10000000",
"expiration": "0",
"signatureType": 2,
"nonce": "0",
"orderType": "GTC",
"price": "0.75",
"ownerId": 12345,
"market": {
"id": 7348,
"slug": "btc-up-or-down-1-hour",
"title": "BTC Up or Down - Hourly"
}
},
"execution": {
"matched": true,
"settlementStatus": "MINED",
"reason": "STP_TAKER_REJECTED",
"eligibleAt": "2026-06-08T10:15:30.000Z",
"tradeEventId": "4aa706dd-6c57-4f3c-945a-99818dfd95f1",
"txHash": "0xabc123",
"clientOrderId": "client-order-001",
"stpMakerCancels": [
"4aa706dd-6c57-4f3c-945a-99818dfd95f1"
],
"feeRateBps": 25,
"effectiveFeeBps": 26,
"totalsRaw": {
"contractsGross": "1000000",
"contractsFee": "1000",
"contractsNet": "999000",
"usdGross": "500000",
"usdFee": "500",
"usdNet": "499500"
}
}
}Changes
Changed in 14 of the 32 revisions of this API.13750
- ▲
added
subschema #2to the response bodyoneOflist for the response statusresponse-body-one-of-added
- ▲
the response's body type changed from
objectto no type for statusresponse-body-type-changed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ○
removed the non-success response with the status
response-non-success-status-removed
- ▲
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ○
the endpoint scheme security
HmacAuthwas added to the APIapi-security-added
- ○
the endpoint scheme security
ApiKeyAuthwas removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
added the new
CANCELEDenum value to the/response property for the response statusresponse-property-enum-value-added
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ●
- ▲
the
/response's property format changed fromdate-timeto no format for statusresponse-property-type-changed
- ▲
- ▲
added the pattern
^0x[a-fA-F0-9]{40}$to the request property/////request-property-pattern-added
- ▲
added the pattern
^0x[a-fA-F0-9]{40}$to the request property/////request-property-pattern-added
- ▲
- ●
added the new
DELAYEDenum value to the/response property for the response statusresponse-property-enum-value-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ●
- ●
the
request property's max was set to10000.00request-property-max-set
- ●
the
request property's min was set to1.00request-property-min-set
- ●
the
request property's min was set to0.00request-property-min-set
- ○
added the non-success response with the status
response-non-success-status-added
- ●
- ▲
the request property
/////became requiredrequest-property-became-required
- ▲
the request property
/////became requiredrequest-property-became-required
- ▲
added the pattern
^0x([a-fA-F0-9]{2})*$to the request property/////request-property-pattern-added
- ▲
the
response's property type changed from no type toobjectfor statusresponse-property-type-changed
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new
FAKenum value to the request propertyrequest-property-enum-value-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
removed from the
response propertyallOflist for the response statusresponse-property-all-of-removed
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ▲
- ▲
response property
order/allOf[Order]/saltlist-of-types was widened by adding typesstringto media typeapplication/jsonof response201response-property-list-of-types-widened
- ●
removed the request property
request-property-removed
- ●
removed the request property
request-property-removed
- ○
request property
/////list-of-types was widened by adding typesstringto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
removed the non-success response with the status
response-non-success-status-removed
- ▲