---
title: "Flatten Run"
method: POST
path: "/v1/control/flatten"
tags: ["control"]
---

# Flatten Run

`POST /v1/control/flatten`

## Request

- Base URL: `https://app.mrtrades.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.mrtrades.com/v1/control/flatten`
- Auth: none declared

FIRE a planned job. Live HL posts stay off until desk_live_trading is enabled.

## Headers

- `x-api-key` string, nullable
- `authorization` string, nullable

## Request body

- FlattenBody
  - `job_id` integer, nullable
  - `nonce` string, nullable
  - `idempotency_key` string, nullable
  - `mode` string, nullable
  - `rank` string, nullable
  - `cancel_orders` boolean, nullable
  - `device_id` integer, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mrtrades/apis/mtdp-api.md) · [All operations](https://skmtc.dev/mrtrades/apis/mtdp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mrtrades/apis/mtdp-api/revisions/bc6c76f51439?raw)
