> ## 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 attached conditional order transaction

> Handles `POST /v1/ix/place-attached-conditional-order` via `post.v1.ix.place_attached_conditional_order`.



## OpenAPI

````yaml /openapi/phoenix-public-api.json post /v1/ix/place-attached-conditional-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-attached-conditional-order:
    post:
      tags:
        - Trader
      summary: Build attached conditional order transaction
      description: >-
        Handles `POST /v1/ix/place-attached-conditional-order` via
        `post.v1.ix.place_attached_conditional_order`.
      operationId: post.v1.ix.place_attached_conditional_order
      requestBody:
        description: >-
          JSON request payload for
          `post.v1.ix.place_attached_conditional_order`.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlaceAttachedConditionalOrderRequest'
            example:
              authority: string
              orderPriceInTicks: 0
              orderSequenceNumber: string
              symbol: string
              traderPdaIndex: 0
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiInstructionResponse'
      security:
        - PhoenixBearerAuth: []
components:
  schemas:
    PlaceAttachedConditionalOrderRequest:
      type: object
      description: Request payload for /v1/ix/place-attached-conditional-order.
      required:
        - authority
        - traderPdaIndex
        - symbol
        - orderSequenceNumber
        - orderPriceInTicks
      properties:
        authority:
          type: string
        feePayer:
          type:
            - string
            - 'null'
        flightBuilderAuthority:
          type:
            - string
            - 'null'
        flightFeeCollectorTrader:
          type:
            - string
            - 'null'
        greaterTrigger:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ConditionalTriggerRequest'
        isIsolated:
          type: boolean
        lessTrigger:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ConditionalTriggerRequest'
        orderPriceInTicks:
          type: integer
          format: int64
          minimum: 0
        orderSequenceNumber:
          type: string
        positionAuthority:
          type:
            - string
            - 'null'
        symbol:
          type: string
        traderPdaIndex:
          type: integer
          format: int32
          minimum: 0
        traderSubaccountIndex:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
    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
    ConditionalTriggerRequest:
      type: object
      description: Trigger configuration for attached conditional orders.
      required:
        - side
      properties:
        executionPrice:
          type:
            - number
            - 'null'
          format: double
        executionPriceInTicks:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        orderKind:
          type:
            - string
            - 'null'
        side:
          type: string
        triggerPrice:
          type:
            - number
            - 'null'
          format: double
        triggerPriceInTicks:
          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.

````