Post multiple orders
curl --request POST \
--url https://api.aisa.one/apis/v1/polymarket/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"deferExec": false,
"order": {
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"expiration": "1735689600",
"maker": "0x1234567890123456789012345678901234567890",
"makerAmount": "100000000",
"metadata": "",
"salt": 1234567890,
"side": "BUY",
"signature": "0x1234abcd...",
"signatureType": 0,
"signer": "0x1234567890123456789012345678901234567890",
"takerAmount": "200000000",
"timestamp": "1735689600000",
"tokenId": "0xabc123def456..."
},
"orderType": "GTC",
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"postOnly": false
},
{
"deferExec": false,
"order": {
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"expiration": "1735689600",
"maker": "0x1234567890123456789012345678901234567890",
"makerAmount": "200000000",
"metadata": "",
"salt": 1234567891,
"side": "SELL",
"signature": "0x5678efgh...",
"signatureType": 0,
"signer": "0x1234567890123456789012345678901234567890",
"takerAmount": "100000000",
"timestamp": "1735689600000",
"tokenId": "0xdef456abc789..."
},
"orderType": "GTC",
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"postOnly": false
}
]
'import requests
url = "https://api.aisa.one/apis/v1/polymarket/orders"
payload = [
{
"deferExec": False,
"order": {
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"expiration": "1735689600",
"maker": "0x1234567890123456789012345678901234567890",
"makerAmount": "100000000",
"metadata": "",
"salt": 1234567890,
"side": "BUY",
"signature": "0x1234abcd...",
"signatureType": 0,
"signer": "0x1234567890123456789012345678901234567890",
"takerAmount": "200000000",
"timestamp": "1735689600000",
"tokenId": "0xabc123def456..."
},
"orderType": "GTC",
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"postOnly": False
},
{
"deferExec": False,
"order": {
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"expiration": "1735689600",
"maker": "0x1234567890123456789012345678901234567890",
"makerAmount": "200000000",
"metadata": "",
"salt": 1234567891,
"side": "SELL",
"signature": "0x5678efgh...",
"signatureType": 0,
"signer": "0x1234567890123456789012345678901234567890",
"takerAmount": "100000000",
"timestamp": "1735689600000",
"tokenId": "0xdef456abc789..."
},
"orderType": "GTC",
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"postOnly": False
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
deferExec: false,
order: {
builder: '0x0000000000000000000000000000000000000000000000000000000000000000',
expiration: '1735689600',
maker: '0x1234567890123456789012345678901234567890',
makerAmount: '100000000',
metadata: '',
salt: 1234567890,
side: 'BUY',
signature: '0x1234abcd...',
signatureType: 0,
signer: '0x1234567890123456789012345678901234567890',
takerAmount: '200000000',
timestamp: '1735689600000',
tokenId: '0xabc123def456...'
},
orderType: 'GTC',
owner: 'f4f247b7-4ac7-ff29-a152-04fda0a8755a',
postOnly: false
},
{
deferExec: false,
order: {
builder: '0x0000000000000000000000000000000000000000000000000000000000000000',
expiration: '1735689600',
maker: '0x1234567890123456789012345678901234567890',
makerAmount: '200000000',
metadata: '',
salt: 1234567891,
side: 'SELL',
signature: '0x5678efgh...',
signatureType: 0,
signer: '0x1234567890123456789012345678901234567890',
takerAmount: '100000000',
timestamp: '1735689600000',
tokenId: '0xdef456abc789...'
},
orderType: 'GTC',
owner: 'f4f247b7-4ac7-ff29-a152-04fda0a8755a',
postOnly: false
}
])
};
fetch('https://api.aisa.one/apis/v1/polymarket/orders', 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.aisa.one/apis/v1/polymarket/orders",
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([
[
'deferExec' => false,
'order' => [
'builder' => '0x0000000000000000000000000000000000000000000000000000000000000000',
'expiration' => '1735689600',
'maker' => '0x1234567890123456789012345678901234567890',
'makerAmount' => '100000000',
'metadata' => '',
'salt' => 1234567890,
'side' => 'BUY',
'signature' => '0x1234abcd...',
'signatureType' => 0,
'signer' => '0x1234567890123456789012345678901234567890',
'takerAmount' => '200000000',
'timestamp' => '1735689600000',
'tokenId' => '0xabc123def456...'
],
'orderType' => 'GTC',
'owner' => 'f4f247b7-4ac7-ff29-a152-04fda0a8755a',
'postOnly' => false
],
[
'deferExec' => false,
'order' => [
'builder' => '0x0000000000000000000000000000000000000000000000000000000000000000',
'expiration' => '1735689600',
'maker' => '0x1234567890123456789012345678901234567890',
'makerAmount' => '200000000',
'metadata' => '',
'salt' => 1234567891,
'side' => 'SELL',
'signature' => '0x5678efgh...',
'signatureType' => 0,
'signer' => '0x1234567890123456789012345678901234567890',
'takerAmount' => '100000000',
'timestamp' => '1735689600000',
'tokenId' => '0xdef456abc789...'
],
'orderType' => 'GTC',
'owner' => 'f4f247b7-4ac7-ff29-a152-04fda0a8755a',
'postOnly' => false
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.aisa.one/apis/v1/polymarket/orders"
payload := strings.NewReader("[\n {\n \"deferExec\": false,\n \"order\": {\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"expiration\": \"1735689600\",\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"makerAmount\": \"100000000\",\n \"metadata\": \"\",\n \"salt\": 1234567890,\n \"side\": \"BUY\",\n \"signature\": \"0x1234abcd...\",\n \"signatureType\": 0,\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"takerAmount\": \"200000000\",\n \"timestamp\": \"1735689600000\",\n \"tokenId\": \"0xabc123def456...\"\n },\n \"orderType\": \"GTC\",\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\",\n \"postOnly\": false\n },\n {\n \"deferExec\": false,\n \"order\": {\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"expiration\": \"1735689600\",\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"makerAmount\": \"200000000\",\n \"metadata\": \"\",\n \"salt\": 1234567891,\n \"side\": \"SELL\",\n \"signature\": \"0x5678efgh...\",\n \"signatureType\": 0,\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"takerAmount\": \"100000000\",\n \"timestamp\": \"1735689600000\",\n \"tokenId\": \"0xdef456abc789...\"\n },\n \"orderType\": \"GTC\",\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\",\n \"postOnly\": false\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.aisa.one/apis/v1/polymarket/orders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"deferExec\": false,\n \"order\": {\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"expiration\": \"1735689600\",\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"makerAmount\": \"100000000\",\n \"metadata\": \"\",\n \"salt\": 1234567890,\n \"side\": \"BUY\",\n \"signature\": \"0x1234abcd...\",\n \"signatureType\": 0,\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"takerAmount\": \"200000000\",\n \"timestamp\": \"1735689600000\",\n \"tokenId\": \"0xabc123def456...\"\n },\n \"orderType\": \"GTC\",\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\",\n \"postOnly\": false\n },\n {\n \"deferExec\": false,\n \"order\": {\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"expiration\": \"1735689600\",\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"makerAmount\": \"200000000\",\n \"metadata\": \"\",\n \"salt\": 1234567891,\n \"side\": \"SELL\",\n \"signature\": \"0x5678efgh...\",\n \"signatureType\": 0,\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"takerAmount\": \"100000000\",\n \"timestamp\": \"1735689600000\",\n \"tokenId\": \"0xdef456abc789...\"\n },\n \"orderType\": \"GTC\",\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\",\n \"postOnly\": false\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"deferExec\": false,\n \"order\": {\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"expiration\": \"1735689600\",\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"makerAmount\": \"100000000\",\n \"metadata\": \"\",\n \"salt\": 1234567890,\n \"side\": \"BUY\",\n \"signature\": \"0x1234abcd...\",\n \"signatureType\": 0,\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"takerAmount\": \"200000000\",\n \"timestamp\": \"1735689600000\",\n \"tokenId\": \"0xabc123def456...\"\n },\n \"orderType\": \"GTC\",\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\",\n \"postOnly\": false\n },\n {\n \"deferExec\": false,\n \"order\": {\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"expiration\": \"1735689600\",\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"makerAmount\": \"200000000\",\n \"metadata\": \"\",\n \"salt\": 1234567891,\n \"side\": \"SELL\",\n \"signature\": \"0x5678efgh...\",\n \"signatureType\": 0,\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"takerAmount\": \"100000000\",\n \"timestamp\": \"1735689600000\",\n \"tokenId\": \"0xdef456abc789...\"\n },\n \"orderType\": \"GTC\",\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\",\n \"postOnly\": false\n }\n]"
response = http.request(request)
puts response.read_body[
{
"errorMsg": "",
"makingAmount": "100000000",
"orderID": "0xabcdef1234567890abcdef1234567890abcdef12",
"status": "live",
"success": true,
"takingAmount": "200000000"
},
{
"errorMsg": "",
"makingAmount": "200000000",
"orderID": "0xfedcba0987654321fedcba0987654321fedcba09",
"status": "matched",
"success": true,
"takingAmount": "100000000",
"tradeIDs": [
"trade-123"
],
"transactionsHashes": [
"0x1234567890abcdef1234567890abcdef12345678"
]
},
{
"errorMsg": "Rate limit exceeded for tokenId: 0xdef456abc789...",
"orderID": "",
"status": "delayed",
"success": false
}
]
CLOB
Post multiple orders
Creates multiple new orders in the order book. Orders are processed in parallel. Maximum 15 orders per request.
Submit multiple orders to the CLOB API in a single request. Maximum array length is 15.
POST
https://api.aisa.one
/
apis
/
v1
/
polymarket
/
orders
Post multiple orders
curl --request POST \
--url https://api.aisa.one/apis/v1/polymarket/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"deferExec": false,
"order": {
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"expiration": "1735689600",
"maker": "0x1234567890123456789012345678901234567890",
"makerAmount": "100000000",
"metadata": "",
"salt": 1234567890,
"side": "BUY",
"signature": "0x1234abcd...",
"signatureType": 0,
"signer": "0x1234567890123456789012345678901234567890",
"takerAmount": "200000000",
"timestamp": "1735689600000",
"tokenId": "0xabc123def456..."
},
"orderType": "GTC",
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"postOnly": false
},
{
"deferExec": false,
"order": {
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"expiration": "1735689600",
"maker": "0x1234567890123456789012345678901234567890",
"makerAmount": "200000000",
"metadata": "",
"salt": 1234567891,
"side": "SELL",
"signature": "0x5678efgh...",
"signatureType": 0,
"signer": "0x1234567890123456789012345678901234567890",
"takerAmount": "100000000",
"timestamp": "1735689600000",
"tokenId": "0xdef456abc789..."
},
"orderType": "GTC",
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"postOnly": false
}
]
'import requests
url = "https://api.aisa.one/apis/v1/polymarket/orders"
payload = [
{
"deferExec": False,
"order": {
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"expiration": "1735689600",
"maker": "0x1234567890123456789012345678901234567890",
"makerAmount": "100000000",
"metadata": "",
"salt": 1234567890,
"side": "BUY",
"signature": "0x1234abcd...",
"signatureType": 0,
"signer": "0x1234567890123456789012345678901234567890",
"takerAmount": "200000000",
"timestamp": "1735689600000",
"tokenId": "0xabc123def456..."
},
"orderType": "GTC",
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"postOnly": False
},
{
"deferExec": False,
"order": {
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"expiration": "1735689600",
"maker": "0x1234567890123456789012345678901234567890",
"makerAmount": "200000000",
"metadata": "",
"salt": 1234567891,
"side": "SELL",
"signature": "0x5678efgh...",
"signatureType": 0,
"signer": "0x1234567890123456789012345678901234567890",
"takerAmount": "100000000",
"timestamp": "1735689600000",
"tokenId": "0xdef456abc789..."
},
"orderType": "GTC",
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"postOnly": False
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
deferExec: false,
order: {
builder: '0x0000000000000000000000000000000000000000000000000000000000000000',
expiration: '1735689600',
maker: '0x1234567890123456789012345678901234567890',
makerAmount: '100000000',
metadata: '',
salt: 1234567890,
side: 'BUY',
signature: '0x1234abcd...',
signatureType: 0,
signer: '0x1234567890123456789012345678901234567890',
takerAmount: '200000000',
timestamp: '1735689600000',
tokenId: '0xabc123def456...'
},
orderType: 'GTC',
owner: 'f4f247b7-4ac7-ff29-a152-04fda0a8755a',
postOnly: false
},
{
deferExec: false,
order: {
builder: '0x0000000000000000000000000000000000000000000000000000000000000000',
expiration: '1735689600',
maker: '0x1234567890123456789012345678901234567890',
makerAmount: '200000000',
metadata: '',
salt: 1234567891,
side: 'SELL',
signature: '0x5678efgh...',
signatureType: 0,
signer: '0x1234567890123456789012345678901234567890',
takerAmount: '100000000',
timestamp: '1735689600000',
tokenId: '0xdef456abc789...'
},
orderType: 'GTC',
owner: 'f4f247b7-4ac7-ff29-a152-04fda0a8755a',
postOnly: false
}
])
};
fetch('https://api.aisa.one/apis/v1/polymarket/orders', 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.aisa.one/apis/v1/polymarket/orders",
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([
[
'deferExec' => false,
'order' => [
'builder' => '0x0000000000000000000000000000000000000000000000000000000000000000',
'expiration' => '1735689600',
'maker' => '0x1234567890123456789012345678901234567890',
'makerAmount' => '100000000',
'metadata' => '',
'salt' => 1234567890,
'side' => 'BUY',
'signature' => '0x1234abcd...',
'signatureType' => 0,
'signer' => '0x1234567890123456789012345678901234567890',
'takerAmount' => '200000000',
'timestamp' => '1735689600000',
'tokenId' => '0xabc123def456...'
],
'orderType' => 'GTC',
'owner' => 'f4f247b7-4ac7-ff29-a152-04fda0a8755a',
'postOnly' => false
],
[
'deferExec' => false,
'order' => [
'builder' => '0x0000000000000000000000000000000000000000000000000000000000000000',
'expiration' => '1735689600',
'maker' => '0x1234567890123456789012345678901234567890',
'makerAmount' => '200000000',
'metadata' => '',
'salt' => 1234567891,
'side' => 'SELL',
'signature' => '0x5678efgh...',
'signatureType' => 0,
'signer' => '0x1234567890123456789012345678901234567890',
'takerAmount' => '100000000',
'timestamp' => '1735689600000',
'tokenId' => '0xdef456abc789...'
],
'orderType' => 'GTC',
'owner' => 'f4f247b7-4ac7-ff29-a152-04fda0a8755a',
'postOnly' => false
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.aisa.one/apis/v1/polymarket/orders"
payload := strings.NewReader("[\n {\n \"deferExec\": false,\n \"order\": {\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"expiration\": \"1735689600\",\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"makerAmount\": \"100000000\",\n \"metadata\": \"\",\n \"salt\": 1234567890,\n \"side\": \"BUY\",\n \"signature\": \"0x1234abcd...\",\n \"signatureType\": 0,\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"takerAmount\": \"200000000\",\n \"timestamp\": \"1735689600000\",\n \"tokenId\": \"0xabc123def456...\"\n },\n \"orderType\": \"GTC\",\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\",\n \"postOnly\": false\n },\n {\n \"deferExec\": false,\n \"order\": {\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"expiration\": \"1735689600\",\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"makerAmount\": \"200000000\",\n \"metadata\": \"\",\n \"salt\": 1234567891,\n \"side\": \"SELL\",\n \"signature\": \"0x5678efgh...\",\n \"signatureType\": 0,\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"takerAmount\": \"100000000\",\n \"timestamp\": \"1735689600000\",\n \"tokenId\": \"0xdef456abc789...\"\n },\n \"orderType\": \"GTC\",\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\",\n \"postOnly\": false\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.aisa.one/apis/v1/polymarket/orders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"deferExec\": false,\n \"order\": {\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"expiration\": \"1735689600\",\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"makerAmount\": \"100000000\",\n \"metadata\": \"\",\n \"salt\": 1234567890,\n \"side\": \"BUY\",\n \"signature\": \"0x1234abcd...\",\n \"signatureType\": 0,\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"takerAmount\": \"200000000\",\n \"timestamp\": \"1735689600000\",\n \"tokenId\": \"0xabc123def456...\"\n },\n \"orderType\": \"GTC\",\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\",\n \"postOnly\": false\n },\n {\n \"deferExec\": false,\n \"order\": {\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"expiration\": \"1735689600\",\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"makerAmount\": \"200000000\",\n \"metadata\": \"\",\n \"salt\": 1234567891,\n \"side\": \"SELL\",\n \"signature\": \"0x5678efgh...\",\n \"signatureType\": 0,\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"takerAmount\": \"100000000\",\n \"timestamp\": \"1735689600000\",\n \"tokenId\": \"0xdef456abc789...\"\n },\n \"orderType\": \"GTC\",\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\",\n \"postOnly\": false\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"deferExec\": false,\n \"order\": {\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"expiration\": \"1735689600\",\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"makerAmount\": \"100000000\",\n \"metadata\": \"\",\n \"salt\": 1234567890,\n \"side\": \"BUY\",\n \"signature\": \"0x1234abcd...\",\n \"signatureType\": 0,\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"takerAmount\": \"200000000\",\n \"timestamp\": \"1735689600000\",\n \"tokenId\": \"0xabc123def456...\"\n },\n \"orderType\": \"GTC\",\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\",\n \"postOnly\": false\n },\n {\n \"deferExec\": false,\n \"order\": {\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"expiration\": \"1735689600\",\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"makerAmount\": \"200000000\",\n \"metadata\": \"\",\n \"salt\": 1234567891,\n \"side\": \"SELL\",\n \"signature\": \"0x5678efgh...\",\n \"signatureType\": 0,\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"takerAmount\": \"100000000\",\n \"timestamp\": \"1735689600000\",\n \"tokenId\": \"0xdef456abc789...\"\n },\n \"orderType\": \"GTC\",\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\",\n \"postOnly\": false\n }\n]"
response = http.request(request)
puts response.read_body[
{
"errorMsg": "",
"makingAmount": "100000000",
"orderID": "0xabcdef1234567890abcdef1234567890abcdef12",
"status": "live",
"success": true,
"takingAmount": "200000000"
},
{
"errorMsg": "",
"makingAmount": "200000000",
"orderID": "0xfedcba0987654321fedcba0987654321fedcba09",
"status": "matched",
"success": true,
"takingAmount": "100000000",
"tradeIDs": [
"trade-123"
],
"transactionsHashes": [
"0x1234567890abcdef1234567890abcdef12345678"
]
},
{
"errorMsg": "Rate limit exceeded for tokenId: 0xdef456abc789...",
"orderID": "",
"status": "delayed",
"success": false
}
]
Request contract
- Method and path: POST /apis/v1/polymarket/orders
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/polymarket/orders
{
"operationId": "post_get_polymarket-orders",
"method": "POST",
"path": "/apis/v1/polymarket/orders",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Send multiple orders example",
"value": [
{
"deferExec": false,
"order": {
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"expiration": "1735689600",
"maker": "0x1234567890123456789012345678901234567890",
"makerAmount": "100000000",
"metadata": "",
"salt": 1234567890,
"side": "BUY",
"signature": "0x1234abcd...",
"signatureType": 0,
"signer": "0x1234567890123456789012345678901234567890",
"takerAmount": "200000000",
"timestamp": "1735689600000",
"tokenId": "0xabc123def456..."
},
"orderType": "GTC",
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"postOnly": false
},
{
"deferExec": false,
"order": {
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"expiration": "1735689600",
"maker": "0x1234567890123456789012345678901234567890",
"makerAmount": "200000000",
"metadata": "",
"salt": 1234567891,
"side": "SELL",
"signature": "0x5678efgh...",
"signatureType": 0,
"signer": "0x1234567890123456789012345678901234567890",
"takerAmount": "100000000",
"timestamp": "1735689600000",
"tokenId": "0xdef456abc789..."
},
"orderType": "GTC",
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"postOnly": false
}
]
}
},
"schema": {
"items": {
"properties": {
"deferExec": {
"default": false,
"description": "Whether to defer execution",
"type": "boolean"
},
"order": {
"description": "Order payload submitted to the CLOB API. In CLOB V2, `expiration` remains in\nthe POST /order wire body for GTD/order-expiry handling, but it is not part\nof the EIP-712 signed order struct.\n",
"properties": {
"builder": {
"description": "Builder code (bytes32) for integrator attribution. `0x` + 64 hex chars or empty.",
"example": "0x0000000000000000000000000000000000000000000000000000000000000000",
"type": "string"
},
"expiration": {
"description": "Unix timestamp when the order expires. Present in the API wire body; not part of the CLOB V2 EIP-712 signed order struct.",
"example": "1735689600",
"type": "string"
},
"maker": {
"description": "Ethereum address of the maker (In the default case, this is your proxy address)",
"example": "0x1234567890123456789012345678901234567890",
"type": "string"
},
"makerAmount": {
"description": "Amount the maker is providing in fixed-math with 6 decimals",
"example": "100000000",
"type": "string"
},
"metadata": {
"description": "Reserved for future use",
"example": "",
"type": "string"
},
"salt": {
"description": "Random salt for order uniqueness",
"example": 1234567890,
"type": "integer"
},
"side": {
"description": "Order side",
"enum": [
"BUY",
"SELL"
],
"example": "BUY",
"type": "string"
},
"signature": {
"description": "Cryptographic signature of the order",
"example": "0x1234abcd...",
"type": "string"
},
"signatureType": {
"description": "Type of signature (0 = EOA, 1 = POLY_PROXY, 2 = POLY_GNOSIS_SAFE)",
"enum": [
0,
1,
2
],
"type": "integer"
},
"signer": {
"description": "Ethereum address of the signer",
"example": "0x1234567890123456789012345678901234567890",
"type": "string"
},
"takerAmount": {
"description": "Amount the taker is providing in fixed-math with 6 decimals",
"example": "200000000",
"type": "string"
},
"timestamp": {
"description": "Unix timestamp in milliseconds when the order was created (used for order uniqueness)",
"example": "1735689600000",
"type": "string"
},
"tokenId": {
"description": "Token ID (asset ID) for the order",
"example": "0xabc123def456...",
"type": "string"
}
},
"required": [
"maker",
"signer",
"tokenId",
"makerAmount",
"takerAmount",
"side",
"expiration",
"timestamp",
"builder",
"signature",
"salt",
"signatureType"
],
"type": "object"
},
"orderType": {
"default": "GTC",
"description": "Time in force",
"enum": [
"GTC",
"FOK",
"GTD",
"FAK"
],
"type": "string"
},
"owner": {
"description": "UUID of the API key owner",
"example": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"type": "string"
},
"postOnly": {
"default": false,
"description": "Whether the order must rest on the book and not match immediately. Only supported for GTC and GTD orders.",
"type": "boolean"
}
},
"required": [
"order",
"owner"
],
"type": "object"
},
"maxItems": 15,
"type": "array"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Published reference price: $0.012 USD per successful request. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Maximum array length:
15Response
Orders successfully processed. Returns an array of order responses, one for each order in the request.