---
title: "Cancel a limit order"
method: POST
path: "/api/bot/v1/cancel_order"
tags: ["Paper trading"]
---

# Cancel a limit order

`POST /api/bot/v1/cancel_order`

## Request

- Base URL: `https://marginpad.io`
- URL: `https://marginpad.io/api/bot/v1/cancel_order`
- Auth: API key in header `X-API-Key`

Cancel one resting order. Body: {"order_id":"lo..."}.

## Response `200`

ok

## Other responses

- `404`: no such order
- `409`: already filled, cancelled or expired

---

[API](https://skmtc.dev/marginpad/apis/marginpad-free-crypto-api.md) · [All operations](https://skmtc.dev/marginpad/apis/marginpad-free-crypto-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marginpad/apis/marginpad-free-crypto-api/revisions/27d21fcd0bf0?raw)
