Pular para o conteúdo principal
GET
/
trading
/
orders
Listar ordens do usuário
curl --request GET \
  --url https://api.n2.market/api/v1/trading/orders \
  --header 'X-API-Key: <api-key>'
{
  "orders": [
    {
      "id": "d4d6b1c3-8848-4463-9822-e90a168bcd83",
      "marketId": "0336c14f-5a39-47c1-a88d-beee2e38163a",
      "outcomeId": "yes",
      "side": "BUY",
      "orderType": "LIMIT",
      "price": "0.55",
      "originalQuantity": "100.00",
      "remainingQuantity": "50.00",
      "filledQuantity": "50.00",
      "averageFillPrice": "0.55",
      "status": "PARTIALLY_FILLED",
      "timeInForce": "GTC",
      "createdAt": "2026-03-30T14:00:00.000Z",
      "updatedAt": "2026-03-30T14:30:00.000Z"
    }
  ]
}

Autorizações

X-API-Key
string
header
obrigatório

API Key for authentication. Get your key from the dashboard.

Parâmetros de consulta

active
boolean

Filtrar apenas ordens ativas (OPEN ou PARTIALLY_FILLED)

marketId
string<uuid>

Filtrar ordens por UUID do mercado

Resposta

Ordens recuperadas com sucesso

orders
object[]