Skip to main content
GET
/
orders
/
recent
List recent orders
curl --request GET \
  --url https://api-testnet.context.markets/v2/orders/recent \
  --header 'Authorization: Bearer <token>'
{
  "orders": [
    {
      "side": 123,
      "price": "<string>",
      "size": "<string>",
      "filledSize": "<string>",
      "remainingSize": "<string>",
      "percentFilled": 123,
      "insertedAt": "2023-11-07T05:31:56Z",
      "type": "limit",
      "trader": "<string>",
      "marketId": "<string>",
      "status": "open",
      "voidedAt": "2023-11-07T05:31:56Z",
      "voidReason": "UNFILLED_MARKET_ORDER",
      "outcomeIndex": 123,
      "nonce": "<string>"
    }
  ],
  "cursor": "<string>"
}

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Query Parameters

trader
string

Filter by trader address

marketId
string

Filter by market ID

status
enum<string>

Filter by order status

Available options:
open,
filled,
cancelled,
expired
limit
integer
default:200

Results per page

Required range: 1 <= x <= 500
windowSeconds
integer
default:120

Time window in seconds to look back

Required range: 1 <= x <= 600

Response

Recent orders

orders
object[]
required
cursor
string | null
required