Cancel All User Orders
curl --request DELETE \
--url https://www.aionmarket.com/bvapi/markets/ordersimport requests
url = "https://www.aionmarket.com/bvapi/markets/orders"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://www.aionmarket.com/bvapi/markets/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://www.aionmarket.com/bvapi/markets/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.aionmarket.com/bvapi/markets/orders"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://www.aionmarket.com/bvapi/markets/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.aionmarket.com/bvapi/markets/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"results": [
{
"walletAddress": "0x1111111111111111111111111111111111111111",
"canceled": [
"<string>"
],
"notCanceled": {}
}
],
"totalCanceled": 5,
"syncedCount": 3
}Order Management
Cancel All User Orders
Cancel all open orders across every active wallet for the authenticated user.
DELETE
/
markets
/
orders
Cancel All User Orders
curl --request DELETE \
--url https://www.aionmarket.com/bvapi/markets/ordersimport requests
url = "https://www.aionmarket.com/bvapi/markets/orders"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://www.aionmarket.com/bvapi/markets/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://www.aionmarket.com/bvapi/markets/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.aionmarket.com/bvapi/markets/orders"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://www.aionmarket.com/bvapi/markets/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.aionmarket.com/bvapi/markets/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"results": [
{
"walletAddress": "0x1111111111111111111111111111111111111111",
"canceled": [
"<string>"
],
"notCanceled": {}
}
],
"totalCanceled": 5,
"syncedCount": 3
}Cancel every pending order across every active wallet credential of the authenticated user. The server iterates each Polymarket wallet credential, calls Polymarket
/cancel-all, and synchronises matching mk_order rows. Typically used during emergency shutdowns or full portfolio resets.
Request Body
This endpoint does not accept a request body. The current user is resolved from the Bearer API key in theAuthorization header.
Response
object
Bulk cancellation result.
Response
200 - application/json
Cancellation results for all wallets