> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slate-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Force Close Position

> Force-close any open position regardless of market hours (Danger Zone).

Identical to DELETE /orders/{ticket} but requires the `force_close_position`
DZ permission instead of `close_position`. The gateway grants page-level
access via `view_orders_page`; this endpoint enforces the DZ perm.

No customer-ownership enforcement — staff act on any account in scope.



## OpenAPI

````yaml /openapi.json delete /orders/{ticket}/force-close
openapi: 3.1.0
info:
  title: Slate API
  version: 1.0.0
  description: Trading infrastructure API.
servers:
  - url: https://api.{your-broker}.slate-labs.com
    variables:
      your-broker:
        default: broker
security: []
tags:
  - name: Authentication
  - name: API Tokens
  - name: Customers
  - name: Accounts
  - name: Orders
  - name: Instruments & Groups
  - name: Transactions
  - name: Payments
  - name: Transfers
  - name: Risk
  - name: Workflow & CRM
  - name: Messaging
  - name: Integrations
  - name: Webhooks
  - name: Compliance
  - name: Promo codes
  - name: Reporting
  - name: Audit
  - name: Fraud & moderation
  - name: Broker settings
  - name: Users
  - name: Roles & Teams
  - name: Streams (SSE)
  - name: Simulator
  - name: Observability
  - name: Prop trading
paths:
  /orders/{ticket}/force-close:
    delete:
      tags:
        - Orders
      summary: Force Close Position
      description: >-
        Force-close any open position regardless of market hours (Danger Zone).


        Identical to DELETE /orders/{ticket} but requires the
        `force_close_position`

        DZ permission instead of `close_position`. The gateway grants page-level

        access via `view_orders_page`; this endpoint enforces the DZ perm.


        No customer-ownership enforcement — staff act on any account in scope.
      operationId: force_close_position_orders__ticket__force_close_delete
      parameters:
        - name: ticket
          in: path
          required: true
          schema:
            type: integer
            title: Ticket
        - name: login
          in: query
          required: true
          schema:
            type: integer
            title: Login
            description: Trading account login
          description: Trading account login
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderHistoryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OrderHistoryResponse:
      properties:
        order:
          type: integer
          title: Order
        parent_order:
          anyOf:
            - type: integer
            - type: 'null'
          title: Parent Order
        login:
          type: integer
          title: Login
        symbol:
          type: string
          title: Symbol
        cmd:
          type: integer
          title: Cmd
        type:
          type: string
          title: Type
        volume:
          type: number
          title: Volume
        volume_closed:
          type: number
          title: Volume Closed
        close_volume:
          type: number
          title: Close Volume
          default: 0
        open_price:
          type: number
          title: Open Price
        close_price:
          type: number
          title: Close Price
        open_time:
          type: string
          format: date-time
          title: Open Time
        close_time:
          type: string
          format: date-time
          title: Close Time
        sl:
          anyOf:
            - type: number
            - type: 'null'
          title: Sl
        tp:
          anyOf:
            - type: number
            - type: 'null'
          title: Tp
        commission:
          type: number
          title: Commission
        storage:
          type: number
          title: Storage
        profit:
          type: number
          title: Profit
        exposure:
          type: number
          title: Exposure
        comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Comment
        open_fx_rate:
          type: number
          title: Open Fx Rate
          default: 1
        close_fx_rate:
          type: number
          title: Close Fx Rate
          default: 1
        open_spread_bid:
          type: number
          title: Open Spread Bid
          default: 0
        open_spread_ask:
          type: number
          title: Open Spread Ask
          default: 0
        account_currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Account Currency
        account_fx_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Account Fx Rate
      type: object
      required:
        - order
        - login
        - symbol
        - cmd
        - type
        - volume
        - volume_closed
        - open_price
        - close_price
        - open_time
        - close_time
        - sl
        - tp
        - commission
        - storage
        - profit
        - exposure
        - comment
      title: OrderHistoryResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````