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

# Get execution status

> Returns quote-scoped execution progress, DAG step state, and terminal order leg results.



## OpenAPI

````yaml /openapi/openapi.json get /execution/status
openapi: 3.0.2
info:
  title: AGG API
  version: 1.0.0
  description: >-
    Prediction market aggregator REST API — authentication, users, venue events,
    venue markets, orderbooks, charts, and execution workflows.
servers:
  - url: https://api.agg.market
    description: Production
  - url: https://api.staging.agg.market
    description: Staging
security: []
paths:
  /execution/status:
    get:
      tags:
        - Execution
      summary: Get execution status
      description: >-
        Returns quote-scoped execution progress, DAG step state, and terminal
        order leg results.
      operationId: getExecutionStatus
      parameters:
        - name: quoteId
          in: query
          required: true
          schema:
            minLength: 1
            type: string
        - name: mode
          in: query
          required: false
          schema:
            type: string
            enum:
              - live
              - paper
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                required:
                  - executionId
                  - quoteId
                  - orderIds
                  - overallState
                  - terminal
                  - errorReason
                  - pollAfterMs
                  - dagProgress
                  - steps
                  - orders
                properties:
                  executionId:
                    type: string
                    nullable: true
                  quoteId:
                    type: string
                  orderIds:
                    type: array
                    items:
                      type: string
                  overallState:
                    type: string
                    enum:
                      - created
                      - routing
                      - quoting
                      - placing
                      - confirming
                      - filled
                      - partially_filled
                      - failed
                      - cancelled
                      - expired
                  terminal:
                    type: boolean
                  errorReason:
                    type: string
                    nullable: true
                  pollAfterMs:
                    minimum: 0
                    type: integer
                    nullable: true
                  dagProgress:
                    type: object
                    required:
                      - dagRunId
                      - totalSteps
                      - currentSequence
                      - currentStepType
                      - completedSequences
                      - stepTypes
                      - status
                      - errorReason
                    properties:
                      dagRunId:
                        type: string
                      totalSteps:
                        minimum: 0
                        type: integer
                      currentSequence:
                        minimum: 0
                        type: integer
                      currentStepType:
                        type: string
                        nullable: true
                      completedSequences:
                        type: array
                        items:
                          minimum: 1
                          type: integer
                      stepTypes:
                        type: object
                        additionalProperties:
                          type: string
                      status:
                        type: string
                        enum:
                          - running
                          - completed
                          - failed
                      errorReason:
                        type: string
                        nullable: true
                    nullable: true
                  steps:
                    type: array
                    items:
                      type: object
                      required:
                        - sequence
                        - stepType
                        - status
                        - attempt
                        - startedAt
                        - completedAt
                        - errorReason
                      properties:
                        sequence:
                          minimum: 1
                          type: integer
                        stepType:
                          type: string
                        status:
                          type: string
                          enum:
                            - pending
                            - in_progress
                            - completed
                            - failed
                            - skipped
                        attempt:
                          minimum: 0
                          type: integer
                        startedAt:
                          format: date-time
                          type: string
                          nullable: true
                        completedAt:
                          format: date-time
                          type: string
                          nullable: true
                        errorReason:
                          type: string
                          nullable: true
                  orders:
                    type: array
                    items:
                      type: object
                      required:
                        - orderId
                        - venue
                        - status
                        - event
                        - updatedAt
                      properties:
                        orderId:
                          type: string
                        venue:
                          type: string
                        status:
                          type: string
                        event:
                          nullable: true
                          type: string
                          enum:
                            - filled
                            - partial_fill
                            - failed
                        filledAmountRaw:
                          type: string
                        remainingAmountRaw:
                          type: string
                        quotedSharesRaw:
                          type: string
                        actualSharesRaw:
                          type: string
                        quotedToWinRaw:
                          type: string
                        actualToWinRaw:
                          type: string
                        quotedPriceRaw:
                          type: string
                        executionPriceRaw:
                          type: string
                        partialFillReason:
                          type: string
                        errorReason:
                          type: string
                        txHash:
                          type: string
                        updatedAt:
                          format: date-time
                          type: string
        '400':
          description: '400'
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
        '401':
          description: '401'
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
        '403':
          description: '403'
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
        '404':
          description: '404'
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
      security:
        - appId: []
          bearerAuth: []
components:
  securitySchemes:
    appId:
      type: apiKey
      in: header
      name: x-app-id
      description: Your application ID. Required for all app-tier and user-tier routes.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT access token returned by POST /auth/verify. Required for user-tier
        routes.

````