Skip to main content
GET
/
v1
/
pm
/
orders
List orders
curl --request GET \
  --url https://relay.bayse.markets/v1/pm/orders
{
  "orders": [
    {
      "id": "f6a7b8c9-d0e1-2345-fabc-678901234567",
      "marketId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "outcome": "YES",
      "side": "BUY",
      "orderType": "LIMIT",
      "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

side
string
Filter by side: BUY or SELL.
status
string
Filter by status: open, filled, partial_filled, cancelled, expired, rejected.
eventId
string
Filter by event UUID.
marketId
string
Filter by market UUID.
outcomeId
string
Filter by outcome UUID.
currency
string
Filter by currency: USD or NGN.
page
integer
default:"1"
Page number.
size
integer
default:"20"
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"

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",
      "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
  }
}