> ## 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.

# User active twaps

> User's active TWAP (Time-Weighted Average Price) orders



## AsyncAPI

````yaml api-reference/asyncapi.json userActiveTwaps
id: userActiveTwaps
title: User active twaps
description: User's active TWAP (Time-Weighted Average Price) orders
servers:
  - id: testnet
    protocol: wss
    host: api.testnet.aptoslabs.com/decibel/ws
    bindings: []
    variables: []
address: user_active_twaps:{userAddr}
parameters:
  - id: userAddr
    jsonSchema:
      type: string
      description: User wallet address (Aptos address format, e.g. 0x123...)
    description: User wallet address (Aptos address format, e.g. 0x123...)
    type: string
    required: true
    deprecated: false
bindings: []
operations:
  - &ref_0
    id: receiveuserActiveTwaps
    title: Receiveuser active twaps
    description: >-
      Receive updates for user's active twap (time-weighted average price)
      orders
    type: receive
    messages:
      - &ref_1
        id: UserActiveTwapsMessage
        payload:
          - name: UserActiveTwapsMessage
            description: User's active TWAP (Time-Weighted Average Price) orders
            type: object
            properties:
              - name: topic
                type: string
                required: true
              - name: twaps
                type: array
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - topic
            - twaps
          properties:
            topic:
              type: string
              x-parser-schema-id: <anonymous-schema-136>
            twaps:
              type: array
              items:
                type: object
                required:
                  - market
                  - is_buy
                  - order_id
                  - is_reduce_only
                  - start_unix_ms
                  - frequency_s
                  - duration_s
                  - orig_size
                  - remaining_size
                  - status
                  - transaction_unix_ms
                  - transaction_version
                properties:
                  duration_s:
                    type: integer
                    format: int64
                    example: 300
                    minimum: 0
                    x-parser-schema-id: <anonymous-schema-40>
                  frequency_s:
                    type: integer
                    format: int64
                    example: 30
                    minimum: 0
                    x-parser-schema-id: <anonymous-schema-41>
                  is_buy:
                    type: boolean
                    example: true
                    x-parser-schema-id: <anonymous-schema-42>
                  is_reduce_only:
                    type: boolean
                    x-parser-schema-id: <anonymous-schema-43>
                  market:
                    type: string
                    example: 0xmarket123...
                    x-parser-schema-id: <anonymous-schema-44>
                  order_id:
                    type: string
                    x-parser-schema-id: <anonymous-schema-45>
                  orig_size:
                    type: number
                    format: double
                    x-parser-schema-id: <anonymous-schema-46>
                  remaining_size:
                    type: number
                    format: double
                    x-parser-schema-id: <anonymous-schema-47>
                  start_unix_ms:
                    type: integer
                    format: int64
                    example: 1730841600000
                    x-parser-schema-id: <anonymous-schema-48>
                  status:
                    type: string
                    x-parser-schema-id: <anonymous-schema-49>
                  transaction_unix_ms:
                    type: integer
                    format: int64
                    x-parser-schema-id: <anonymous-schema-50>
                  transaction_version:
                    type: integer
                    format: int64
                    minimum: 0
                    x-parser-schema-id: <anonymous-schema-51>
                x-parser-schema-id: TwapDto
              x-parser-schema-id: <anonymous-schema-137>
          x-parser-schema-id: UserActiveTwapsResponse
        title: User active twaps message
        description: User's active TWAP (Time-Weighted Average Price) orders
        example: |-
          {
            "topic": "user_active_twaps:0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
            "twaps": [
              {
                "market": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
                "is_buy": true,
                "order_id": "78901",
                "is_reduce_only": false,
                "start_unix_ms": 1699564800000,
                "frequency_s": 300,
                "duration_s": 3600,
                "orig_size": 100,
                "remaining_size": 75,
                "status": "Open",
                "transaction_unix_ms": 1699564800000,
                "transaction_version": 12345679
              }
            ]
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: UserActiveTwapsMessage
          - id: x-parser-message-name
            value: UserActiveTwapsMessage
    bindings: []
    extensions:
      - id: x-parser-unique-object-id
        value: userActiveTwaps
sendOperations:
  - *ref_0
receiveOperations: []
sendMessages:
  - *ref_1
receiveMessages: []
extensions:
  - id: x-parser-unique-object-id
    value: userActiveTwaps
securitySchemes: []

````