---
title: "Cancel Order"
method: DELETE
path: "/orders"
tags: ["Orders"]
---

# Cancel Order

`DELETE /orders`

## Request body

- DeleteOrderRequest — A delete order object
  - `id` integer
  - `product_id` integer

## Response `200`

Returns back the order object

- Order — An Order object
  - `id` integer
  - `user_id` integer
  - `size` integer
  - `unfilled_size` integer
  - `side` 'buy' | 'sell' — side for which to place order
  - `order_type` 'limit_order' | 'market_order'
  - `limit_price` string
  - `stop_order_type` 'stop_loss_order'
  - `stop_price` string
  - `close_on_trigger` 'false' | 'true'
  - `state` 'open' | 'pending' | 'closed' | 'cancelled' — Order Status
  - `created_at` string
  - `product` Product
    - `id` integer — id of a product or a contract
    - `symbol` string — symbol of a product or a contract e.g. LINKBTC, XRPUSDQ
    - `description` string — description of a product or a contract
    - `created_at` string — product/contract creation date and time
    - `updated_at` string — product/contract update date and time
    - `settlement_time` string — settlement Timestamp of futures contract
    - `product_type` 'future' | 'inverse_future' — contract type 'future' or 'inverse_future'
    - `pricing_source` string — source and method of contract pricing
    - `impact_size` integer — size of a typical trade. Used in the computation of mark price
    - `initial_margin` integer — The amount required to enter into a new position
    - `maintenance_margin` string — The amount necessary when a loss on a futures position requires you to allocate more funds to return the margin to the initial margin level.
    - `contract_value` string — The notional value of a futures contract is simply the spot price of the asset multiplied by the amount of the asset specified in the contract
    - `contract_unit_currency` string — This is the unit of 1 contract, for vanilla futures, its underlying asset. for inverse, it is settling asset. for quanto, its settling asset / quoting asset
    - `tick_size` string — The minimum gap between 2 consecutive prices.
    - `trading_status` 'operational' | 'disrupted_cancel_only' | 'disrupted_post_only' — trading status of the contract e.g. 'operational','disrupted_cancel_only' or 'disrupted_post_only'
    - `max_leverage_notional` string — maximum notional position size (in settling asset terms) that can be acquired at highest allowed leverage for a given contract.
    - `default_leverage` string — default leverage
    - `initial_margin_scaling_factor` string
    - `maintenance_margin_scaling_factor` string
    - `commission_rate` string — rate at which commission fee will be calculated for a trade in given contract
    - `maker_commission_rate` string — rate at which maker rebate will be calculated
    - `liquidation_penalty_factor` string — Determines liquidation charge as per the following formula: liquidation_penalty_factor * minimum maintenance margin
    - `contract_type` string — Type of contracts e.g. futures, perpetual futures,
    - `position_size_limit` integer — Maximum size of contracts in a single order can be placed
    - `basis_factor_max_limit` string — Maximum allowed value of annualized basis
    - `is_quanto` boolean — Flag which denotes whether future contract is quanto or not
    - `funding_method` string — Method used to calculate funding for given contract. e.g. Fixed or mark price
    - `annualized_funding` string — Maximum allowed value of funding, expressed as annual rate.
    - `price_band` string — he range around mark price in which trading is allowed. This number is in percentage.
    - `underlying_asset` Asset
      - `id` integer
      - `symbol` string
      - `precision` integer
    - `quoting_asset` Asset
      - `id` integer
      - `symbol` string
      - `precision` integer
    - `settling_asset` Asset
      - `id` integer
      - `symbol` string
      - `precision` integer

## Other responses

- `400` — Returns error if order could not be cancelled

---

[API](https://skmtc.dev/delta/apis/delta-exchange-api.md) · [All operations](https://skmtc.dev/delta/apis/delta-exchange-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/delta/delta-exchange-api/revisions/36e800c9304c/schema)
