Cancel all own orders
curl --request POST \
--url https://calibri.io/api/v2/pythia/orders/cancel \
--header 'Content-Type: application/json' \
--header 'X-Auth-Apikey: <api-key>' \
--data '{}'import requests
url = "https://calibri.io/api/v2/pythia/orders/cancel"
payload = {}
headers = {
"X-Auth-Apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Auth-Apikey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://calibri.io/api/v2/pythia/orders/cancel', 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://calibri.io/api/v2/pythia/orders/cancel",
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([
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Auth-Apikey: <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://calibri.io/api/v2/pythia/orders/cancel"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Auth-Apikey", "<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://calibri.io/api/v2/pythia/orders/cancel")
.header("X-Auth-Apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://calibri.io/api/v2/pythia/orders/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Auth-Apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"cancelled": 3,
"failed": 0,
"orders": [
{
"avg_price": "0.61",
"client_order_id": "bot-7f3a-0001",
"contracts_count": 0,
"created_at": "2026-08-07T10:00:00Z",
"direction": "buy",
"event_slug": "btc-above-70k-december-2026",
"event_title": "BTC price on 31 Dec 2026",
"expires_at": "2026-08-07T11:00:00Z",
"fee": "0.04",
"filled_cost": "3.05",
"filled_volume": "0",
"id": 1420,
"ioc": false,
"locked": "6.20",
"market_id": 12,
"market_title": "Will BTC close above $70,000 on 31 Dec 2026?",
"ord_type": "limit",
"origin_locked": "6.20",
"origin_volume": "10",
"outcome_labels": [
"Yes",
"No"
],
"post_only": false,
"price": "0.62",
"quote_currency": "usdc",
"remaining_volume": "10",
"side": "yes",
"state": "wait",
"token_id": "1234567890123456789012345678901234567890",
"updated_at": "2026-08-07T10:05:00Z",
"volume": "10"
}
],
"total": 3
}{
"errors": [
"order.not_found"
]
}{
"errors": [
"order.not_found"
]
}{
"errors": [
"order.not_found"
]
}Trade
Cancel all own orders
Cancels every open order you hold, optionally narrowed by market
and outcome — on the query string, or as a JSON body
{"market_id": 12, "side": "yes"} (a body field wins over the same
query parameter). orders lists the orders cancelled, as GET /orders
rows (state cancel); failed counts orders that could not be.
To cancel named orders use POST /orders/cancel/batch.
Shares a per-member budget with single cancels
(429 market.order.rate_limited over it).
POST
/
api
/
v2
/
pythia
/
orders
/
cancel
Cancel all own orders
curl --request POST \
--url https://calibri.io/api/v2/pythia/orders/cancel \
--header 'Content-Type: application/json' \
--header 'X-Auth-Apikey: <api-key>' \
--data '{}'import requests
url = "https://calibri.io/api/v2/pythia/orders/cancel"
payload = {}
headers = {
"X-Auth-Apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Auth-Apikey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://calibri.io/api/v2/pythia/orders/cancel', 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://calibri.io/api/v2/pythia/orders/cancel",
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([
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Auth-Apikey: <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://calibri.io/api/v2/pythia/orders/cancel"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Auth-Apikey", "<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://calibri.io/api/v2/pythia/orders/cancel")
.header("X-Auth-Apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://calibri.io/api/v2/pythia/orders/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Auth-Apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"cancelled": 3,
"failed": 0,
"orders": [
{
"avg_price": "0.61",
"client_order_id": "bot-7f3a-0001",
"contracts_count": 0,
"created_at": "2026-08-07T10:00:00Z",
"direction": "buy",
"event_slug": "btc-above-70k-december-2026",
"event_title": "BTC price on 31 Dec 2026",
"expires_at": "2026-08-07T11:00:00Z",
"fee": "0.04",
"filled_cost": "3.05",
"filled_volume": "0",
"id": 1420,
"ioc": false,
"locked": "6.20",
"market_id": 12,
"market_title": "Will BTC close above $70,000 on 31 Dec 2026?",
"ord_type": "limit",
"origin_locked": "6.20",
"origin_volume": "10",
"outcome_labels": [
"Yes",
"No"
],
"post_only": false,
"price": "0.62",
"quote_currency": "usdc",
"remaining_volume": "10",
"side": "yes",
"state": "wait",
"token_id": "1234567890123456789012345678901234567890",
"updated_at": "2026-08-07T10:05:00Z",
"volume": "10"
}
],
"total": 3
}{
"errors": [
"order.not_found"
]
}{
"errors": [
"order.not_found"
]
}{
"errors": [
"order.not_found"
]
}Authorizations
Query Parameters
Body
application/json
The same filters as a JSON body
- Option 1
- Option 2
The body is of type object.