curl --request POST \
--url https://api.aisa.one/apis/v1/polymarket/order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"order": {
"maker": "0x1234567890123456789012345678901234567890",
"signer": "0x1234567890123456789012345678901234567890",
"tokenId": "0xabc123def456...",
"makerAmount": "100000000",
"takerAmount": "200000000",
"side": "BUY",
"expiration": "1735689600",
"timestamp": "1735689600000",
"metadata": "",
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"signature": "0x1234abcd...",
"salt": 1234567890,
"signatureType": 0
},
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a"
}
'import requests
url = "https://api.aisa.one/apis/v1/polymarket/order"
payload = {
"order": {
"maker": "0x1234567890123456789012345678901234567890",
"signer": "0x1234567890123456789012345678901234567890",
"tokenId": "0xabc123def456...",
"makerAmount": "100000000",
"takerAmount": "200000000",
"side": "BUY",
"expiration": "1735689600",
"timestamp": "1735689600000",
"metadata": "",
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"signature": "0x1234abcd...",
"salt": 1234567890,
"signatureType": 0
},
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a"
}
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({
order: {
maker: '0x1234567890123456789012345678901234567890',
signer: '0x1234567890123456789012345678901234567890',
tokenId: '0xabc123def456...',
makerAmount: '100000000',
takerAmount: '200000000',
side: 'BUY',
expiration: '1735689600',
timestamp: '1735689600000',
metadata: '',
builder: '0x0000000000000000000000000000000000000000000000000000000000000000',
signature: '0x1234abcd...',
salt: 1234567890,
signatureType: 0
},
owner: 'f4f247b7-4ac7-ff29-a152-04fda0a8755a'
})
};
fetch('https://api.aisa.one/apis/v1/polymarket/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.aisa.one/apis/v1/polymarket/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' => [
'maker' => '0x1234567890123456789012345678901234567890',
'signer' => '0x1234567890123456789012345678901234567890',
'tokenId' => '0xabc123def456...',
'makerAmount' => '100000000',
'takerAmount' => '200000000',
'side' => 'BUY',
'expiration' => '1735689600',
'timestamp' => '1735689600000',
'metadata' => '',
'builder' => '0x0000000000000000000000000000000000000000000000000000000000000000',
'signature' => '0x1234abcd...',
'salt' => 1234567890,
'signatureType' => 0
],
'owner' => 'f4f247b7-4ac7-ff29-a152-04fda0a8755a'
]),
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/order"
payload := strings.NewReader("{\n \"order\": {\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"tokenId\": \"0xabc123def456...\",\n \"makerAmount\": \"100000000\",\n \"takerAmount\": \"200000000\",\n \"side\": \"BUY\",\n \"expiration\": \"1735689600\",\n \"timestamp\": \"1735689600000\",\n \"metadata\": \"\",\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"signature\": \"0x1234abcd...\",\n \"salt\": 1234567890,\n \"signatureType\": 0\n },\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\"\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/order")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"order\": {\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"tokenId\": \"0xabc123def456...\",\n \"makerAmount\": \"100000000\",\n \"takerAmount\": \"200000000\",\n \"side\": \"BUY\",\n \"expiration\": \"1735689600\",\n \"timestamp\": \"1735689600000\",\n \"metadata\": \"\",\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"signature\": \"0x1234abcd...\",\n \"salt\": 1234567890,\n \"signatureType\": 0\n },\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/order")
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 \"order\": {\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"tokenId\": \"0xabc123def456...\",\n \"makerAmount\": \"100000000\",\n \"takerAmount\": \"200000000\",\n \"side\": \"BUY\",\n \"expiration\": \"1735689600\",\n \"timestamp\": \"1735689600000\",\n \"metadata\": \"\",\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"signature\": \"0x1234abcd...\",\n \"salt\": 1234567890,\n \"signatureType\": 0\n },\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"orderID": "0xabcdef1234567890abcdef1234567890abcdef12",
"status": "live",
"makingAmount": "100000000",
"takingAmount": "200000000",
"errorMsg": ""
}Post a new order
Submit a new order to the CLOB API.
curl --request POST \
--url https://api.aisa.one/apis/v1/polymarket/order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"order": {
"maker": "0x1234567890123456789012345678901234567890",
"signer": "0x1234567890123456789012345678901234567890",
"tokenId": "0xabc123def456...",
"makerAmount": "100000000",
"takerAmount": "200000000",
"side": "BUY",
"expiration": "1735689600",
"timestamp": "1735689600000",
"metadata": "",
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"signature": "0x1234abcd...",
"salt": 1234567890,
"signatureType": 0
},
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a"
}
'import requests
url = "https://api.aisa.one/apis/v1/polymarket/order"
payload = {
"order": {
"maker": "0x1234567890123456789012345678901234567890",
"signer": "0x1234567890123456789012345678901234567890",
"tokenId": "0xabc123def456...",
"makerAmount": "100000000",
"takerAmount": "200000000",
"side": "BUY",
"expiration": "1735689600",
"timestamp": "1735689600000",
"metadata": "",
"builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
"signature": "0x1234abcd...",
"salt": 1234567890,
"signatureType": 0
},
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a"
}
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({
order: {
maker: '0x1234567890123456789012345678901234567890',
signer: '0x1234567890123456789012345678901234567890',
tokenId: '0xabc123def456...',
makerAmount: '100000000',
takerAmount: '200000000',
side: 'BUY',
expiration: '1735689600',
timestamp: '1735689600000',
metadata: '',
builder: '0x0000000000000000000000000000000000000000000000000000000000000000',
signature: '0x1234abcd...',
salt: 1234567890,
signatureType: 0
},
owner: 'f4f247b7-4ac7-ff29-a152-04fda0a8755a'
})
};
fetch('https://api.aisa.one/apis/v1/polymarket/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.aisa.one/apis/v1/polymarket/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' => [
'maker' => '0x1234567890123456789012345678901234567890',
'signer' => '0x1234567890123456789012345678901234567890',
'tokenId' => '0xabc123def456...',
'makerAmount' => '100000000',
'takerAmount' => '200000000',
'side' => 'BUY',
'expiration' => '1735689600',
'timestamp' => '1735689600000',
'metadata' => '',
'builder' => '0x0000000000000000000000000000000000000000000000000000000000000000',
'signature' => '0x1234abcd...',
'salt' => 1234567890,
'signatureType' => 0
],
'owner' => 'f4f247b7-4ac7-ff29-a152-04fda0a8755a'
]),
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/order"
payload := strings.NewReader("{\n \"order\": {\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"tokenId\": \"0xabc123def456...\",\n \"makerAmount\": \"100000000\",\n \"takerAmount\": \"200000000\",\n \"side\": \"BUY\",\n \"expiration\": \"1735689600\",\n \"timestamp\": \"1735689600000\",\n \"metadata\": \"\",\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"signature\": \"0x1234abcd...\",\n \"salt\": 1234567890,\n \"signatureType\": 0\n },\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\"\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/order")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"order\": {\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"tokenId\": \"0xabc123def456...\",\n \"makerAmount\": \"100000000\",\n \"takerAmount\": \"200000000\",\n \"side\": \"BUY\",\n \"expiration\": \"1735689600\",\n \"timestamp\": \"1735689600000\",\n \"metadata\": \"\",\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"signature\": \"0x1234abcd...\",\n \"salt\": 1234567890,\n \"signatureType\": 0\n },\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/polymarket/order")
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 \"order\": {\n \"maker\": \"0x1234567890123456789012345678901234567890\",\n \"signer\": \"0x1234567890123456789012345678901234567890\",\n \"tokenId\": \"0xabc123def456...\",\n \"makerAmount\": \"100000000\",\n \"takerAmount\": \"200000000\",\n \"side\": \"BUY\",\n \"expiration\": \"1735689600\",\n \"timestamp\": \"1735689600000\",\n \"metadata\": \"\",\n \"builder\": \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n \"signature\": \"0x1234abcd...\",\n \"salt\": 1234567890,\n \"signatureType\": 0\n },\n \"owner\": \"f4f247b7-4ac7-ff29-a152-04fda0a8755a\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"orderID": "0xabcdef1234567890abcdef1234567890abcdef12",
"status": "live",
"makingAmount": "100000000",
"takingAmount": "200000000",
"errorMsg": ""
}Cost and request rules
Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 0.012
- Cost contract: fixed_success
- Settlement evidence source: request_snapshot
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Order payload submitted to the CLOB API. In CLOB V2, expiration remains in
the POST /order wire body for GTD/order-expiry handling, but it is not part
of the EIP-712 signed order struct.
Show child attributes
Show child attributes
UUID of the API key owner
"f4f247b7-4ac7-ff29-a152-04fda0a8755a"
Time in force
GTC, FOK, GTD, FAK Whether to defer execution
Whether the order must rest on the book and not match immediately. Only supported for GTC and GTD orders.
Response
Order successfully processed
Whether the order was successfully processed
true
Unique identifier for the order (order hash)
"0xabcdef1234567890abcdef1234567890abcdef12"
Status of the order after processing
live, matched, delayed Amount the maker is providing in fixed-math with 6 decimals
"100000000"
Amount the taker is providing in fixed-math with 6 decimals
"200000000"
Array of transaction hashes (present when status is 'matched')
[
"0x1234567890abcdef1234567890abcdef12345678"
]
Array of trade IDs (present when status is 'matched')
Error message (empty on success)
""