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

# Get a task

Use the UUID returned by task creation. Tasks belonging to another owner or outside the key’s venue grants return `404`. Numeric amounts and sizes are decimal strings; unavailable values may be null. Trading fees are not included as a reliable task total. See [task lifecycle](/api-reference/task-lifecycle) for execution states.

<RequestExample>
  ```bash cURL theme={null}
  : "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
  : "${MOBIUS_API_KEY:?Set your API key locally}"
  : "${TASK_ID:?Set the task UUID}"

  curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks/$TASK_ID" \
    -H "Authorization: Bearer $MOBIUS_API_KEY"
  ```
</RequestExample>


## OpenAPI

````yaml api-reference/openapi.json GET /v1/delta-neutral/tasks/{taskId}
openapi: 3.1.1
info:
  title: MöB Delta Neutral API
  version: 1.0.0
  description: >-
    Create and manage paired positions through your bound venue accounts.


    Create an API key in this environment and pass it as a Bearer token. Keys
    grant specific venues and a maximum USD size per leg; they cannot withdraw
    funds. Local and demo deployments can execute real trades.


    All POST requests require a persisted Idempotency-Key. Reuse the same key,
    method, path and equivalent JSON when retrying an uncertain result. Keys are
    scoped to the wallet owner across API keys. HTTP 202 acknowledges a command;
    poll the task to observe execution.


    Authenticated requests are limited to 120 per minute per key. Respect
    Retry-After on 429. Numeric database fields in task responses are decimal
    strings.
servers: []
security:
  - BearerAuth: []
tags:
  - name: Service
  - name: Tasks
  - name: Request logs
paths:
  /v1/delta-neutral/tasks/{taskId}:
    parameters:
      - $ref: '#/components/parameters/TaskId'
    get:
      tags:
        - Tasks
      summary: Get a task
      operationId: getTask
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  task:
                    $ref: '#/components/schemas/Task'
                required:
                  - task
          headers:
            X-Request-Id:
              schema:
                type: string
                format: uuid
              description: Support correlation ID.
            X-RateLimit-Limit:
              schema:
                type: integer
                const: 120
            X-RateLimit-Remaining:
              schema:
                type: integer
                minimum: 0
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '404':
          $ref: '#/components/responses/Error404'
        '429':
          $ref: '#/components/responses/Error429'
        '503':
          $ref: '#/components/responses/Error503'
components:
  parameters:
    TaskId:
      name: taskId
      in: path
      required: true
      schema:
        type: string
        format: uuid
        pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
  schemas:
    Task:
      type: object
      properties:
        taskId:
          type: string
          format: uuid
        longVenue:
          $ref: '#/components/schemas/Venue'
        shortVenue:
          $ref: '#/components/schemas/Venue'
        longMarket:
          $ref: '#/components/schemas/Market'
        shortMarket:
          $ref: '#/components/schemas/Market'
        sizeUsd:
          type: string
          description: USD per leg as a decimal string.
        status:
          type: string
          description: >-
            Worker state, for example pending, running, closing, closed,
            cancelled or failed. A command acknowledgement is not the worker
            state.
        longSize:
          type:
            - string
            - 'null'
          description: Decimal string, or null before available.
        shortSize:
          type:
            - string
            - 'null'
          description: Decimal string, or null before available.
        longEntry:
          type:
            - string
            - 'null'
          description: Decimal string, or null before available.
        shortEntry:
          type:
            - string
            - 'null'
          description: Decimal string, or null before available.
        longPrice:
          type:
            - string
            - 'null'
          description: Decimal string, or null before available.
        shortPrice:
          type:
            - string
            - 'null'
          description: Decimal string, or null before available.
        longLeverage:
          type:
            - string
            - 'null'
          description: Decimal string, or null before available.
        shortLeverage:
          type:
            - string
            - 'null'
          description: Decimal string, or null before available.
        liqProtectionPct:
          type:
            - string
            - 'null'
          description: Decimal string, or null before available.
        sizeMismatchPct:
          type:
            - string
            - 'null'
          description: Decimal string, or null before available.
        fundingUsd:
          type: string
          description: Accrued funding in USD as a decimal string.
        longMarginMode:
          type:
            - string
            - 'null'
        shortMarginMode:
          type:
            - string
            - 'null'
        closeReason:
          type:
            - string
            - 'null'
        error:
          type:
            - string
            - 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        closeRequestedAt:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - taskId
        - longVenue
        - shortVenue
        - longMarket
        - shortMarket
        - sizeUsd
        - status
        - longSize
        - shortSize
        - longEntry
        - shortEntry
        - longPrice
        - shortPrice
        - longLeverage
        - shortLeverage
        - liqProtectionPct
        - sizeMismatchPct
        - fundingUsd
        - longMarginMode
        - shortMarginMode
        - closeReason
        - error
        - createdAt
        - updatedAt
        - closeRequestedAt
    Venue:
      type: string
      enum:
        - hl
        - lighter
        - lighter-mainnet
        - aster
      description: >-
        hl = Hyperliquid; lighter = Lighter RH (Robinhood); lighter-mainnet =
        canonical Lighter; aster = Aster.
    Market:
      type: string
      description: >-
        Exact listed venue symbol. Examples: ETH; Hyperliquid xyz:NVDA or
        io:ANTH; Aster USD1:XAU or U:BTC. Check current listings.
      examples:
        - ETH
        - xyz:NVDA
        - USD1:XAU
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
      required:
        - error
        - code
      additionalProperties: true
  responses:
    Error400:
      description: Invalid fields, query, JSON or idempotency key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      headers:
        X-Request-Id:
          schema:
            type: string
            format: uuid
          description: Support correlation ID.
        X-RateLimit-Limit:
          schema:
            type: integer
            const: 120
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
    Error401:
      description: Missing, invalid or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      headers:
        X-Request-Id:
          schema:
            type: string
            format: uuid
          description: Support correlation ID.
        X-RateLimit-Limit:
          schema:
            type: integer
            const: 120
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
    Error404:
      description: Task not found or inaccessible.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      headers:
        X-Request-Id:
          schema:
            type: string
            format: uuid
          description: Support correlation ID.
        X-RateLimit-Limit:
          schema:
            type: integer
            const: 120
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
    Error429:
      description: 120 requests per minute per key exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      headers:
        X-Request-Id:
          schema:
            type: string
            format: uuid
          description: Support correlation ID.
        X-RateLimit-Limit:
          schema:
            type: integer
            const: 120
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
        Retry-After:
          schema:
            type: integer
            minimum: 1
          description: Seconds to wait before retrying.
    Error503:
      description: Storage, market data or worker feature unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      headers:
        X-Request-Id:
          schema:
            type: string
            format: uuid
          description: Support correlation ID.
        X-RateLimit-Limit:
          schema:
            type: integer
            const: 120
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key created in this environment: mobius_<uuid>.<secret>. Keep it in
        a local environment variable; never commit it.

````