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

# Get a TWAP or VWAP order



## OpenAPI

````yaml /openapi.yaml get /v1/twap-orders/{twap_order_id}
openapi: 3.1.0
info:
  title: Funding Perpetuals API
  version: 1.0.0
  description: >-
    Programmatic access to Funding Perpetuals paper-trading challenge accounts.
    API trades use the same real order books and simulated execution engine as
    the web trading interface.
  contact:
    url: https://fundingperpetuals.com/support
servers:
  - url: https://developers.fundingperpetuals.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: General
  - name: Accounts
  - name: Markets
  - name: Positions
  - name: Orders
  - name: Fills
  - name: Strategy Orders
paths:
  /v1/twap-orders/{twap_order_id}:
    get:
      tags:
        - Strategy Orders
      summary: Get a TWAP or VWAP order
      operationId: getTwapOrder
      parameters:
        - $ref: '#/components/parameters/TwapOrderId'
      responses:
        '200':
          description: Scheduled order detail.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TwapOrderEnvelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    TwapOrderId:
      name: twap_order_id
      in: path
      required: true
      schema:
        type: string
  schemas:
    TwapOrderEnvelope:
      type: object
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/TwapOrder'
    TwapOrder:
      type: object
      required:
        - id
        - account_id
        - market_id
        - strategy
        - side
        - total_size
        - filled_size
        - leverage
        - margin_mode
        - reduce_only
        - duration_minutes
        - slice_interval_seconds
        - status
        - started_at
        - end_at
      properties:
        id:
          type: string
        account_id:
          type: string
        market_id:
          type: string
        provider:
          type: string
        symbol:
          type: string
        coin:
          type: string
        strategy:
          type: string
          enum:
            - twap
            - vwap
        side:
          type: string
          enum:
            - buy
            - sell
        total_size:
          type: number
        filled_size:
          type: number
        size_decimals:
          type: integer
        average_price:
          type: number
        leverage:
          type: number
        margin_mode:
          type: string
          enum:
            - cross
            - isolated
        reduce_only:
          type: boolean
        duration_minutes:
          type: integer
        slice_interval_seconds:
          type: integer
        slice_count:
          type: integer
        slices_attempted:
          type: integer
        randomize:
          type: boolean
        trigger_price:
          type: number
        max_price:
          type: number
        min_price:
          type: number
        status:
          type: string
        current_child_order_id:
          type: string
        activated_at:
          type: number
        started_at:
          type: number
        end_at:
          type: number
        next_run_at:
          type: number
        canceled_at:
          type: number
        completed_at:
          type: number
        completion_reason:
          type: string
    ErrorEnvelope:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/Error'
    Error:
      type: object
      required:
        - code
        - message
        - request_id
      properties:
        code:
          type: string
        message:
          type: string
        request_id:
          type: string
          format: uuid
  responses:
    Unauthorized:
      description: Missing, invalid, or revoked API key.
      headers:
        WWW-Authenticate:
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    NotFound:
      description: Resource not found or not owned by the authenticated user.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: A per-key, per-IP, or deployment request budget is exhausted.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  headers:
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Funding Perpetuals API key
      description: API key beginning with `fp_live_`.

````