curl --request POST \
--url https://api.fairground.fi/order_service.v1.OrderService/GetAllOrders \
--header 'Authorization: Bearer <token>' \
--header 'Connect-Protocol-Version: <connect-protocol-version>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 123,
"offset": 123,
"address": "<string>",
"onlyOpen": true
}
'import requests
url = "https://api.fairground.fi/order_service.v1.OrderService/GetAllOrders"
payload = {
"limit": 123,
"offset": 123,
"address": "<string>",
"onlyOpen": True
}
headers = {
"Connect-Protocol-Version": "<connect-protocol-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Connect-Protocol-Version': '<connect-protocol-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({limit: 123, offset: 123, address: '<string>', onlyOpen: true})
};
fetch('https://api.fairground.fi/order_service.v1.OrderService/GetAllOrders', 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.fairground.fi/order_service.v1.OrderService/GetAllOrders",
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([
'limit' => 123,
'offset' => 123,
'address' => '<string>',
'onlyOpen' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Connect-Protocol-Version: <connect-protocol-version>",
"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.fairground.fi/order_service.v1.OrderService/GetAllOrders"
payload := strings.NewReader("{\n \"limit\": 123,\n \"offset\": 123,\n \"address\": \"<string>\",\n \"onlyOpen\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Connect-Protocol-Version", "<connect-protocol-version>")
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.fairground.fi/order_service.v1.OrderService/GetAllOrders")
.header("Connect-Protocol-Version", "<connect-protocol-version>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 123,\n \"offset\": 123,\n \"address\": \"<string>\",\n \"onlyOpen\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fairground.fi/order_service.v1.OrderService/GetAllOrders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Connect-Protocol-Version"] = '<connect-protocol-version>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 123,\n \"offset\": 123,\n \"address\": \"<string>\",\n \"onlyOpen\": true\n}"
response = http.request(request)
puts response.read_body{
"orders": [
{
"owner": "0x8ba1f109551bd432803012645ac136ddd64dba7",
"orderId": "50011",
"timestamp": "2026-07-09T09:15:42Z",
"marketId": "2",
"market": "ETH-PERP",
"type": "ORDER_TYPE_MARKET",
"side": "SIDE_SHORT",
"thresholdPrice": 3400.25,
"size": 5000,
"leverage": 10,
"status": "ORDER_STATUS_PENDING",
"filledSize": 0,
"unfilledSize": 5000,
"reduceOnly": false,
"canceled": false,
"initialMargin": 500,
"tickDecimals": 2,
"fees": 0,
"rebates": 0,
"reduceOrderType": "",
"initialNotional": 5000,
"stopLossPrice": 0,
"takeProfitPrice": 0
}
],
"pagination": {
"limit": 50,
"offset": 0,
"totalCount": "1"
}
}GetAllOrders
Returns a paginated, platform-wide list of orders, optionally filtered to one wallet and/or to open orders. Results are ordered by timestamp descending, most recent first.
curl --request POST \
--url https://api.fairground.fi/order_service.v1.OrderService/GetAllOrders \
--header 'Authorization: Bearer <token>' \
--header 'Connect-Protocol-Version: <connect-protocol-version>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 123,
"offset": 123,
"address": "<string>",
"onlyOpen": true
}
'import requests
url = "https://api.fairground.fi/order_service.v1.OrderService/GetAllOrders"
payload = {
"limit": 123,
"offset": 123,
"address": "<string>",
"onlyOpen": True
}
headers = {
"Connect-Protocol-Version": "<connect-protocol-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Connect-Protocol-Version': '<connect-protocol-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({limit: 123, offset: 123, address: '<string>', onlyOpen: true})
};
fetch('https://api.fairground.fi/order_service.v1.OrderService/GetAllOrders', 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.fairground.fi/order_service.v1.OrderService/GetAllOrders",
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([
'limit' => 123,
'offset' => 123,
'address' => '<string>',
'onlyOpen' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Connect-Protocol-Version: <connect-protocol-version>",
"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.fairground.fi/order_service.v1.OrderService/GetAllOrders"
payload := strings.NewReader("{\n \"limit\": 123,\n \"offset\": 123,\n \"address\": \"<string>\",\n \"onlyOpen\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Connect-Protocol-Version", "<connect-protocol-version>")
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.fairground.fi/order_service.v1.OrderService/GetAllOrders")
.header("Connect-Protocol-Version", "<connect-protocol-version>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 123,\n \"offset\": 123,\n \"address\": \"<string>\",\n \"onlyOpen\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fairground.fi/order_service.v1.OrderService/GetAllOrders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Connect-Protocol-Version"] = '<connect-protocol-version>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 123,\n \"offset\": 123,\n \"address\": \"<string>\",\n \"onlyOpen\": true\n}"
response = http.request(request)
puts response.read_body{
"orders": [
{
"owner": "0x8ba1f109551bd432803012645ac136ddd64dba7",
"orderId": "50011",
"timestamp": "2026-07-09T09:15:42Z",
"marketId": "2",
"market": "ETH-PERP",
"type": "ORDER_TYPE_MARKET",
"side": "SIDE_SHORT",
"thresholdPrice": 3400.25,
"size": 5000,
"leverage": 10,
"status": "ORDER_STATUS_PENDING",
"filledSize": 0,
"unfilledSize": 5000,
"reduceOnly": false,
"canceled": false,
"initialMargin": 500,
"tickDecimals": 2,
"fees": 0,
"rebates": 0,
"reduceOrderType": "",
"initialNotional": 5000,
"stopLossPrice": 0,
"takeProfitPrice": 0
}
],
"pagination": {
"limit": 50,
"offset": 0,
"totalCount": "1"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Define the version of the Connect protocol. If omitted, use 1.
1 Define the timeout, in ms
Body
Maximum number of orders to return in this page. Defaults to 50 when omitted. Values above 1000 are capped to 1000 rather than rejected.
Number of matching orders to skip before collecting this page. Defaults to 0.
Optional wallet address filter, matched case-insensitively. When omitted, orders from every wallet are returned.
Optional filter to active orders only: PENDING,
PARTIALLY_FILLED, or PARTIALLY_MERGED. When omitted or
false, orders in any status are returned.
Response
Success