---
title: "Spot Cancel Order"
method: POST
path: "/v1/spot_hl/orders/cancel"
tags: ["spot_hl"]
---

# Spot Cancel Order

`POST /v1/spot_hl/orders/cancel`

## Request

- Base URL: `https://api.fereai.xyz`
- URL: `https://api.fereai.xyz/v1/spot_hl/orders/cancel`
- Auth: none declared

Cancel an open spot order by its venue order id (oid).

## Query parameters

- `wait` boolean: Block until task completes
- `timeout` integer: Seconds to block when wait=true (max 90; the ~100s edge cuts longer waits — use wait=false + poll for longer).

## Request body

- SpotCancelRequest
  - `asset` string, required: Spot base asset symbol of the order to cancel.
  - `order_id` integer, required: Venue order id (oid) from GET /v1/spot/orders.

## Response `200`

Successful Response

- TaskResponse
  - `task_id` string, required: Celery task ID for tracking the async operation.
  - `status` string: Current task status: queued, pending, started.
  - `poll_url` string, nullable: Relative URL to poll for task status.
  - `notification_stream` string, nullable: SSE stream URL for real-time task updates.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fereai/apis/fereai-gateway.md) - [All operations](https://skmtc.dev/fereai/apis/fereai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/fereai/apis/fereai-gateway/revisions/ad211f8e2f30?raw)
