Skip to content
UNHEDGED / DOCS

Search documentation

Browse docs or start typing to find a topic

↑ ↓ to navigate Enter to open Esc to close

Recover Client Order IDs

GET https://api.unhedged.gg/api/v1/orders/aliases

Lists retained mappings for accepted orders tagged with a client ID, whether open or closed, on your account. Results are available when the matching engine is disabled. Omit marketId to page across all markets; follow nextCursor until it is null. Client IDs can be reused after closure, so multiple closed orders may share one. Match a mapping to trade history by market_id and order_id. Results report retention_days (default 30). This is identity history, not an order-status lookup or replay receipt. Absence does not prove that a request failed or was never executed.

Configure request

Request

Security · Bearer token

Send your API key in the Authorization header. Required scope order:read.

Rate limit · 240 req/min shared with order reads (default)

Query parameters

marketId string
Optional market filter. Omit to enumerate all markets for your account.
limit number
Page size, 1-500. Default 100.
cursor string
Previous page nextCursor. Omit on page 1.
Authorization
Bearer token Authorization: Bearer ak_your_key_here
Query parameters
curl https://api.unhedged.gg/api/v1/orders/aliases \
  -H "Authorization: Bearer ak_your_key_here"
Response
{
  "aliases": [
    {
      "market_id": "clx...",
      "order_id": "213",
      "client_order_id": "quote-17",
      "accepted_at": "2026-09-01T12:00:00.123Z"
    }
  ],
  "nextCursor": "eyJhY2NlcHRlZEF0IjoiMTc4ODI2NDAwMDEyMyIsIm1hcmtldElkIjoiY2x4Li4uIiwib3JkZXJJZCI6IjIxMyJ9",
  "retention_days": 30,
  "coverage": "Mappings are retained for retention_days after acceptance. Absence does not imply that an unobserved request failed or was never executed; the mapping may have expired, predate this feature, or never have been accepted with a client_order_id."