Polymarket-compat single order placement.
Mirrors Polymarket’s POST /order body shape: {order: {tokenId, makerAmount, takerAmount, side, ...}, owner, orderType}. The on-chain fields (salt, signature, signer, maker, signatureType, nonce, feeRateBps, builder) are accepted but ignored — we don’t have a chain. Maker/taker amounts use PM’s 6-decimal fixed-point convention (USDC and outcome tokens both).
curl --request POST \
--url https://api.polysimulator.com/v1/order \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"order": {
"tokenId": "<string>",
"makerAmount": "<string>",
"takerAmount": "<string>",
"side": "<string>",
"expiration": "0",
"salt": "<string>",
"maker": "<string>",
"signer": "<string>",
"taker": "<string>",
"nonce": "<string>",
"feeRateBps": "<string>",
"signatureType": 123,
"signature": "<string>",
"timestamp": "<string>",
"metadata": "<string>",
"builder": "<string>"
},
"owner": "<string>",
"orderType": "GTC",
"deferExec": false,
"postOnly": false
}
'import requests
url = "https://api.polysimulator.com/v1/order"
payload = {
"order": {
"tokenId": "<string>",
"makerAmount": "<string>",
"takerAmount": "<string>",
"side": "<string>",
"expiration": "0",
"salt": "<string>",
"maker": "<string>",
"signer": "<string>",
"taker": "<string>",
"nonce": "<string>",
"feeRateBps": "<string>",
"signatureType": 123,
"signature": "<string>",
"timestamp": "<string>",
"metadata": "<string>",
"builder": "<string>"
},
"owner": "<string>",
"orderType": "GTC",
"deferExec": False,
"postOnly": False
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
order: {
tokenId: '<string>',
makerAmount: '<string>',
takerAmount: '<string>',
side: '<string>',
expiration: '0',
salt: '<string>',
maker: '<string>',
signer: '<string>',
taker: '<string>',
nonce: '<string>',
feeRateBps: '<string>',
signatureType: 123,
signature: '<string>',
timestamp: '<string>',
metadata: '<string>',
builder: '<string>'
},
owner: '<string>',
orderType: 'GTC',
deferExec: false,
postOnly: false
})
};
fetch('https://api.polysimulator.com/v1/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.polysimulator.com/v1/order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'order' => [
'tokenId' => '<string>',
'makerAmount' => '<string>',
'takerAmount' => '<string>',
'side' => '<string>',
'expiration' => '0',
'salt' => '<string>',
'maker' => '<string>',
'signer' => '<string>',
'taker' => '<string>',
'nonce' => '<string>',
'feeRateBps' => '<string>',
'signatureType' => 123,
'signature' => '<string>',
'timestamp' => '<string>',
'metadata' => '<string>',
'builder' => '<string>'
],
'owner' => '<string>',
'orderType' => 'GTC',
'deferExec' => false,
'postOnly' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.polysimulator.com/v1/order"
payload := strings.NewReader("{\n \"order\": {\n \"tokenId\": \"<string>\",\n \"makerAmount\": \"<string>\",\n \"takerAmount\": \"<string>\",\n \"side\": \"<string>\",\n \"expiration\": \"0\",\n \"salt\": \"<string>\",\n \"maker\": \"<string>\",\n \"signer\": \"<string>\",\n \"taker\": \"<string>\",\n \"nonce\": \"<string>\",\n \"feeRateBps\": \"<string>\",\n \"signatureType\": 123,\n \"signature\": \"<string>\",\n \"timestamp\": \"<string>\",\n \"metadata\": \"<string>\",\n \"builder\": \"<string>\"\n },\n \"owner\": \"<string>\",\n \"orderType\": \"GTC\",\n \"deferExec\": false,\n \"postOnly\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.polysimulator.com/v1/order")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"order\": {\n \"tokenId\": \"<string>\",\n \"makerAmount\": \"<string>\",\n \"takerAmount\": \"<string>\",\n \"side\": \"<string>\",\n \"expiration\": \"0\",\n \"salt\": \"<string>\",\n \"maker\": \"<string>\",\n \"signer\": \"<string>\",\n \"taker\": \"<string>\",\n \"nonce\": \"<string>\",\n \"feeRateBps\": \"<string>\",\n \"signatureType\": 123,\n \"signature\": \"<string>\",\n \"timestamp\": \"<string>\",\n \"metadata\": \"<string>\",\n \"builder\": \"<string>\"\n },\n \"owner\": \"<string>\",\n \"orderType\": \"GTC\",\n \"deferExec\": false,\n \"postOnly\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polysimulator.com/v1/order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"order\": {\n \"tokenId\": \"<string>\",\n \"makerAmount\": \"<string>\",\n \"takerAmount\": \"<string>\",\n \"side\": \"<string>\",\n \"expiration\": \"0\",\n \"salt\": \"<string>\",\n \"maker\": \"<string>\",\n \"signer\": \"<string>\",\n \"taker\": \"<string>\",\n \"nonce\": \"<string>\",\n \"feeRateBps\": \"<string>\",\n \"signatureType\": 123,\n \"signature\": \"<string>\",\n \"timestamp\": \"<string>\",\n \"metadata\": \"<string>\",\n \"builder\": \"<string>\"\n },\n \"owner\": \"<string>\",\n \"orderType\": \"GTC\",\n \"deferExec\": false,\n \"postOnly\": false\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"orderID": "",
"status": "unmatched",
"makingAmount": "0",
"takingAmount": "0",
"transactionsHashes": [
"<string>"
],
"tradeIDs": [
"<string>"
],
"errorMsg": ""
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}Authorizations
Issue from /v1/keys (or admin-issued for enterprise tier).
Headers
Your PolySimulator API key
Polymarket-CLOB-compat alias for X-API-Key (underscore form). SDK clients ported from Polymarket can authenticate without changing header names. X-API-Key takes precedence when both are provided.
PM-CLOB-compat: Authorization: Bearer ps_live_... (or ps_test_...) is accepted as an alias for X-API-Key so py-clob-client and other ported SDKs authenticate without header name changes. Bearer JWTs are NOT accepted here — use the dashboard-auth endpoints for those.
Body
Response
Successful Response
Was this page helpful?
curl --request POST \
--url https://api.polysimulator.com/v1/order \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"order": {
"tokenId": "<string>",
"makerAmount": "<string>",
"takerAmount": "<string>",
"side": "<string>",
"expiration": "0",
"salt": "<string>",
"maker": "<string>",
"signer": "<string>",
"taker": "<string>",
"nonce": "<string>",
"feeRateBps": "<string>",
"signatureType": 123,
"signature": "<string>",
"timestamp": "<string>",
"metadata": "<string>",
"builder": "<string>"
},
"owner": "<string>",
"orderType": "GTC",
"deferExec": false,
"postOnly": false
}
'import requests
url = "https://api.polysimulator.com/v1/order"
payload = {
"order": {
"tokenId": "<string>",
"makerAmount": "<string>",
"takerAmount": "<string>",
"side": "<string>",
"expiration": "0",
"salt": "<string>",
"maker": "<string>",
"signer": "<string>",
"taker": "<string>",
"nonce": "<string>",
"feeRateBps": "<string>",
"signatureType": 123,
"signature": "<string>",
"timestamp": "<string>",
"metadata": "<string>",
"builder": "<string>"
},
"owner": "<string>",
"orderType": "GTC",
"deferExec": False,
"postOnly": False
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
order: {
tokenId: '<string>',
makerAmount: '<string>',
takerAmount: '<string>',
side: '<string>',
expiration: '0',
salt: '<string>',
maker: '<string>',
signer: '<string>',
taker: '<string>',
nonce: '<string>',
feeRateBps: '<string>',
signatureType: 123,
signature: '<string>',
timestamp: '<string>',
metadata: '<string>',
builder: '<string>'
},
owner: '<string>',
orderType: 'GTC',
deferExec: false,
postOnly: false
})
};
fetch('https://api.polysimulator.com/v1/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.polysimulator.com/v1/order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'order' => [
'tokenId' => '<string>',
'makerAmount' => '<string>',
'takerAmount' => '<string>',
'side' => '<string>',
'expiration' => '0',
'salt' => '<string>',
'maker' => '<string>',
'signer' => '<string>',
'taker' => '<string>',
'nonce' => '<string>',
'feeRateBps' => '<string>',
'signatureType' => 123,
'signature' => '<string>',
'timestamp' => '<string>',
'metadata' => '<string>',
'builder' => '<string>'
],
'owner' => '<string>',
'orderType' => 'GTC',
'deferExec' => false,
'postOnly' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.polysimulator.com/v1/order"
payload := strings.NewReader("{\n \"order\": {\n \"tokenId\": \"<string>\",\n \"makerAmount\": \"<string>\",\n \"takerAmount\": \"<string>\",\n \"side\": \"<string>\",\n \"expiration\": \"0\",\n \"salt\": \"<string>\",\n \"maker\": \"<string>\",\n \"signer\": \"<string>\",\n \"taker\": \"<string>\",\n \"nonce\": \"<string>\",\n \"feeRateBps\": \"<string>\",\n \"signatureType\": 123,\n \"signature\": \"<string>\",\n \"timestamp\": \"<string>\",\n \"metadata\": \"<string>\",\n \"builder\": \"<string>\"\n },\n \"owner\": \"<string>\",\n \"orderType\": \"GTC\",\n \"deferExec\": false,\n \"postOnly\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.polysimulator.com/v1/order")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"order\": {\n \"tokenId\": \"<string>\",\n \"makerAmount\": \"<string>\",\n \"takerAmount\": \"<string>\",\n \"side\": \"<string>\",\n \"expiration\": \"0\",\n \"salt\": \"<string>\",\n \"maker\": \"<string>\",\n \"signer\": \"<string>\",\n \"taker\": \"<string>\",\n \"nonce\": \"<string>\",\n \"feeRateBps\": \"<string>\",\n \"signatureType\": 123,\n \"signature\": \"<string>\",\n \"timestamp\": \"<string>\",\n \"metadata\": \"<string>\",\n \"builder\": \"<string>\"\n },\n \"owner\": \"<string>\",\n \"orderType\": \"GTC\",\n \"deferExec\": false,\n \"postOnly\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polysimulator.com/v1/order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"order\": {\n \"tokenId\": \"<string>\",\n \"makerAmount\": \"<string>\",\n \"takerAmount\": \"<string>\",\n \"side\": \"<string>\",\n \"expiration\": \"0\",\n \"salt\": \"<string>\",\n \"maker\": \"<string>\",\n \"signer\": \"<string>\",\n \"taker\": \"<string>\",\n \"nonce\": \"<string>\",\n \"feeRateBps\": \"<string>\",\n \"signatureType\": 123,\n \"signature\": \"<string>\",\n \"timestamp\": \"<string>\",\n \"metadata\": \"<string>\",\n \"builder\": \"<string>\"\n },\n \"owner\": \"<string>\",\n \"orderType\": \"GTC\",\n \"deferExec\": false,\n \"postOnly\": false\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"orderID": "",
"status": "unmatched",
"makingAmount": "0",
"takingAmount": "0",
"transactionsHashes": [
"<string>"
],
"tradeIDs": [
"<string>"
],
"errorMsg": ""
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}