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

# Chỉ số VN30 dự tính

> Cung cấp thông tin chỉ số VN30 dự tính trong phiên giao dịch, 
bao gồm giá trị chỉ số dự tính, mức tăng/giảm so với giá tham chiếu và số lượng mã tăng, giảm, đứng giá. 
Dữ liệu được cập nhật theo thời gian thực khi có thay đổi.



## AsyncAPI

````yaml vi/asyncapi/dnse.2026-09-10.asyncapi.yaml estimatedMarketIndexStream
id: estimatedMarketIndexStream
title: Chỉ số VN30 dự tính
description: >-
  Cung cấp thông tin chỉ số VN30 dự tính trong phiên giao dịch, 

  bao gồm giá trị chỉ số dự tính, mức tăng/giảm so với giá tham chiếu và số
  lượng mã tăng, giảm, đứng giá. 

  Dữ liệu được cập nhật theo thời gian thực khi có thay đổi.
servers:
  - id: production
    protocol: wss
    host: ws-openapi.dnse.com.vn
    bindings: []
    variables: []
  - id: sanbox
    protocol: wss
    host: ws-sb-openapi.dnse.com.vn
    bindings: []
    variables: []
address: /v1/stream
parameters: []
bindings:
  - protocol: ws
    version: 0.1.0
    value:
      method: GET
      query:
        type: object
        additionalProperties: false
        required:
          - encoding
        properties:
          encoding:
            type: string
            const: json
            default: json
            description: Định dạng mã hóa dữ liệu WebSocket (`json`, `msgpack`).
    schemaProperties:
      - name: method
        type: string
        description: GET
        required: false
      - name: query
        type: object
        required: false
        properties:
          - name: encoding
            type: string
            description: Định dạng mã hóa dữ liệu WebSocket (`json`, `msgpack`).
            required: true
