List orders
curl --request GET \
--url https://relay.bayse.markets/v1/pm/ordersimport requests
url = "https://relay.bayse.markets/v1/pm/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://relay.bayse.markets/v1/pm/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://relay.bayse.markets/v1/pm/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://relay.bayse.markets/v1/pm/orders"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://relay.bayse.markets/v1/pm/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://relay.bayse.markets/v1/pm/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"orders": [
{
"id": "f6a7b8c9-d0e1-2345-fabc-678901234567",
"marketId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"outcome": "YES",
"side": "BUY",
"orderType": "LIMIT",
"stpMode": "SKIP",
"status": "open",
"amount": 100,
"price": 0.70,
"size": 100,
"filledSize": 0,
"remainingSize": 100,
"currency": "USD",
"createdAt": "2026-02-17T12:00:00Z",
"updatedAt": "2026-02-17T12:00:00Z"
}
],
"pagination": {
"page": 1,
"size": 20,
"lastPage": 1,
"totalCount": 1
}
}
Trading
List orders
Get a paginated list of your orders
GET
/
v1
/
pm
/
orders
List orders
curl --request GET \
--url https://relay.bayse.markets/v1/pm/ordersimport requests
url = "https://relay.bayse.markets/v1/pm/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://relay.bayse.markets/v1/pm/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://relay.bayse.markets/v1/pm/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://relay.bayse.markets/v1/pm/orders"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://relay.bayse.markets/v1/pm/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://relay.bayse.markets/v1/pm/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"orders": [
{
"id": "f6a7b8c9-d0e1-2345-fabc-678901234567",
"marketId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"outcome": "YES",
"side": "BUY",
"orderType": "LIMIT",
"stpMode": "SKIP",
"status": "open",
"amount": 100,
"price": 0.70,
"size": 100,
"filledSize": 0,
"remainingSize": 100,
"currency": "USD",
"createdAt": "2026-02-17T12:00:00Z",
"updatedAt": "2026-02-17T12:00:00Z"
}
],
"pagination": {
"page": 1,
"size": 20,
"lastPage": 1,
"totalCount": 1
}
}
Authentication
Read authentication required —X-Public-Key header.
Query parameters
Filter by side:
BUY or SELL.Filter by status:
open, filled, partial_filled, cancelled, expired, rejected.Filter by event UUID.
Filter by market UUID.
Filter by outcome UUID.
Filter by currency:
USD or NGN.Page number.
Results per page.
Example request
curl "https://relay.bayse.markets/v1/pm/orders?status=open&page=1&size=20" \
-H "X-Public-Key: pk_live_abcdef123456"
const response = await fetch(
'https://relay.bayse.markets/v1/pm/orders?status=open',
{ headers: { 'X-Public-Key': 'pk_live_abcdef123456' } }
);
const data = await response.json();
import requests
resp = requests.get(
'https://relay.bayse.markets/v1/pm/orders',
params={'status': 'open', 'page': 1, 'size': 20},
headers={'X-Public-Key': 'pk_live_abcdef123456'},
)
data = resp.json()
req, _ := http.NewRequest("GET", "https://relay.bayse.markets/v1/pm/orders", nil)
q := req.URL.Query()
q.Add("status", "open")
req.URL.RawQuery = q.Encode()
req.Header.Set("X-Public-Key", "pk_live_abcdef123456")
resp, _ := http.DefaultClient.Do(req)
Response
Returns a paginated list of orders. Each order has the same shape as the response from Place order — either an AMM order or a CLOB order depending on the market.{
"orders": [
{
"id": "f6a7b8c9-d0e1-2345-fabc-678901234567",
"marketId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"outcome": "YES",
"side": "BUY",
"orderType": "LIMIT",
"stpMode": "SKIP",
"status": "open",
"amount": 100,
"price": 0.70,
"size": 100,
"filledSize": 0,
"remainingSize": 100,
"currency": "USD",
"createdAt": "2026-02-17T12:00:00Z",
"updatedAt": "2026-02-17T12:00:00Z"
}
],
"pagination": {
"page": 1,
"size": 20,
"lastPage": 1,
"totalCount": 1
}
}
⌘I