Pular para o conteúdo principal
DELETE
/
trading
/
orders
/
{orderId}
Cancelar uma ordem
curl --request DELETE \
  --url https://api.n2.market/api/v1/trading/orders/{orderId} \
  --header 'X-API-Key: <api-key>'
{
  "orderId": "d4d6b1c3-8848-4463-9822-e90a168bcd83",
  "status": "CANCELLED",
  "cancelledAt": "2026-03-30T15:00:00.000Z",
  "remainingQuantity": "50.00"
}

Autorizações

X-API-Key
string
header
obrigatório

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

Parâmetros de caminho

orderId
string<uuid>
obrigatório

UUID da ordem

Resposta

Ordem cancelada com sucesso

orderId
string<uuid>
status
enum<string>
Opções disponíveis:
CANCELLED
cancelledAt
string<date-time>
remainingQuantity
string

Quantity that was on the book when cancelled