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

# Get active TWAP orders

> Retrieve currently active TWAP (time-weighted average price) orders for a specific user.
Shows orders that have remaining size to be executed.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/active_twaps
openapi: 3.1.0
info:
  title: Decibel Trading API
  description: >-
    RESTful API for Decibel. Provides read-only endpoints for market data,
    trading operations, positions, and analytics.
  contact:
    name: Decibel Team
    url: https://decibel.trade/
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.mainnet.aptoslabs.com/decibel
    description: Mainnet
  - url: https://api.testnet.aptoslabs.com/decibel
    description: Testnet
security:
  - bearerAuth: []
tags:
  - name: Market Data
    description: Market information and real-time data endpoints
  - name: User
    description: User information and account management
  - name: Trades
    description: Trading operations and history
  - name: Positions
    description: User position management
  - name: Orders
    description: Order management and history
  - name: TWAP
    description: Time-weighted average price orders
  - name: Bulk Orders
    description: Bulk order management
  - name: Vaults
    description: Vault operations and management
  - name: Analytics
    description: Analytics and performance metrics
  - name: Predeposit Rewards
    description: Season 0 predeposit USDC rewards
  - name: Referrals
    description: Referral code management and tracking
paths:
  /api/v1/active_twaps:
    get:
      tags:
        - TWAP
      summary: Get active TWAP orders
      description: >-
        Retrieve currently active TWAP (time-weighted average price) orders for
        a specific user.

        Shows orders that have remaining size to be executed.
      operationId: handle_active_twaps
      parameters:
        - name: account
          in: query
          description: User account address
          required: true
          schema:
            type: string
          example: 0x123...
        - name: limit
          in: query
          description: Maximum number of active TWAPs to return
          required: false
          schema:
            type: integer
            format: int32
            default: 10
            minimum: 0
          example: 10
      responses:
        '200':
          description: Active TWAPs retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TwapDto'
        '500':
          description: Database error
components:
  schemas:
    TwapDto:
      type: object
      required:
        - market
        - is_buy
        - order_id
        - is_reduce_only
        - start_unix_ms
        - frequency_s
        - duration_s
        - orig_size
        - remaining_size
        - status
        - client_order_id
        - transaction_unix_ms
        - transaction_version
      properties:
        client_order_id:
          type: string
          example: client_order_123
        duration_s:
          type: integer
          format: int64
          example: 300
          minimum: 0
        frequency_s:
          type: integer
          format: int64
          example: 30
          minimum: 0
        is_buy:
          type: boolean
          example: true
        is_reduce_only:
          type: boolean
        market:
          type: string
          example: 0xmarket123...
        order_id:
          type: string
        orig_size:
          type: number
          format: double
        remaining_size:
          type: number
          format: double
        start_unix_ms:
          type: integer
          format: int64
          example: 1730841600000
        status:
          type: string
        transaction_unix_ms:
          type: integer
          format: int64
        transaction_version:
          type: integer
          format: int64
          minimum: 0
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from Geomi. See
        [Authentication](/api-reference/rest/authentication) for setup
        instructions.

````