> Use the canonical URL for citations. For the complete Predict API documentation index, fetch https://docs.staging.trypredict.com/llms.txt.

# Open Orders

GET /ws

Subscribe to the current Hyperliquid open-order snapshot for a Predict master account or subaccount and rebuild local order state after reconnecting.

Reference: https://docs.staging.trypredict.com/api-reference/web-socket-api/open-orders

## AsyncAPI Specification

```yaml
asyncapi: 2.6.0
info:
  title: Open Orders
  version: subpackage_open-orders.open-orders
  description: >-
    Subscribe to the current Hyperliquid open-order snapshot for a Predict
    master account or subaccount and rebuild local order state after
    reconnecting.
channels:
  /ws:
    description: >-
      Subscribe to the current Hyperliquid open-order snapshot for a Predict
      master account or subaccount and rebuild local order state after
      reconnecting.
    publish:
      operationId: subpackage_open-orders.open-orders-publish
      summary: Server message
      message:
        name: update
        payload:
          $ref: '#/components/schemas/openOrders_OpenOrdersUpdate'
    subscribe:
      operationId: subpackage_open-orders.open-orders-subscribe
      summary: Client message
      message:
        name: subscribe
        payload:
          $ref: '#/components/schemas/openOrders_SubscribeOpenOrders'
servers:
  Testnet:
    url: wss://api.hyperliquid-testnet.xyz/
    protocol: wss
    x-default: true
  Mainnet:
    url: wss://api.hyperliquid.xyz/
    protocol: wss
components:
  schemas:
    openOrders_OpenOrdersUpdate:
      type: object
      properties:
        channel:
          type: string
          enum:
            - openOrders
        data:
          type: array
          items:
            description: Any type
      required:
        - channel
        - data
      title: OpenOrdersUpdate
    common_SubscriptionMethod:
      type: string
      enum:
        - subscribe
        - unsubscribe
      title: SubscriptionMethod
    common_Address:
      type: string
      description: Master account or subaccount address.
      title: Address
    openOrders_OpenOrdersSubscription:
      type: object
      properties:
        type:
          type: string
          enum:
            - openOrders
        user:
          $ref: '#/components/schemas/common_Address'
      required:
        - type
        - user
      title: OpenOrdersSubscription
    openOrders_SubscribeOpenOrders:
      type: object
      properties:
        method:
          $ref: '#/components/schemas/common_SubscriptionMethod'
        subscription:
          $ref: '#/components/schemas/openOrders_OpenOrdersSubscription'
      required:
        - method
        - subscription
      title: SubscribeOpenOrders

```