Your merges and splits
curl --request GET \
--url https://calibri.io/api/v2/atlas/account/positions/merges \
--header 'X-Auth-Apikey: <api-key>'import requests
url = "https://calibri.io/api/v2/atlas/account/positions/merges"
headers = {"X-Auth-Apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Auth-Apikey': '<api-key>'}};
fetch('https://calibri.io/api/v2/atlas/account/positions/merges', 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/atlas/account/positions/merges",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://calibri.io/api/v2/atlas/account/positions/merges"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Auth-Apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://calibri.io/api/v2/atlas/account/positions/merges")
.header("X-Auth-Apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://calibri.io/api/v2/atlas/account/positions/merges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Auth-Apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"booked_at": "2026-11-29T10:01:12Z",
"created_at": "2026-11-29T10:00:00Z",
"custody": "self",
"failure_reason": null,
"id": 311,
"kind": "merge",
"market": {
"event_slug": "btc-updown-5m-1730",
"event_title": "Bitcoin Up or Down 5m",
"id": 14738,
"outcome_labels": [
"Yes",
"No"
],
"title": "Will BTC close above its open?"
},
"market_id": 14738,
"pairs": "6",
"proceeds": "6",
"realized_pnl": "0.6",
"state": "booked",
"tx_id": "0x9f2c…",
"waiting_on": null
}
]{
"errors": [
"market.order.insufficient_balance"
]
}Positions
Your merges and splits
Your merges of YES and NO pairs back into USDC (relayed through POST /account/wallet/relay, or sent from your wallet directly) and your splits of USDC into pairs, newest first. A merge is submitted when relayed, confirmed once the chain has it, and booked when the USDC is in your balance; failed means nothing was merged. Pagination in the Page, Per-Page and Total headers.
GET
/
api
/
v2
/
atlas
/
account
/
positions
/
merges
Your merges and splits
curl --request GET \
--url https://calibri.io/api/v2/atlas/account/positions/merges \
--header 'X-Auth-Apikey: <api-key>'import requests
url = "https://calibri.io/api/v2/atlas/account/positions/merges"
headers = {"X-Auth-Apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Auth-Apikey': '<api-key>'}};
fetch('https://calibri.io/api/v2/atlas/account/positions/merges', 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/atlas/account/positions/merges",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://calibri.io/api/v2/atlas/account/positions/merges"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Auth-Apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://calibri.io/api/v2/atlas/account/positions/merges")
.header("X-Auth-Apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://calibri.io/api/v2/atlas/account/positions/merges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Auth-Apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"booked_at": "2026-11-29T10:01:12Z",
"created_at": "2026-11-29T10:00:00Z",
"custody": "self",
"failure_reason": null,
"id": 311,
"kind": "merge",
"market": {
"event_slug": "btc-updown-5m-1730",
"event_title": "Bitcoin Up or Down 5m",
"id": 14738,
"outcome_labels": [
"Yes",
"No"
],
"title": "Will BTC close above its open?"
},
"market_id": 14738,
"pairs": "6",
"proceeds": "6",
"realized_pnl": "0.6",
"state": "booked",
"tx_id": "0x9f2c…",
"waiting_on": null
}
]{
"errors": [
"market.order.insufficient_balance"
]
}Authorizations
Query Parameters
Response
Why a failed merge did nothing: the transaction reverted, was dropped, was never sent, or was replaced by another one; refused: a custodial merge Calibri refused (the request said why).
Available options:
reverted, dropped, not_broadcast, superseded, refused Example:
null