operations:
  - &ref_1
    id: onEstimatedMarketIndexSubscription
    title: Đăng ký luồng chỉ số VN30 dự tính
    type: receive
    messages:
      - &ref_3
        id: subscribeRequest
        contentType: application/json
        payload:
          - name: Đăng ký luồng chỉ số VN30 dự tính
            description: Đăng ký topic `estimated_market_index.VN30.{encoding}`.
            type: object
            properties:
              - name: action
                type: string
                description: Loại message đăng ký topic.
                required: true
              - name: channels
                type: array
                description: Danh sách topic chỉ số VN30 dự tính cần đăng ký.
                required: true
                properties:
                  - name: name
                    type: string
                    description: Topic dữ liệu chỉ số VN30 dự tính ở định dạng JSON.
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          additionalProperties: false
          required:
            - action
            - channels
          properties:
            action:
              type: string
              description: Loại message đăng ký topic.
              const: subscribe
              x-parser-schema-id: <anonymous-schema-339>
            channels:
              type: array
              description: Danh sách topic chỉ số VN30 dự tính cần đăng ký.
              minItems: 1
              uniqueItems: true
              items:
                type: object
                additionalProperties: false
                required:
                  - name
                properties:
                  name:
                    type: string
                    description: Topic dữ liệu chỉ số VN30 dự tính ở định dạng JSON.
                    const: estimated_market_index.VN30.json
                    x-parser-schema-id: <anonymous-schema-342>
                x-parser-schema-id: <anonymous-schema-341>
              x-parser-schema-id: <anonymous-schema-340>
          x-parser-schema-id: <anonymous-schema-338>
        title: Đăng ký luồng chỉ số VN30 dự tính
        description: Đăng ký topic `estimated_market_index.VN30.{encoding}`.
        example: |-
          {
            "action": "subscribe",
            "channels": [
              {
                "name": "estimated_market_index.VN30.json"
              }
            ]
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribeRequest
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: estimatedMarketIndexStream
  - &ref_2
    id: onEstimatedMarketIndexUpdates
    title: Nhận cập nhật chỉ số VN30 dự tính
    type: send
    messages:
      - &ref_4
        id: update
        contentType: application/json
        payload:
          - name: Cập nhật chỉ số VN30 dự tính
            description: Bản cập nhật chỉ số VN30 dự tính khi dữ liệu thay đổi.
            type: object
            properties:
              - name: T
                type: string
                description: Mã loại message của chỉ số dự tính.
                required: true
              - name: action
                type: string
                description: Loại sự kiện cập nhật chỉ số dự tính.
                required: true
              - name: marketIndex
                type: object
                description: Dữ liệu chỉ số VN30 dự tính.
                required: true
                properties:
                  - name: indexName
                    type: string
                    description: Tên chỉ số.
                    required: true
                  - name: valueIndexes
                    type: number
                    description: Giá trị VN30 dự tính.
                    required: true
                  - name: changedValue
                    type: number
                    description: Mức tăng hoặc giảm của chỉ số so với giá tham chiếu.
                    required: true
                  - name: changedRatio
                    type: number
                    description: >-
                      Tỷ lệ phần trăm tăng hoặc giảm của chỉ số so với giá tham
                      chiếu.
                    required: true
                  - name: fluctuationUpIssueCount
                    type: integer
                    description: Số lượng mã có giá tăng.
                    required: true
                  - name: fluctuationDownIssueCount
                    type: integer
                    description: Số lượng mã có giá giảm.
                    required: true
                  - name: fluctuationSteadinessIssueCount
                    type: integer
                    description: Số lượng mã có giá không đổi.
                    required: true
                  - name: grossTradeAmount
                    type: number
                    description: Tổng giá trị giao dịch của các mã trong rổ VN30.
                    required: true
                  - name: totalVolumeTraded
                    type: integer
                    description: Tổng khối lượng giao dịch của các mã trong rổ VN30.
                    required: true
                  - name: time
                    type: string
                    description: >-
                      Thời điểm cập nhật dữ liệu theo định dạng DNSE `YYYY-MM-DD
                      HH:mm:ss.SSS`.
                    required: true
              - name: timestamp
                type: integer
                description: Unix timestamp của message tính bằng mili giây.
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: Message cập nhật chỉ số VN30 dự tính khi dữ liệu thay đổi.
          additionalProperties: false
          required:
            - T
            - action
            - marketIndex
            - timestamp
          properties:
            T:
              type: string
              description: Mã loại message của chỉ số dự tính.
              const: emi
              x-parser-schema-id: <anonymous-schema-344>
            action:
              type: string
              description: Loại sự kiện cập nhật chỉ số dự tính.
              const: estimated_market_index_update
              x-parser-schema-id: <anonymous-schema-345>
            marketIndex:
              description: Dữ liệu chỉ số VN30 dự tính.
              type: object
              additionalProperties: false
              required:
                - indexName
                - valueIndexes
                - changedValue
                - changedRatio
                - fluctuationUpIssueCount
                - fluctuationDownIssueCount
                - fluctuationSteadinessIssueCount
                - grossTradeAmount
                - totalVolumeTraded
                - time
              properties:
                indexName:
                  type: string
                  description: Tên chỉ số.
                  const: VN30
                  x-parser-schema-id: <anonymous-schema-347>
                valueIndexes:
                  type: number
                  format: float
                  description: Giá trị VN30 dự tính.
                  x-parser-schema-id: <anonymous-schema-348>
                changedValue:
                  type: number
                  format: float
                  description: Mức tăng hoặc giảm của chỉ số so với giá tham chiếu.
                  x-parser-schema-id: <anonymous-schema-349>
                changedRatio:
                  type: number
                  format: float
                  description: >-
                    Tỷ lệ phần trăm tăng hoặc giảm của chỉ số so với giá tham
                    chiếu.
                  x-parser-schema-id: <anonymous-schema-350>
                fluctuationUpIssueCount:
                  type: integer
                  description: Số lượng mã có giá tăng.
                  x-parser-schema-id: <anonymous-schema-351>
                fluctuationDownIssueCount:
                  type: integer
                  description: Số lượng mã có giá giảm.
                  x-parser-schema-id: <anonymous-schema-352>
                fluctuationSteadinessIssueCount:
                  type: integer
                  description: Số lượng mã có giá không đổi.
                  x-parser-schema-id: <anonymous-schema-353>
                grossTradeAmount:
                  type: number
                  format: float
                  description: Tổng giá trị giao dịch của các mã trong rổ VN30.
                  x-parser-schema-id: <anonymous-schema-354>
                totalVolumeTraded:
                  type: integer
                  format: int64
                  description: Tổng khối lượng giao dịch của các mã trong rổ VN30.
                  x-parser-schema-id: <anonymous-schema-355>
                time:
                  type: string
                  description: >-
                    Thời điểm cập nhật dữ liệu theo định dạng DNSE `YYYY-MM-DD
                    HH:mm:ss.SSS`.
                  pattern: ^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}$
                  x-parser-schema-id: <anonymous-schema-356>
              x-parser-schema-id: <anonymous-schema-346>
            timestamp:
              type: integer
              format: int64
              description: Unix timestamp của message tính bằng mili giây.
              x-parser-schema-id: <anonymous-schema-357>
          x-parser-schema-id: <anonymous-schema-343>
        title: Cập nhật chỉ số VN30 dự tính
        description: Bản cập nhật chỉ số VN30 dự tính khi dữ liệu thay đổi.
        example: |-
          {
            "T": "emi",
            "action": "estimated_market_index_update",
            "marketIndex": {
              "changedRatio": -0.53,
              "changedValue": -9.87,
              "fluctuationDownIssueCount": 25,
              "fluctuationSteadinessIssueCount": 2,
              "fluctuationUpIssueCount": 3,
              "grossTradeAmount": 4088.34,
              "indexName": "VN30",
              "time": "2026-08-19 14:00:55.145",
              "totalVolumeTraded": 121362100,
              "valueIndexes": 1866.27
            },
            "timestamp": 1787122855158
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: update
    bindings: []
    extensions: *ref_0
sendOperations:
  - *ref_1
receiveOperations:
  - *ref_2
sendMessages:
  - *ref_3
receiveMessages:
  - *ref_4
extensions:
  - id: x-parser-unique-object-id
    value: estimatedMarketIndexStream
securitySchemes: []

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.