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

# Build stop loss order transaction

> Handles `POST /v1/ix/place-stop-loss-order` via `post.v1.ix.place_stop_loss_order`.



## OpenAPI

````yaml /openapi/phoenix-public-api.json post /v1/ix/place-stop-loss-order
openapi: 3.1.0
info:
  title: Phoenix Eternal API
  description: >-
    RESTful API for accessing Phoenix Eternal perpetual trading data. Provides
    real-time orderbook levels, asset information, and market metadata.
  termsOfService: https://www.phoenix.trade/terms-of-service
  contact:
    name: Phoenix Development Team
    url: https://github.com/Ellipsis-Labs/phoenix
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://perp-api.phoenix.trade
    description: Phoenix Eternal Perp API
security: []
tags:
  - name: Auth
    description: Wallet and session authentication.
  - name: Exchange
    description: Exchange, market, candle, and no-referral register-instruction workflows.
  - name: Invite
    description: Invite validation, referral activation, and wallet allowlist checks.
  - name: Notifications
    description: Trader notification reads and acknowledgement helpers.
  - name: Trader
    description: Trader state, account history, and transaction builders.
externalDocs:
  url: https://docs.phoenix.trade
  description: Phoenix developer documentation
paths:
  /v1/ix/place-stop-loss-order:
    post:
      tags:
        - Trader
      summary: Build stop loss order transaction
      description: >-
        Handles `POST /v1/ix/place-stop-loss-order` via
        `post.v1.ix.place_stop_loss_order`.
      operationId: post.v1.ix.place_stop_loss_order
      requestBody:
        description: JSON request payload for `post.v1.ix.place_stop_loss_order`.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlaceStopLossOrderRequest'
            example:
              numBaseLots: 0
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiInstructionResponse'
      security:
        - PhoenixBearerAuth: []
components:
  schemas:
    PlaceStopLossOrderRequest:
      allOf:
        - $ref: '#/components/schemas/TpSlOrderConfig'
        - type: object
          required:
            - authority
            - traderPdaIndex
            - symbol
            - side
          properties:
            authority:
              type: string
            feePayer:
              type:
                - string
                - 'null'
            flightBuilderAuthority:
              type:
                - string
                - 'null'
            flightFeeCollectorTrader:
              type:
                - string
                - 'null'
            isIsolated:
              type: boolean
            positionAuthority:
              type:
                - string
                - 'null'
            side:
              type: string
            symbol:
              type: string
            traderPdaIndex:
              type: integer
              format: int32
              minimum: 0
            traderSubaccountIndex:
              type:
                - integer
                - 'null'
              format: int32
              minimum: 0
      description: Request payload for /ix/place-stop-loss-order.
    ApiInstructionResponse:
      type: object
      description: |-
        API representation of a Solana instruction.

        Note: this is a pure DTO. When needed, clients/servers can enable the
        appropriate conversion logic in the consumer crate to avoid forcing a
        Solana dependency in `phoenix-api-types`.
      required:
        - data
        - keys
        - programId
      properties:
        data:
          type: array
          items:
            type: integer
            format: int32
            minimum: 0
        keys:
          type: array
          items:
            $ref: '#/components/schemas/ApiAccountMeta'
        programId:
          type: string
    TpSlOrderConfig:
      type: object
      description: TP/SL configuration shared across endpoints.
      properties:
        numBaseLots:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        orderKind:
          type:
            - string
            - 'null'
        quantity:
          type:
            - number
            - 'null'
          format: double
        stopLossExecutionPrice:
          type:
            - number
            - 'null'
          format: double
        stopLossExecutionPriceInTicks:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        stopLossTriggerPrice:
          type:
            - number
            - 'null'
          format: double
        stopLossTriggerPriceInTicks:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        takeProfitExecutionPrice:
          type:
            - number
            - 'null'
          format: double
        takeProfitExecutionPriceInTicks:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        takeProfitTriggerPrice:
          type:
            - number
            - 'null'
          format: double
        takeProfitTriggerPriceInTicks:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
    ApiAccountMeta:
      type: object
      description: Account metadata returned from instruction-building endpoints.
      required:
        - pubkey
        - isSigner
        - isWritable
      properties:
        isSigner:
          type: boolean
        isWritable:
          type: boolean
        pubkey:
          type: string
  securitySchemes:
    PhoenixBearerAuth:
      type: http
      scheme: bearer
      description: Bearer access token issued by `/v1/auth/*` login endpoints.

````