curl --request GET \
--url https://api.mainnet.aptoslabs.com/decibel/api/v1/open_orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mainnet.aptoslabs.com/decibel/api/v1/open_orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mainnet.aptoslabs.com/decibel/api/v1/open_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.mainnet.aptoslabs.com/decibel/api/v1/open_orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.mainnet.aptoslabs.com/decibel/api/v1/open_orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mainnet.aptoslabs.com/decibel/api/v1/open_orders")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mainnet.aptoslabs.com/decibel/api/v1/open_orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"asset_type": "perp",
"cancellation_reason": "<string>",
"client_order_id": "<string>",
"details": "<string>",
"is_buy": true,
"is_reduce_only": true,
"is_tpsl": true,
"market": "<string>",
"order_direction": "<string>",
"order_id": "<string>",
"order_type": "<string>",
"parent": "<string>",
"status": "<string>",
"transaction_version": 1,
"trigger_condition": "<string>",
"unix_ms": 1,
"orig_size": 123,
"price": 123,
"remaining_size": 123,
"size_delta": 123,
"sl_limit_price": 123,
"sl_trigger_price": 123,
"time_in_force": "<string>",
"tp_limit_price": 123,
"tp_trigger_price": 123
}
],
"total_count": 1
}Get account's open orders
Retrieve all currently open perp and spot orders for a specific account.
Each order row carries asset_type; use ?asset_type=perp|spot to filter.
Includes limit orders, stop orders, and TP/SL orders attached to positions. Supports pagination.
curl --request GET \
--url https://api.mainnet.aptoslabs.com/decibel/api/v1/open_orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mainnet.aptoslabs.com/decibel/api/v1/open_orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mainnet.aptoslabs.com/decibel/api/v1/open_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.mainnet.aptoslabs.com/decibel/api/v1/open_orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.mainnet.aptoslabs.com/decibel/api/v1/open_orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mainnet.aptoslabs.com/decibel/api/v1/open_orders")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mainnet.aptoslabs.com/decibel/api/v1/open_orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"asset_type": "perp",
"cancellation_reason": "<string>",
"client_order_id": "<string>",
"details": "<string>",
"is_buy": true,
"is_reduce_only": true,
"is_tpsl": true,
"market": "<string>",
"order_direction": "<string>",
"order_id": "<string>",
"order_type": "<string>",
"parent": "<string>",
"status": "<string>",
"transaction_version": 1,
"trigger_condition": "<string>",
"unix_ms": 1,
"orig_size": 123,
"price": 123,
"remaining_size": 123,
"size_delta": 123,
"sl_limit_price": 123,
"sl_trigger_price": 123,
"time_in_force": "<string>",
"tp_limit_price": 123,
"tp_trigger_price": 123
}
],
"total_count": 1
}Authorizations
Bearer token from Geomi. See Authentication for setup instructions.
Query Parameters
User account address (user query alias is also accepted)
Optional asset_type filter ("perp" | "spot"). Omit to UNION both.
Each row carries an asset_type field for client-side demux.
Discriminator carried on DTOs that can mix perp and spot rows (markets,
orders, trades, bulk orders, bulk order fills, and WebSocket payloads).
Also accepted as a query parameter on REST endpoints that can filter to one
product.
Wire format is lowercase ("perp" / "spot") and accepted
case-insensitively on the request side via [impl_case_insensitive_deserialize].
perp, spot Page size
0 <= x <= 1000Page offset
0 <= x <= 10000
