openapi: 3.0.2
info:
  title: Futures (USDⓈ-M) WebSocket Market Streams
  description: Access market data, manage accounts, and trade USDⓈ-M perpetual futures.
  x-description-cn: 访问市场数据、管理账户，并交易 USDⓈ-M 永续合约。
  version: 1.0.0
  termsOfService: https://www.binance.com/en/terms
  contact:
    name: Binance API Support
    url: https://www.binance.com/en/support
x-product-type: ws-streams
x-user-data-streams: true
externalDocs:
  description: Futures (USDⓈ-M) docs
  url: https://developers.binance.com/en/docs/products/derivatives-trading-usds-futures/general-info
tags:
  - name: public
    x-displayName: Public
    x-displayName-cn: 公开
  - name: market
    x-displayName: Market
    x-displayName-cn: 市场
servers:
  - url: wss://fstream.binance.com
  - url: wss://stream.binancefuture.com
paths:
  /{symbol}@aggTrade:
    post:
      summary: Aggregate Trade Streams
      x-summary-cn: 归集交易
      description: >-
        The Aggregate Trade Streams push market trade information that is aggregated for fills with same price and
        taking side every 100 milliseconds. Only market trades will be aggregated, which means the insurance fund trades
        and ADL trades won't be aggregated.


        > **After CM migration**, the payload is appended with a new `st` field (`1` = UM, `2` = CM).
      x-description-cn: |-
        归集交易流每100毫秒推送一次市场交易信息，这些信息是针对相同价格和方向的成交进行归集的。只有市场交易会被归集，保险基金交易和ADL交易不会被归集。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      tags:
        - market
      operationId: aggregateTradeStreams
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#aggregate-trade-streams
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/aggregateTradeStreams.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/aggregate_trade_streams.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/aggregate_trade_streams.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/AggregateTradeStreamsExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/AggregateTradeStreams/AggregateTradeStreams.go
      x-update-speed: 100ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: The symbol parameter
          x-description-cn: 交易对参数。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - btcusdt@aggTrade
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@aggTrade
              id: e9d6b4349871b40611412680b3445fac
      x-response-notes: "- Retail Price Improvement(RPI) orders are aggregated into field q and without special tags to be distinguished."
      x-response-notes-cn: "- 零售价格改进（RPI）订单被归集到字段 q 中，并且没有特殊标签来区分。"
      responses:
        Raw Stream:
          description: Aggregate Trade Streams
          x-description-cn: 归集成交流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: aggTrade
                    description: Event type
                    x-description-cn: 事件类型
                  E:
                    type: integer
                    example: 123456789
                    format: int64
                    description: Event time
                    x-description-cn: 事件时间
                  s:
                    type: string
                    example: BNBUSDT
                    description: Symbol
                    x-description-cn: 交易对
                  a:
                    type: integer
                    example: 5933014
                    format: int64
                    description: Aggregate trade ID
                    x-description-cn: 归集成交 ID
                  p:
                    type: string
                    example: "0.001"
                    description: Price
                    x-description-cn: 成交价格
                  q:
                    type: string
                    example: "100"
                    description: Quantity with all the market trades
                    x-description-cn: 成交量，包含RPI订单数据
                  nq:
                    type: string
                    example: "100"
                    description: Normal quantity without the trades involving RPI orders
                    x-description-cn: 普通订单成交量，不包含RPI订单数据
                  f:
                    type: integer
                    example: 100
                    format: int64
                    description: First trade ID
                    x-description-cn: 被归集的首个交易ID
                  l:
                    type: integer
                    example: 105
                    format: int64
                    description: Last trade ID
                    x-description-cn: 被归集的末次交易ID
                  T:
                    type: integer
                    example: 123456785
                    format: int64
                    description: Trade time
                    x-description-cn: 成交时间
                  m:
                    type: boolean
                    example: true
                    description: Is the buyer the market maker?
                    x-description-cn: 买方是否是做市方。如true，则此次成交是一个主动卖出单，否则是一个主动买入单。
                  st:
                    type: integer
                    example: 1
                    description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                    x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: aggTrade
                E: 123456789
                s: BNBUSDT
                a: 5933014
                p: "0.001"
                q: "100"
                nq: "100"
                f: 100
                l: 105
                T: 123456785
                m: true
                st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@aggTrade
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: aggTrade
                        description: Event type
                        x-description-cn: 事件类型
                      E:
                        type: integer
                        example: 123456789
                        format: int64
                        description: Event time
                        x-description-cn: 事件时间
                      s:
                        type: string
                        example: BNBUSDT
                        description: Symbol
                        x-description-cn: 交易对
                      a:
                        type: integer
                        example: 5933014
                        format: int64
                        description: Aggregate trade ID
                        x-description-cn: 归集成交 ID
                      p:
                        type: string
                        example: "0.001"
                        description: Price
                        x-description-cn: 成交价格
                      q:
                        type: string
                        example: "100"
                        description: Quantity with all the market trades
                        x-description-cn: 成交量，包含RPI订单数据
                      nq:
                        type: string
                        example: "100"
                        description: Normal quantity without the trades involving RPI orders
                        x-description-cn: 普通订单成交量，不包含RPI订单数据
                      f:
                        type: integer
                        example: 100
                        format: int64
                        description: First trade ID
                        x-description-cn: 被归集的首个交易ID
                      l:
                        type: integer
                        example: 105
                        format: int64
                        description: Last trade ID
                        x-description-cn: 被归集的末次交易ID
                      T:
                        type: integer
                        example: 123456785
                        format: int64
                        description: Trade time
                        x-description-cn: 成交时间
                      m:
                        type: boolean
                        example: true
                        description: Is the buyer the market maker?
                        x-description-cn: 买方是否是做市方。如true，则此次成交是一个主动卖出单，否则是一个主动买入单。
                      st:
                        type: integer
                        example: 1
                        description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                        x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@aggTrade
                data:
                  e: aggTrade
                  E: 123456789
                  s: BNBUSDT
                  a: 5933014
                  p: "0.001"
                  q: "100"
                  nq: "100"
                  f: 100
                  l: 105
                  T: 123456785
                  m: true
                  st: 1
  /!forceOrder@arr:
    post:
      summary: All Market Liquidation Order Streams
      x-summary-cn: 全市场强平订单
      description: >-
        The All Liquidation Order Snapshot Streams push force liquidation order information for all symbols in the
        market. For each symbol，only the latest one liquidation order within 1000ms will be pushed as the snapshot. If
        no liquidation happens in the interval of 1000ms, no stream will be pushed.


        > **After CM migration**, this stream pushes the merged UM + CM universe (subscribable on both `fstream` and
        `dstream`); each payload is appended with a new `st` field (`1` = UM, `2` = CM) and a new `ps` field (pair
        symbol).
      x-description-cn: >-
        全市场强平订单快照流推送市场上所有交易对的强平订单信息。对于每个交易对，在1000毫秒内只会推送最新的一笔强平订单作为快照。如果在1000毫秒的时间间隔内没有发生强平，则不会推送任何流。


        > **迁移后**,此 stream 推送合并的 UM + CM universe(`fstream` 与 `dstream` 都可订阅);payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)以及
        `ps`(pair symbol)字段。
      tags:
        - market
      operationId: allMarketLiquidationOrderStreams
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#all-market-liquidation-order-streams
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/allMarketLiquidationOrderStreams.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/all_market_liquidation_order_streams.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/all_market_liquidation_order_streams.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/AllMarketLiquidationOrderStreamsExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/AllMarketLiquidationOrderStreams/AllMarketLiquidationOrderStreams.go
      x-update-speed: 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - "!forceOrder@arr"
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - "!forceOrder@arr"
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: All Market Liquidation Order Streams
          x-description-cn: 全市场强平订单流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: forceOrder
                    description: Event Type
                    x-description-cn: 事件类型
                  E:
                    type: integer
                    example: 1568014460893
                    format: int64
                    description: Event Time
                    x-description-cn: 事件时间
                  o:
                    type: object
                    properties:
                      s:
                        type: string
                        example: BTCUSDT
                        description: Symbol
                        x-description-cn: 交易对
                      S:
                        type: string
                        example: SELL
                        description: Side
                        x-description-cn: 订单方向
                      o:
                        type: string
                        example: LIMIT
                        description: Order Type
                        x-description-cn: 订单类型
                      f:
                        type: string
                        example: IOC
                        description: Time in Force
                        x-description-cn: 有效方式
                      q:
                        type: string
                        example: "0.014"
                        description: Original Quantity
                        x-description-cn: 订单数量
                      p:
                        type: string
                        example: "9910"
                        description: Price
                        x-description-cn: 订单价格
                      ap:
                        type: string
                        example: "9910"
                        description: Average Price
                        x-description-cn: 平均价格
                      X:
                        type: string
                        example: FILLED
                        description: Order Status
                        x-description-cn: 订单状态
                      l:
                        type: string
                        example: "0.014"
                        description: Order Last Filled Quantity
                        x-description-cn: 订单最近成交量
                      z:
                        type: string
                        example: "0.014"
                        description: Order Filled Accumulated Quantity
                        x-description-cn: 订单累计成交量
                      T:
                        type: integer
                        example: 1568014460893
                        format: int64
                        description: Order Trade Time
                        x-description-cn: 交易时间
                    description: Order Type
                    x-description-cn: 订单类型
                  ps:
                    type: string
                    example: BTCUSDT
                    description: (After CM migration) Pair symbol
                    x-description-cn: (迁移后新增) 标的交易对
                  st:
                    type: integer
                    example: 1
                    description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                    x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: forceOrder
                E: 1568014460893
                o:
                  s: BTCUSDT
                  S: SELL
                  o: LIMIT
                  f: IOC
                  q: "0.014"
                  p: "9910"
                  ap: "9910"
                  X: FILLED
                  l: "0.014"
                  z: "0.014"
                  T: 1568014460893
                ps: BTCUSDT
                st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: "!forceOrder@arr"
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: forceOrder
                        description: Event Type
                        x-description-cn: 事件类型
                      E:
                        type: integer
                        example: 1568014460893
                        format: int64
                        description: Event Time
                        x-description-cn: 事件时间
                      o:
                        type: object
                        properties:
                          s:
                            type: string
                            example: BTCUSDT
                            description: Symbol
                            x-description-cn: 交易对
                          S:
                            type: string
                            example: SELL
                            description: Side
                            x-description-cn: 订单方向
                          o:
                            type: string
                            example: LIMIT
                            description: Order Type
                            x-description-cn: 订单类型
                          f:
                            type: string
                            example: IOC
                            description: Time in Force
                            x-description-cn: 有效方式
                          q:
                            type: string
                            example: "0.014"
                            description: Original Quantity
                            x-description-cn: 订单数量
                          p:
                            type: string
                            example: "9910"
                            description: Price
                            x-description-cn: 订单价格
                          ap:
                            type: string
                            example: "9910"
                            description: Average Price
                            x-description-cn: 平均价格
                          X:
                            type: string
                            example: FILLED
                            description: Order Status
                            x-description-cn: 订单状态
                          l:
                            type: string
                            example: "0.014"
                            description: Order Last Filled Quantity
                            x-description-cn: 订单最近成交量
                          z:
                            type: string
                            example: "0.014"
                            description: Order Filled Accumulated Quantity
                            x-description-cn: 订单累计成交量
                          T:
                            type: integer
                            example: 1568014460893
                            format: int64
                            description: Order Trade Time
                            x-description-cn: 交易时间
                        description: Order Type
                        x-description-cn: 订单类型
                      ps:
                        type: string
                        example: BTCUSDT
                        description: (After CM migration) Pair symbol
                        x-description-cn: (迁移后新增) 标的交易对
                      st:
                        type: integer
                        example: 1
                        description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                        x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: "!forceOrder@arr"
                data:
                  e: forceOrder
                  E: 1568014460893
                  o:
                    s: BTCUSDT
                    S: SELL
                    o: LIMIT
                    f: IOC
                    q: "0.014"
                    p: "9910"
                    ap: "9910"
                    X: FILLED
                    l: "0.014"
                    z: "0.014"
                    T: 1568014460893
                  ps: BTCUSDT
                  st: 1
  /!miniTicker@arr:
    post:
      summary: All Market Mini Tickers Stream
      x-summary-cn: 全市场的精简Ticker
      description: >-
        24hr rolling window mini-ticker statistics for all symbols. These are NOT the statistics of the UTC day, but a
        24hr rolling window from requestTime to 24hrs before. Note that only tickers that have changed will be present
        in the array.


        > **After CM migration**, this stream pushes the merged UM + CM universe (subscribable on both `fstream` and
        `dstream`); each payload is appended with a new `st` field (`1` = UM, `2` = CM) and a new `ps` field (pair
        symbol).
      x-description-cn: >-
        所有交易对的24小时滚动窗口精简Ticker统计。这些不是UTC日的统计数据，而是从请求时间到24小时前的24小时滚动窗口。请注意，只有发生变化的Ticker才会出现在数组中。


        > **迁移后**,此 stream 推送合并的 UM + CM universe(`fstream` 与 `dstream` 都可订阅);payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)以及
        `ps`(pair symbol)字段。
      tags:
        - market
      operationId: allMarketMiniTickersStream
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#all-market-mini-tickers-stream
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/allMarketMiniTickersStream.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/all_market_mini_tickers_stream.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/all_market_mini_tickers_stream.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/AllMarketMiniTickersStreamExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/AllMarketMiniTickersStream/AllMarketMiniTickersStream.go
      x-update-speed: 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - "!miniTicker@arr"
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - "!miniTicker@arr"
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: All Market Mini Tickers Stream
          x-description-cn: 全市场精简行情流
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    e:
                      type: string
                      example: 24hrMiniTicker
                      description: Event type
                      x-description-cn: 事件类型
                    E:
                      type: integer
                      example: 123456789
                      format: int64
                      description: Event time
                      x-description-cn: 事件时间(毫秒)
                    s:
                      type: string
                      example: BNBUSDT
                      description: Symbol
                      x-description-cn: 交易对
                    c:
                      type: string
                      example: "0.0025"
                      description: Close price
                      x-description-cn: 最新成交价格
                    o:
                      type: string
                      example: "0.0010"
                      description: Open price
                      x-description-cn: 24小时前开始第一笔成交价格
                    h:
                      type: string
                      example: "0.0025"
                      description: High price
                      x-description-cn: 24小时内最高成交价
                    l:
                      type: string
                      example: "0.0010"
                      description: Low price
                      x-description-cn: 24小时内最低成交价
                    v:
                      type: string
                      example: "10000"
                      description: Total traded base asset volume
                      x-description-cn: 成交量
                    q:
                      type: string
                      example: "18"
                      description: Total traded quote asset volume
                      x-description-cn: 成交额
                    ps:
                      type: string
                      example: BTCUSDT
                      description: (After CM migration) Pair symbol
                      x-description-cn: (迁移后新增) 标的交易对
                    st:
                      type: integer
                      example: 1
                      description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                      x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                - e: 24hrMiniTicker
                  E: 123456789
                  s: BNBUSDT
                  c: "0.0025"
                  o: "0.0010"
                  h: "0.0025"
                  l: "0.0010"
                  v: "10000"
                  q: "18"
                  ps: BTCUSDT
                  st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: "!miniTicker@arr"
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        e:
                          type: string
                          example: 24hrMiniTicker
                          description: Event type
                          x-description-cn: 事件类型
                        E:
                          type: integer
                          example: 123456789
                          format: int64
                          description: Event time
                          x-description-cn: 事件时间(毫秒)
                        s:
                          type: string
                          example: BNBUSDT
                          description: Symbol
                          x-description-cn: 交易对
                        c:
                          type: string
                          example: "0.0025"
                          description: Close price
                          x-description-cn: 最新成交价格
                        o:
                          type: string
                          example: "0.0010"
                          description: Open price
                          x-description-cn: 24小时前开始第一笔成交价格
                        h:
                          type: string
                          example: "0.0025"
                          description: High price
                          x-description-cn: 24小时内最高成交价
                        l:
                          type: string
                          example: "0.0010"
                          description: Low price
                          x-description-cn: 24小时内最低成交价
                        v:
                          type: string
                          example: "10000"
                          description: Total traded base asset volume
                          x-description-cn: 成交量
                        q:
                          type: string
                          example: "18"
                          description: Total traded quote asset volume
                          x-description-cn: 成交额
                        ps:
                          type: string
                          example: BTCUSDT
                          description: (After CM migration) Pair symbol
                          x-description-cn: (迁移后新增) 标的交易对
                        st:
                          type: integer
                          example: 1
                          description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                          x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: "!miniTicker@arr"
                data:
                  - e: 24hrMiniTicker
                    E: 123456789
                    s: BNBUSDT
                    c: "0.0025"
                    o: "0.0010"
                    h: "0.0025"
                    l: "0.0010"
                    v: "10000"
                    q: "18"
                    ps: BTCUSDT
                    st: 1
  /!ticker@arr:
    post:
      summary: All Market Tickers Streams
      x-summary-cn: 全市场的完整Ticker
      description: >-
        24hr rolling window ticker statistics for all symbols. These are NOT the statistics of the UTC day, but a 24hr
        rolling window from requestTime to 24hrs before. Note that only tickers that have changed will be present in the
        array.


        > **After CM migration**, this stream pushes the merged UM + CM universe (subscribable on both `fstream` and
        `dstream`); each payload is appended with a new `st` field (`1` = UM, `2` = CM) and a new `ps` field (pair
        symbol).
      x-description-cn: >-
        所有交易对的24小时滚动窗口完整Ticker统计。这些不是UTC日的统计数据，而是从请求时间到24小时前的24小时滚动窗口。请注意，只有发生变化的Ticker才会出现在数组中。


        > **迁移后**,此 stream 推送合并的 UM + CM universe(`fstream` 与 `dstream` 都可订阅);payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)以及
        `ps`(pair symbol)字段。
      tags:
        - market
      operationId: allMarketTickersStreams
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#all-market-tickers-streams
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/allMarketTickersStreams.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/all_market_tickers_streams.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/all_market_tickers_streams.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/AllMarketTickersStreamsExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/AllMarketTickersStreams/AllMarketTickersStreams.go
      x-update-speed: 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - "!ticker@arr"
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - "!ticker@arr"
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: All Market Tickers Streams
          x-description-cn: 全市场行情流
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    e:
                      type: string
                      example: 24hrTicker
                      description: Event type
                      x-description-cn: 事件类型
                    E:
                      type: integer
                      example: 123456789
                      format: int64
                      description: Event time
                      x-description-cn: 事件时间
                    s:
                      type: string
                      example: BNBUSDT
                      description: Symbol
                      x-description-cn: 交易对
                    p:
                      type: string
                      example: "0.0015"
                      description: Price change
                      x-description-cn: 24小时价格变化
                    P:
                      type: string
                      example: "250.00"
                      description: Price change percent
                      x-description-cn: 24小时价格变化(百分比)
                    w:
                      type: string
                      example: "0.0018"
                      description: Weighted average price
                      x-description-cn: 平均价格
                    c:
                      type: string
                      example: "0.0025"
                      description: Last price
                      x-description-cn: 最新成交价格
                    Q:
                      type: string
                      example: "10"
                      description: Last quantity
                      x-description-cn: 最新成交价格上的成交量
                    o:
                      type: string
                      example: "0.0010"
                      description: Open price
                      x-description-cn: 24小时内第一比成交的价格
                    h:
                      type: string
                      example: "0.0025"
                      description: High price
                      x-description-cn: 24小时内最高成交价
                    l:
                      type: string
                      example: "0.0010"
                      description: Low price
                      x-description-cn: 24小时内最低成交价
                    v:
                      type: string
                      example: "10000"
                      description: Total traded base asset volume
                      x-description-cn: 24小时内成交量
                    q:
                      type: string
                      example: "18"
                      description: Total traded quote asset volume
                      x-description-cn: 24小时内成交额
                    O:
                      type: integer
                      example: 0
                      format: int64
                      description: Statistics open time
                      x-description-cn: 统计开始时间
                    C:
                      type: integer
                      example: 86400000
                      format: int64
                      description: Statistics close time
                      x-description-cn: 统计结束时间
                    F:
                      type: integer
                      example: 0
                      format: int64
                      description: First trade ID
                      x-description-cn: 24小时内第一笔成交交易ID
                    L:
                      type: integer
                      example: 18150
                      format: int64
                      description: Last trade Id
                      x-description-cn: 24小时内最后一笔成交交易ID
                    "n":
                      type: integer
                      example: 18151
                      format: int64
                      description: Total number of trades
                      x-description-cn: 24小时内成交数
                    ps:
                      type: string
                      example: BTCUSDT
                      description: (After CM migration) Pair symbol
                      x-description-cn: (迁移后新增) 标的交易对
                    st:
                      type: integer
                      example: 1
                      description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                      x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                - e: 24hrTicker
                  E: 123456789
                  s: BNBUSDT
                  p: "0.0015"
                  P: "250.00"
                  w: "0.0018"
                  c: "0.0025"
                  Q: "10"
                  o: "0.0010"
                  h: "0.0025"
                  l: "0.0010"
                  v: "10000"
                  q: "18"
                  O: 0
                  C: 86400000
                  F: 0
                  L: 18150
                  "n": 18151
                  ps: BTCUSDT
                  st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: "!ticker@arr"
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        e:
                          type: string
                          example: 24hrTicker
                          description: Event type
                          x-description-cn: 事件类型
                        E:
                          type: integer
                          example: 123456789
                          format: int64
                          description: Event time
                          x-description-cn: 事件时间
                        s:
                          type: string
                          example: BNBUSDT
                          description: Symbol
                          x-description-cn: 交易对
                        p:
                          type: string
                          example: "0.0015"
                          description: Price change
                          x-description-cn: 24小时价格变化
                        P:
                          type: string
                          example: "250.00"
                          description: Price change percent
                          x-description-cn: 24小时价格变化(百分比)
                        w:
                          type: string
                          example: "0.0018"
                          description: Weighted average price
                          x-description-cn: 平均价格
                        c:
                          type: string
                          example: "0.0025"
                          description: Last price
                          x-description-cn: 最新成交价格
                        Q:
                          type: string
                          example: "10"
                          description: Last quantity
                          x-description-cn: 最新成交价格上的成交量
                        o:
                          type: string
                          example: "0.0010"
                          description: Open price
                          x-description-cn: 24小时内第一比成交的价格
                        h:
                          type: string
                          example: "0.0025"
                          description: High price
                          x-description-cn: 24小时内最高成交价
                        l:
                          type: string
                          example: "0.0010"
                          description: Low price
                          x-description-cn: 24小时内最低成交价
                        v:
                          type: string
                          example: "10000"
                          description: Total traded base asset volume
                          x-description-cn: 24小时内成交量
                        q:
                          type: string
                          example: "18"
                          description: Total traded quote asset volume
                          x-description-cn: 24小时内成交额
                        O:
                          type: integer
                          example: 0
                          format: int64
                          description: Statistics open time
                          x-description-cn: 统计开始时间
                        C:
                          type: integer
                          example: 86400000
                          format: int64
                          description: Statistics close time
                          x-description-cn: 统计结束时间
                        F:
                          type: integer
                          example: 0
                          format: int64
                          description: First trade ID
                          x-description-cn: 24小时内第一笔成交交易ID
                        L:
                          type: integer
                          example: 18150
                          format: int64
                          description: Last trade Id
                          x-description-cn: 24小时内最后一笔成交交易ID
                        "n":
                          type: integer
                          example: 18151
                          format: int64
                          description: Total number of trades
                          x-description-cn: 24小时内成交数
                        ps:
                          type: string
                          example: BTCUSDT
                          description: (After CM migration) Pair symbol
                          x-description-cn: (迁移后新增) 标的交易对
                        st:
                          type: integer
                          example: 1
                          description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                          x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: "!ticker@arr"
                data:
                  - e: 24hrTicker
                    E: 123456789
                    s: BNBUSDT
                    p: "0.0015"
                    P: "250.00"
                    w: "0.0018"
                    c: "0.0025"
                    Q: "10"
                    o: "0.0010"
                    h: "0.0025"
                    l: "0.0010"
                    v: "10000"
                    q: "18"
                    O: 0
                    C: 86400000
                    F: 0
                    L: 18150
                    "n": 18151
                    ps: BTCUSDT
                    st: 1
  /{symbol}@compositeIndex:
    post:
      summary: Composite Index Symbol Information Streams
      x-summary-cn: 综合指数交易对信息流
      description: Composite index information for index symbols pushed every second.
      x-description-cn: 综合指数交易对的指数信息，每秒推送一次。
      tags:
        - market
      operationId: compositeIndexSymbolInformationStreams
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#composite-index-symbol-information-streams
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/compositeIndexSymbolInformationStreams.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/composite_index_symbol_information_streams.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/composite_index_symbol_information_streams.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/CompositeIndexSymbolInformationStreamsExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/CompositeIndexSymbolInformationStreams/CompositeIndexSymbolInformationStreams.go
      x-update-speed: 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: The symbol parameter
          x-description-cn: 交易对参数。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - btcusdt@compositeIndex
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@compositeIndex
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: Composite Index Symbol Information Streams
          x-description-cn: 复合指数交易对信息流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: compositeIndex
                    description: Event type
                    x-description-cn: 事件类型
                  E:
                    type: integer
                    example: 1602310596000
                    format: int64
                    description: Event time
                    x-description-cn: 事件事件
                  s:
                    type: string
                    example: DEFIUSDT
                    description: Symbol
                    x-description-cn: 交易对
                  p:
                    type: string
                    example: "554.41604065"
                    description: Price
                    x-description-cn: 价格
                  C:
                    type: string
                    example: baseAsset
                    description: Base asset category.
                    x-description-cn: 基础资产类别。
                  c:
                    type: array
                    items:
                      type: object
                      properties:
                        b:
                          type: string
                          example: BAL
                          description: Base asset
                          x-description-cn: 基础资产
                        q:
                          type: string
                          example: USDT
                          description: Quote asset
                          x-description-cn: 报价资产
                        w:
                          type: string
                          example: "1.04884844"
                          description: Weight in quantity
                          x-description-cn: 权重(数量)
                        W:
                          type: string
                          example: "0.01457800"
                          description: Weight in percentage
                          x-description-cn: 权重(比例)
                        i:
                          type: string
                          example: "24.33521021"
                          description: Index price
                          x-description-cn: 指数价格
                    description: Composition
                    x-description-cn: 成分信息
              example:
                e: compositeIndex
                E: 1602310596000
                s: DEFIUSDT
                p: "554.41604065"
                C: baseAsset
                c:
                  - b: BAL
                    q: USDT
                    w: "1.04884844"
                    W: "0.01457800"
                    i: "24.33521021"
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@compositeIndex
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: compositeIndex
                        description: Event type
                        x-description-cn: 事件类型
                      E:
                        type: integer
                        example: 1602310596000
                        format: int64
                        description: Event time
                        x-description-cn: 事件事件
                      s:
                        type: string
                        example: DEFIUSDT
                        description: Symbol
                        x-description-cn: 交易对
                      p:
                        type: string
                        example: "554.41604065"
                        description: Price
                        x-description-cn: 价格
                      C:
                        type: string
                        example: baseAsset
                        description: Base asset category.
                        x-description-cn: 基础资产类别。
                      c:
                        type: array
                        items:
                          type: object
                          properties:
                            b:
                              type: string
                              example: BAL
                              description: Base asset
                              x-description-cn: 基础资产
                            q:
                              type: string
                              example: USDT
                              description: Quote asset
                              x-description-cn: 报价资产
                            w:
                              type: string
                              example: "1.04884844"
                              description: Weight in quantity
                              x-description-cn: 权重(数量)
                            W:
                              type: string
                              example: "0.01457800"
                              description: Weight in percentage
                              x-description-cn: 权重(比例)
                            i:
                              type: string
                              example: "24.33521021"
                              description: Index price
                              x-description-cn: 指数价格
                        description: Composition
                        x-description-cn: 成分信息
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@compositeIndex
                data:
                  e: compositeIndex
                  E: 1602310596000
                  s: DEFIUSDT
                  p: "554.41604065"
                  C: baseAsset
                  c:
                    - b: BAL
                      q: USDT
                      w: "1.04884844"
                      W: "0.01457800"
                      i: "24.33521021"
  /{pair}_{contractType}@continuousKline_{interval}:
    post:
      summary: Continuous Contract Kline/Candlestick Streams
      x-summary-cn: 连续合约K线
      description: |-
        Continuous Contract Kline/Candlestick Streams

        > **After CM migration**, both `fstream` and `dstream` may subscribe to either UM or CM symbols on this stream.
      x-description-cn: |-
        连续合约K线

        > **迁移后**,`fstream` 与 `dstream` 都可订阅 UM 或 CM 的 symbol。
      tags:
        - market
      operationId: continuousContractKlineCandlestickStreams
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#continuous-contract-kline-candlestick-streams
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/continuousContractKlineCandlestickStreams.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/continuous_contract_kline_candlestick_streams.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/continuous_contract_kline_candlestick_streams.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/ContinuousContractKlineCandlestickStreamsExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/ContinuousContractKlineCandlestickStreams/ContinuousContractKlineCandlestickStreams.go
      x-update-speed: 250ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: pair
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
        - name: contractType
          in: path
          required: true
          schema:
            type: string
            example: next_quarter
            enum:
              - perpetual
              - current_quarter
              - next_quarter
              - tradifi_perpetual
        - name: interval
          in: path
          required: true
          schema:
            type: string
            example: 1m
            enum:
              - 1s
              - 1m
              - 3m
              - 5m
              - 15m
              - 30m
              - 1h
              - 2h
              - 4h
              - 6h
              - 8h
              - 12h
              - 1d
              - 3d
              - 1w
              - 1M
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - btcusdt_next_quarter@continuousKline_1m
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt_next_quarter@continuousKline_1m
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: Continuous Contract Kline/Candlestick Streams
          x-description-cn: 连续合约 K 线流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: continuous_kline
                    description: Event type
                    x-description-cn: 事件类型
                  E:
                    type: integer
                    example: 1607443058651
                    format: int64
                    description: Event time
                    x-description-cn: 事件时间
                  ps:
                    type: string
                    example: BTCUSDT
                    description: Pair
                    x-description-cn: 标的交易对
                  ct:
                    type: string
                    example: PERPETUAL
                    description: Contract type
                    x-description-cn: 合约类型
                  k:
                    type: object
                    description: Kline payload.
                    x-description-cn: K 线数据。
                    properties:
                      t:
                        type: integer
                        example: 1607443020000
                        format: int64
                        description: Kline start time
                        x-description-cn: 这根K线的起始时间
                      T:
                        type: integer
                        example: 1607443079999
                        format: int64
                        description: Kline close time
                        x-description-cn: 这根K线的结束时间
                      i:
                        type: string
                        example: 1m
                        description: Interval
                        x-description-cn: K线间隔
                      f:
                        type: integer
                        example: 116467658886
                        format: int64
                        description: First updateId
                        x-description-cn: 这根K线期间第一笔更新ID
                      L:
                        type: integer
                        example: 116468012423
                        format: int64
                        description: Last updateId
                        x-description-cn: 这根K线期间末一笔更新ID
                      o:
                        type: string
                        example: "18787.00"
                        description: Open price
                        x-description-cn: 这根K线期间第一笔成交价
                      c:
                        type: string
                        example: "18804.04"
                        description: Close price
                        x-description-cn: 这根K线期间末一笔成交价
                      h:
                        type: string
                        example: "18804.04"
                        description: High price
                        x-description-cn: 这根K线期间最高成交价
                      l:
                        type: string
                        example: "18786.54"
                        description: Low price
                        x-description-cn: 这根K线期间最低成交价
                      v:
                        type: string
                        example: "197.664"
                        description: volume
                        x-description-cn: 这根K线期间成交量
                      "n":
                        type: integer
                        example: 543
                        format: int64
                        description: Number of trades
                        x-description-cn: 这根K线期间成交笔数
                      x:
                        type: boolean
                        example: false
                        description: Is this kline closed?
                        x-description-cn: 这根K线是否完结(是否已经开始下一根K线)
                      q:
                        type: string
                        example: "3715253.19494"
                        description: Quote asset volume
                        x-description-cn: 这根K线期间成交额
                      V:
                        type: string
                        example: "184.769"
                        description: Taker buy volume
                        x-description-cn: 主动买入的成交量
                      Q:
                        type: string
                        example: "3472925.84746"
                        description: Taker buy quote asset volume
                        x-description-cn: 主动买入的成交额
                      B:
                        type: string
                        example: "0"
                        description: Ignore
                        x-description-cn: 忽略此参数
              example:
                e: continuous_kline
                E: 1607443058651
                ps: BTCUSDT
                ct: PERPETUAL
                k:
                  t: 1607443020000
                  T: 1607443079999
                  i: 1m
                  f: 116467658886
                  L: 116468012423
                  o: "18787.00"
                  c: "18804.04"
                  h: "18804.04"
                  l: "18786.54"
                  v: "197.664"
                  "n": 543
                  x: false
                  q: "3715253.19494"
                  V: "184.769"
                  Q: "3472925.84746"
                  B: "0"
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt_next_quarter@continuousKline_1m
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: continuous_kline
                        description: Event type
                        x-description-cn: 事件类型
                      E:
                        type: integer
                        example: 1607443058651
                        format: int64
                        description: Event time
                        x-description-cn: 事件时间
                      ps:
                        type: string
                        example: BTCUSDT
                        description: Pair
                        x-description-cn: 标的交易对
                      ct:
                        type: string
                        example: PERPETUAL
                        description: Contract type
                        x-description-cn: 合约类型
                      k:
                        type: object
                        description: Kline payload.
                        x-description-cn: K 线数据。
                        properties:
                          t:
                            type: integer
                            example: 1607443020000
                            format: int64
                            description: Kline start time
                            x-description-cn: 这根K线的起始时间
                          T:
                            type: integer
                            example: 1607443079999
                            format: int64
                            description: Kline close time
                            x-description-cn: 这根K线的结束时间
                          i:
                            type: string
                            example: 1m
                            description: Interval
                            x-description-cn: K线间隔
                          f:
                            type: integer
                            example: 116467658886
                            format: int64
                            description: First updateId
                            x-description-cn: 这根K线期间第一笔更新ID
                          L:
                            type: integer
                            example: 116468012423
                            format: int64
                            description: Last updateId
                            x-description-cn: 这根K线期间末一笔更新ID
                          o:
                            type: string
                            example: "18787.00"
                            description: Open price
                            x-description-cn: 这根K线期间第一笔成交价
                          c:
                            type: string
                            example: "18804.04"
                            description: Close price
                            x-description-cn: 这根K线期间末一笔成交价
                          h:
                            type: string
                            example: "18804.04"
                            description: High price
                            x-description-cn: 这根K线期间最高成交价
                          l:
                            type: string
                            example: "18786.54"
                            description: Low price
                            x-description-cn: 这根K线期间最低成交价
                          v:
                            type: string
                            example: "197.664"
                            description: volume
                            x-description-cn: 这根K线期间成交量
                          "n":
                            type: integer
                            example: 543
                            format: int64
                            description: Number of trades
                            x-description-cn: 这根K线期间成交笔数
                          x:
                            type: boolean
                            example: false
                            description: Is this kline closed?
                            x-description-cn: 这根K线是否完结(是否已经开始下一根K线)
                          q:
                            type: string
                            example: "3715253.19494"
                            description: Quote asset volume
                            x-description-cn: 这根K线期间成交额
                          V:
                            type: string
                            example: "184.769"
                            description: Taker buy volume
                            x-description-cn: 主动买入的成交量
                          Q:
                            type: string
                            example: "3472925.84746"
                            description: Taker buy quote asset volume
                            x-description-cn: 主动买入的成交额
                          B:
                            type: string
                            example: "0"
                            description: Ignore
                            x-description-cn: 忽略此参数
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt_next_quarter@continuousKline_1m
                data:
                  e: continuous_kline
                  E: 1607443058651
                  ps: BTCUSDT
                  ct: PERPETUAL
                  k:
                    t: 1607443020000
                    T: 1607443079999
                    i: 1m
                    f: 116467658886
                    L: 116468012423
                    o: "18787.00"
                    c: "18804.04"
                    h: "18804.04"
                    l: "18786.54"
                    v: "197.664"
                    "n": 543
                    x: false
                    q: "3715253.19494"
                    V: "184.769"
                    Q: "3472925.84746"
                    B: "0"
  /!contractInfo:
    post:
      summary: Contract Info Stream
      x-summary-cn: 合约信息流
      description: >-
        ContractInfo stream pushes when contract info updates(listing/settlement/contract bracket update). bks field
        only shows up when bracket gets updated.


        > **After CM migration**, this stream pushes the merged UM + CM universe (subscribable on both `fstream` and
        `dstream`); each payload is appended with a new `st` field (`1` = UM, `2` = CM).
      x-description-cn: |-
        当合约信息更新（上新/结算/档位更新）时推送；`bks` 字段仅在档位更新时出现。

        > **迁移后**,此 stream 推送合并的 UM + CM universe(`fstream` 与 `dstream` 都可订阅);payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      tags:
        - market
      operationId: contractInfoStream
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#contract-info-stream
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/contractInfoStream.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/contract_info_stream.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/contract_info_stream.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/ContractInfoStreamExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/ContractInfoStream/ContractInfoStream.go
      x-update-speed: Real-time
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - "!contractInfo"
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - "!contractInfo"
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: Contract Info Stream
          x-description-cn: 合约信息流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: contractInfo
                    description: Event type.
                    x-description-cn: 事件类型。
                  E:
                    type: integer
                    example: 1669356423908
                    format: int64
                    description: Event time.
                    x-description-cn: 事件时间。
                  s:
                    type: string
                    example: IOTAUSDT
                    description: Symbol.
                    x-description-cn: 交易对。
                  ct:
                    type: string
                    example: PERPETUAL
                    description: Contract type.
                    x-description-cn: 合约类型。
                  dt:
                    type: integer
                    example: 4133404800000
                    format: int64
                    description: Delivery date time.
                    x-description-cn: 交割时间。
                  ot:
                    type: integer
                    example: 1569398400000
                    format: int64
                    description: Onboard date time.
                    x-description-cn: 上线时间。
                  cs:
                    type: string
                    example: TRADING
                    description: Contract status.
                    x-description-cn: 合约状态。
                  bks:
                    type: array
                    description: Notional bracket updates.
                    x-description-cn: 名义价值档位更新。
                    items:
                      type: object
                      properties:
                        bs:
                          type: integer
                          example: 1
                          format: int64
                          description: Notional bracket
                          x-description-cn: 层级
                        bnf:
                          type: integer
                          example: 0
                          format: int64
                          description: Floor notional of this bracket
                          x-description-cn: 该层对应的名义价值下限
                        bnc:
                          type: integer
                          example: 5000
                          format: int64
                          description: Cap notional of this bracket
                          x-description-cn: 该层对应的名义价值上限
                        mmr:
                          type: number
                          example: 0.01
                          format: float
                          description: Maintenance ratio for this bracket
                          x-description-cn: 该层对应的维持保证金率
                        cf:
                          type: integer
                          example: 0
                          format: int64
                          description: Auxiliary number for quick calculation
                          x-description-cn: 速算数
                        mi:
                          type: integer
                          example: 21
                          format: int64
                          description: Min leverage for this bracket
                          x-description-cn: 该层杠杆下界
                        ma:
                          type: integer
                          example: 50
                          format: int64
                          description: Max leverage for this bracket
                          x-description-cn: 该层杠杆上界
                  st:
                    type: integer
                    example: 1
                    description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                    x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: contractInfo
                E: 1669356423908
                s: IOTAUSDT
                ct: PERPETUAL
                dt: 4133404800000
                ot: 1569398400000
                cs: TRADING
                bks:
                  - bs: 1
                    bnf: 0
                    bnc: 5000
                    mmr: 0.01
                    cf: 0
                    mi: 21
                    ma: 50
                st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: "!contractInfo"
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: contractInfo
                        description: Event type.
                        x-description-cn: 事件类型。
                      E:
                        type: integer
                        example: 1669356423908
                        format: int64
                        description: Event time.
                        x-description-cn: 事件时间。
                      s:
                        type: string
                        example: IOTAUSDT
                        description: Symbol.
                        x-description-cn: 交易对。
                      ct:
                        type: string
                        example: PERPETUAL
                        description: Contract type.
                        x-description-cn: 合约类型。
                      dt:
                        type: integer
                        example: 4133404800000
                        format: int64
                        description: Delivery date time.
                        x-description-cn: 交割时间。
                      ot:
                        type: integer
                        example: 1569398400000
                        format: int64
                        description: Onboard date time.
                        x-description-cn: 上线时间。
                      cs:
                        type: string
                        example: TRADING
                        description: Contract status.
                        x-description-cn: 合约状态。
                      bks:
                        type: array
                        description: Notional bracket updates.
                        x-description-cn: 名义价值档位更新。
                        items:
                          type: object
                          properties:
                            bs:
                              type: integer
                              example: 1
                              format: int64
                              description: Notional bracket
                              x-description-cn: 层级
                            bnf:
                              type: integer
                              example: 0
                              format: int64
                              description: Floor notional of this bracket
                              x-description-cn: 该层对应的名义价值下限
                            bnc:
                              type: integer
                              example: 5000
                              format: int64
                              description: Cap notional of this bracket
                              x-description-cn: 该层对应的名义价值上限
                            mmr:
                              type: number
                              example: 0.01
                              format: float
                              description: Maintenance ratio for this bracket
                              x-description-cn: 该层对应的维持保证金率
                            cf:
                              type: integer
                              example: 0
                              format: int64
                              description: Auxiliary number for quick calculation
                              x-description-cn: 速算数
                            mi:
                              type: integer
                              example: 21
                              format: int64
                              description: Min leverage for this bracket
                              x-description-cn: 该层杠杆下界
                            ma:
                              type: integer
                              example: 50
                              format: int64
                              description: Max leverage for this bracket
                              x-description-cn: 该层杠杆上界
                      st:
                        type: integer
                        example: 1
                        description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                        x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: "!contractInfo"
                data:
                  e: contractInfo
                  E: 1669356423908
                  s: IOTAUSDT
                  ct: PERPETUAL
                  dt: 4133404800000
                  ot: 1569398400000
                  cs: TRADING
                  bks:
                    - bs: 1
                      bnf: 0
                      bnc: 5000
                      mmr: 0.01
                      cf: 0
                      mi: 21
                      ma: 50
                  st: 1
  /{symbol}@miniTicker:
    post:
      summary: Individual Symbol Mini Ticker Stream
      x-summary-cn: 按交易对的精简Ticker
      description: >-
        24hr rolling window mini-ticker statistics for a single symbol. These are NOT the statistics of the UTC day, but
        a 24hr rolling window from requestTime to 24hrs before.


        > **After CM migration**, the payload is appended with a new `st` field (`1` = UM, `2` = CM) and a new `ps`
        field (pair symbol).
      x-description-cn: |-
        单交易对的24小时滚动窗口精简Ticker统计。这些不是UTC日的统计数据，而是从请求时间到24小时前的24小时滚动窗口。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)以及 `ps`(pair symbol)字段。
      tags:
        - market
      operationId: individualSymbolMiniTickerStream
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#individual-symbol-mini-ticker-stream
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/individualSymbolMiniTickerStream.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/individual_symbol_mini_ticker_stream.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/individual_symbol_mini_ticker_stream.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/IndividualSymbolMiniTickerStreamExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/IndividualSymbolMiniTickerStream/IndividualSymbolMiniTickerStream.go
      x-update-speed: 2s
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: The symbol parameter
          x-description-cn: 交易对参数。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - btcusdt@miniTicker
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@miniTicker
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: Individual Symbol Mini Ticker Stream
          x-description-cn: 单交易对精简行情流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: 24hrMiniTicker
                    description: Event type
                    x-description-cn: 事件类型
                  E:
                    type: integer
                    example: 123456789
                    format: int64
                    description: Event time
                    x-description-cn: 事件时间(毫秒)
                  s:
                    type: string
                    example: BNBUSDT
                    description: Symbol
                    x-description-cn: 交易对
                  c:
                    type: string
                    example: "0.0025"
                    description: Close price
                    x-description-cn: 最新成交价格
                  o:
                    type: string
                    example: "0.0010"
                    description: Open price
                    x-description-cn: 24小时前开始第一笔成交价格
                  h:
                    type: string
                    example: "0.0025"
                    description: High price
                    x-description-cn: 24小时内最高成交价
                  l:
                    type: string
                    example: "0.0010"
                    description: Low price
                    x-description-cn: 24小时内最低成交价
                  v:
                    type: string
                    example: "10000"
                    description: Total traded base asset volume
                    x-description-cn: 成交量
                  q:
                    type: string
                    example: "18"
                    description: Total traded quote asset volume
                    x-description-cn: 成交额
                  ps:
                    type: string
                    example: BTCUSDT
                    description: (After CM migration) Pair symbol
                    x-description-cn: (迁移后新增) 标的交易对
                  st:
                    type: integer
                    example: 1
                    description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                    x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: 24hrMiniTicker
                E: 123456789
                s: BNBUSDT
                c: "0.0025"
                o: "0.0010"
                h: "0.0025"
                l: "0.0010"
                v: "10000"
                q: "18"
                ps: BTCUSDT
                st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@miniTicker
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: 24hrMiniTicker
                        description: Event type
                        x-description-cn: 事件类型
                      E:
                        type: integer
                        example: 123456789
                        format: int64
                        description: Event time
                        x-description-cn: 事件时间(毫秒)
                      s:
                        type: string
                        example: BNBUSDT
                        description: Symbol
                        x-description-cn: 交易对
                      c:
                        type: string
                        example: "0.0025"
                        description: Close price
                        x-description-cn: 最新成交价格
                      o:
                        type: string
                        example: "0.0010"
                        description: Open price
                        x-description-cn: 24小时前开始第一笔成交价格
                      h:
                        type: string
                        example: "0.0025"
                        description: High price
                        x-description-cn: 24小时内最高成交价
                      l:
                        type: string
                        example: "0.0010"
                        description: Low price
                        x-description-cn: 24小时内最低成交价
                      v:
                        type: string
                        example: "10000"
                        description: Total traded base asset volume
                        x-description-cn: 成交量
                      q:
                        type: string
                        example: "18"
                        description: Total traded quote asset volume
                        x-description-cn: 成交额
                      ps:
                        type: string
                        example: BTCUSDT
                        description: (After CM migration) Pair symbol
                        x-description-cn: (迁移后新增) 标的交易对
                      st:
                        type: integer
                        example: 1
                        description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                        x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@miniTicker
                data:
                  e: 24hrMiniTicker
                  E: 123456789
                  s: BNBUSDT
                  c: "0.0025"
                  o: "0.0010"
                  h: "0.0025"
                  l: "0.0010"
                  v: "10000"
                  q: "18"
                  ps: BTCUSDT
                  st: 1
  /{symbol}@ticker:
    post:
      summary: Individual Symbol Ticker Streams
      x-summary-cn: 按Symbol的完整Ticker
      description: >-
        24hr rolling window ticker statistics for a single symbol. These are NOT the statistics of the UTC day, but a
        24hr rolling window from requestTime to 24hrs before.


        > **After CM migration**, the payload is appended with a new `st` field (`1` = UM, `2` = CM) and a new `ps`
        field (pair symbol).
      x-description-cn: |-
        单交易对的24小时滚动窗口完整Ticker统计。这些不是UTC日的统计数据，而是从请求时间到24小时前的24小时滚动窗口。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)以及 `ps`(pair symbol)字段。
      tags:
        - market
      operationId: individualSymbolTickerStreams
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#individual-symbol-ticker-streams
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/individualSymbolTickerStreams.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/individual_symbol_ticker_streams.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/individual_symbol_ticker_streams.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/IndividualSymbolTickerStreamsExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/IndividualSymbolTickerStreams/IndividualSymbolTickerStreams.go
      x-update-speed: 2000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: The symbol parameter
          x-description-cn: 交易对参数。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - btcusdt@ticker
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@ticker
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: Individual Symbol Ticker Streams
          x-description-cn: 单交易对行情流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: 24hrTicker
                    description: Event type
                    x-description-cn: 事件类型
                  E:
                    type: integer
                    example: 123456789
                    format: int64
                    description: Event time
                    x-description-cn: 事件时间
                  s:
                    type: string
                    example: BNBUSDT
                    description: Symbol
                    x-description-cn: 交易对
                  p:
                    type: string
                    example: "0.0015"
                    description: Price change
                    x-description-cn: 24小时价格变化
                  P:
                    type: string
                    example: "250.00"
                    description: Price change percent
                    x-description-cn: 24小时价格变化(百分比)
                  w:
                    type: string
                    example: "0.0018"
                    description: Weighted average price
                    x-description-cn: 平均价格
                  c:
                    type: string
                    example: "0.0025"
                    description: Last price
                    x-description-cn: 最新成交价格
                  Q:
                    type: string
                    example: "10"
                    description: Last quantity
                    x-description-cn: 最新成交价格上的成交量
                  o:
                    type: string
                    example: "0.0010"
                    description: Open price
                    x-description-cn: 24小时内第一比成交的价格
                  h:
                    type: string
                    example: "0.0025"
                    description: High price
                    x-description-cn: 24小时内最高成交价
                  l:
                    type: string
                    example: "0.0010"
                    description: Low price
                    x-description-cn: 24小时内最低成交价
                  v:
                    type: string
                    example: "10000"
                    description: Total traded base asset volume
                    x-description-cn: 24小时内成交量
                  q:
                    type: string
                    example: "18"
                    description: Total traded quote asset volume
                    x-description-cn: 24小时内成交额
                  O:
                    type: integer
                    example: 0
                    format: int64
                    description: Statistics open time
                    x-description-cn: 统计开始时间
                  C:
                    type: integer
                    example: 86400000
                    format: int64
                    description: Statistics close time
                    x-description-cn: 统计关闭时间
                  F:
                    type: integer
                    example: 0
                    format: int64
                    description: First trade ID
                    x-description-cn: 24小时内第一笔成交交易ID
                  L:
                    type: integer
                    example: 18150
                    format: int64
                    description: Last trade Id
                    x-description-cn: 24小时内最后一笔成交交易ID
                  "n":
                    type: integer
                    example: 18151
                    format: int64
                    description: Total number of trades
                    x-description-cn: 24小时内成交数
                  ps:
                    type: string
                    example: BTCUSDT
                    description: (After CM migration) Pair symbol
                    x-description-cn: (迁移后新增) 标的交易对
                  st:
                    type: integer
                    example: 1
                    description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                    x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: 24hrTicker
                E: 123456789
                s: BNBUSDT
                p: "0.0015"
                P: "250.00"
                w: "0.0018"
                c: "0.0025"
                Q: "10"
                o: "0.0010"
                h: "0.0025"
                l: "0.0010"
                v: "10000"
                q: "18"
                O: 0
                C: 86400000
                F: 0
                L: 18150
                "n": 18151
                ps: BTCUSDT
                st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@ticker
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: 24hrTicker
                        description: Event type
                        x-description-cn: 事件类型
                      E:
                        type: integer
                        example: 123456789
                        format: int64
                        description: Event time
                        x-description-cn: 事件时间
                      s:
                        type: string
                        example: BNBUSDT
                        description: Symbol
                        x-description-cn: 交易对
                      p:
                        type: string
                        example: "0.0015"
                        description: Price change
                        x-description-cn: 24小时价格变化
                      P:
                        type: string
                        example: "250.00"
                        description: Price change percent
                        x-description-cn: 24小时价格变化(百分比)
                      w:
                        type: string
                        example: "0.0018"
                        description: Weighted average price
                        x-description-cn: 平均价格
                      c:
                        type: string
                        example: "0.0025"
                        description: Last price
                        x-description-cn: 最新成交价格
                      Q:
                        type: string
                        example: "10"
                        description: Last quantity
                        x-description-cn: 最新成交价格上的成交量
                      o:
                        type: string
                        example: "0.0010"
                        description: Open price
                        x-description-cn: 24小时内第一比成交的价格
                      h:
                        type: string
                        example: "0.0025"
                        description: High price
                        x-description-cn: 24小时内最高成交价
                      l:
                        type: string
                        example: "0.0010"
                        description: Low price
                        x-description-cn: 24小时内最低成交价
                      v:
                        type: string
                        example: "10000"
                        description: Total traded base asset volume
                        x-description-cn: 24小时内成交量
                      q:
                        type: string
                        example: "18"
                        description: Total traded quote asset volume
                        x-description-cn: 24小时内成交额
                      O:
                        type: integer
                        example: 0
                        format: int64
                        description: Statistics open time
                        x-description-cn: 统计开始时间
                      C:
                        type: integer
                        example: 86400000
                        format: int64
                        description: Statistics close time
                        x-description-cn: 统计关闭时间
                      F:
                        type: integer
                        example: 0
                        format: int64
                        description: First trade ID
                        x-description-cn: 24小时内第一笔成交交易ID
                      L:
                        type: integer
                        example: 18150
                        format: int64
                        description: Last trade Id
                        x-description-cn: 24小时内最后一笔成交交易ID
                      "n":
                        type: integer
                        example: 18151
                        format: int64
                        description: Total number of trades
                        x-description-cn: 24小时内成交数
                      ps:
                        type: string
                        example: BTCUSDT
                        description: (After CM migration) Pair symbol
                        x-description-cn: (迁移后新增) 标的交易对
                      st:
                        type: integer
                        example: 1
                        description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                        x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@ticker
                data:
                  e: 24hrTicker
                  E: 123456789
                  s: BNBUSDT
                  p: "0.0015"
                  P: "250.00"
                  w: "0.0018"
                  c: "0.0025"
                  Q: "10"
                  o: "0.0010"
                  h: "0.0025"
                  l: "0.0010"
                  v: "10000"
                  q: "18"
                  O: 0
                  C: 86400000
                  F: 0
                  L: 18150
                  "n": 18151
                  ps: BTCUSDT
                  st: 1
  /{symbol}@kline_{interval}:
    post:
      summary: Kline/Candlestick Streams
      x-summary-cn: K线
      description: >-
        The Kline/Candlestick Stream push updates to the current klines/candlestick every 250 milliseconds (if
        existing).


        > **After CM migration**, both `fstream` and `dstream` may subscribe to either UM or CM symbols on this stream.
      x-description-cn: |-
        K线stream逐秒推送所请求的K线种类(最新一根K线)的更新。推送间隔250毫秒(如有刷新)

        > **迁移后**,`fstream` 与 `dstream` 都可订阅 UM 或 CM 的 symbol。
      tags:
        - market
      operationId: klineCandlestickStreams
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#kline-candlestick-streams
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/klineCandlestickStreams.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/kline_candlestick_streams.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/kline_candlestick_streams.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/KlineCandlestickStreamsExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/KlineCandlestickStreams/KlineCandlestickStreams.go
      x-update-speed: 250ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: The symbol parameter
          x-description-cn: 交易对参数。
        - name: interval
          in: path
          required: true
          schema:
            type: string
            example: 1m
            enum:
              - 1m
              - 3m
              - 5m
              - 15m
              - 30m
              - 1h
              - 2h
              - 4h
              - 6h
              - 8h
              - 12h
              - 1d
              - 3d
              - 1w
              - 1M
          description: The interval parameter
          x-description-cn: 时间间隔参数。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - btcusdt@kline_1m
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@kline_1m
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: Kline/Candlestick Streams
          x-description-cn: K 线流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: kline
                    description: Event type
                    x-description-cn: 事件类型
                  E:
                    type: integer
                    example: 1638747660000
                    format: int64
                    description: Event time
                    x-description-cn: 事件时间
                  s:
                    type: string
                    example: BTCUSDT
                    description: Symbol
                    x-description-cn: 交易对
                  k:
                    type: object
                    description: Kline payload.
                    x-description-cn: K 线数据。
                    properties:
                      t:
                        type: integer
                        example: 1638747660000
                        format: int64
                        description: Kline start time
                        x-description-cn: 这根K线的起始时间
                      T:
                        type: integer
                        example: 1638747719999
                        format: int64
                        description: Kline close time
                        x-description-cn: 这根K线的结束时间
                      s:
                        type: string
                        example: BTCUSDT
                        description: Symbol
                        x-description-cn: 交易对
                      i:
                        type: string
                        example: 1m
                        description: Interval
                        x-description-cn: K线间隔
                      f:
                        type: integer
                        example: 100
                        format: int64
                        description: First trade ID
                        x-description-cn: 这根K线期间第一笔成交ID
                      L:
                        type: integer
                        example: 200
                        format: int64
                        description: Last trade ID
                        x-description-cn: 这根K线期间末一笔成交ID
                      o:
                        type: string
                        example: "0.0010"
                        description: Open price
                        x-description-cn: 这根K线期间第一笔成交价
                      c:
                        type: string
                        example: "0.0020"
                        description: Close price
                        x-description-cn: 这根K线期间末一笔成交价
                      h:
                        type: string
                        example: "0.0025"
                        description: High price
                        x-description-cn: 这根K线期间最高成交价
                      l:
                        type: string
                        example: "0.0015"
                        description: Low price
                        x-description-cn: 这根K线期间最低成交价
                      v:
                        type: string
                        example: "1000"
                        description: Base asset volume
                        x-description-cn: 这根K线期间成交量
                      "n":
                        type: integer
                        example: 100
                        format: int64
                        description: Number of trades
                        x-description-cn: 这根K线期间成交笔数
                      x:
                        type: boolean
                        example: false
                        description: Is this kline closed?
                        x-description-cn: 这根K线是否完结(是否已经开始下一根K线)
                      q:
                        type: string
                        example: "1.0000"
                        description: Quote asset volume
                        x-description-cn: 这根K线期间成交额
                      V:
                        type: string
                        example: "500"
                        description: Taker buy base asset volume
                        x-description-cn: 主动买入的成交量
                      Q:
                        type: string
                        example: "0.500"
                        description: Taker buy quote asset volume
                        x-description-cn: 主动买入的成交额
                      B:
                        type: string
                        example: "123456"
                        description: Ignore
                        x-description-cn: 忽略此参数
              example:
                e: kline
                E: 1638747660000
                s: BTCUSDT
                k:
                  t: 1638747660000
                  T: 1638747719999
                  s: BTCUSDT
                  i: 1m
                  f: 100
                  L: 200
                  o: "0.0010"
                  c: "0.0020"
                  h: "0.0025"
                  l: "0.0015"
                  v: "1000"
                  "n": 100
                  x: false
                  q: "1.0000"
                  V: "500"
                  Q: "0.500"
                  B: "123456"
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@kline_1m
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: kline
                        description: Event type
                        x-description-cn: 事件类型
                      E:
                        type: integer
                        example: 1638747660000
                        format: int64
                        description: Event time
                        x-description-cn: 事件时间
                      s:
                        type: string
                        example: BTCUSDT
                        description: Symbol
                        x-description-cn: 交易对
                      k:
                        type: object
                        description: Kline payload.
                        x-description-cn: K 线数据。
                        properties:
                          t:
                            type: integer
                            example: 1638747660000
                            format: int64
                            description: Kline start time
                            x-description-cn: 这根K线的起始时间
                          T:
                            type: integer
                            example: 1638747719999
                            format: int64
                            description: Kline close time
                            x-description-cn: 这根K线的结束时间
                          s:
                            type: string
                            example: BTCUSDT
                            description: Symbol
                            x-description-cn: 交易对
                          i:
                            type: string
                            example: 1m
                            description: Interval
                            x-description-cn: K线间隔
                          f:
                            type: integer
                            example: 100
                            format: int64
                            description: First trade ID
                            x-description-cn: 这根K线期间第一笔成交ID
                          L:
                            type: integer
                            example: 200
                            format: int64
                            description: Last trade ID
                            x-description-cn: 这根K线期间末一笔成交ID
                          o:
                            type: string
                            example: "0.0010"
                            description: Open price
                            x-description-cn: 这根K线期间第一笔成交价
                          c:
                            type: string
                            example: "0.0020"
                            description: Close price
                            x-description-cn: 这根K线期间末一笔成交价
                          h:
                            type: string
                            example: "0.0025"
                            description: High price
                            x-description-cn: 这根K线期间最高成交价
                          l:
                            type: string
                            example: "0.0015"
                            description: Low price
                            x-description-cn: 这根K线期间最低成交价
                          v:
                            type: string
                            example: "1000"
                            description: Base asset volume
                            x-description-cn: 这根K线期间成交量
                          "n":
                            type: integer
                            example: 100
                            format: int64
                            description: Number of trades
                            x-description-cn: 这根K线期间成交笔数
                          x:
                            type: boolean
                            example: false
                            description: Is this kline closed?
                            x-description-cn: 这根K线是否完结(是否已经开始下一根K线)
                          q:
                            type: string
                            example: "1.0000"
                            description: Quote asset volume
                            x-description-cn: 这根K线期间成交额
                          V:
                            type: string
                            example: "500"
                            description: Taker buy base asset volume
                            x-description-cn: 主动买入的成交量
                          Q:
                            type: string
                            example: "0.500"
                            description: Taker buy quote asset volume
                            x-description-cn: 主动买入的成交额
                          B:
                            type: string
                            example: "123456"
                            description: Ignore
                            x-description-cn: 忽略此参数
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@kline_1m
                data:
                  e: kline
                  E: 1638747660000
                  s: BTCUSDT
                  k:
                    t: 1638747660000
                    T: 1638747719999
                    s: BTCUSDT
                    i: 1m
                    f: 100
                    L: 200
                    o: "0.0010"
                    c: "0.0020"
                    h: "0.0025"
                    l: "0.0015"
                    v: "1000"
                    "n": 100
                    x: false
                    q: "1.0000"
                    V: "500"
                    Q: "0.500"
                    B: "123456"
  /{symbol}@forceOrder:
    post:
      summary: Liquidation Order Streams
      x-summary-cn: 强平订单
      description: >-
        The Liquidation Order Snapshot Streams push force liquidation order information for specific symbol. For each
        symbol，only the latest one liquidation order within 1000ms will be pushed as the snapshot. If no liquidation
        happens in the interval of 1000ms, no stream will be pushed.
      x-description-cn: 强平订单快照流推送特定交易对的强平订单信息。对于每个交易对，在1000毫秒内只会推送最新的一笔强平订单作为快照。如果在1000毫秒的时间间隔内没有发生强平，则不会推送任何流。
      tags:
        - market
      operationId: liquidationOrderStreams
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#liquidation-order-streams
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/liquidationOrderStreams.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/liquidation_order_streams.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/liquidation_order_streams.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/LiquidationOrderStreamsExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/LiquidationOrderStreams/LiquidationOrderStreams.go
      x-update-speed: 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: The symbol parameter
          x-description-cn: 交易对参数。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - btcusdt@forceOrder
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@forceOrder
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: Liquidation Order Streams
          x-description-cn: 强平订单流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: forceOrder
                    description: Event Type
                    x-description-cn: 事件类型
                  E:
                    type: integer
                    example: 1568014460893
                    format: int64
                    description: Event Time
                    x-description-cn: 事件时间
                  o:
                    type: object
                    properties:
                      s:
                        type: string
                        example: BTCUSDT
                        description: Symbol
                        x-description-cn: 交易对
                      S:
                        type: string
                        example: SELL
                        description: Side
                        x-description-cn: 订单方向
                      o:
                        type: string
                        example: LIMIT
                        description: Order Type
                        x-description-cn: 订单类型
                      f:
                        type: string
                        example: IOC
                        description: Time in Force
                        x-description-cn: 有效方式
                      q:
                        type: string
                        example: "0.014"
                        description: Original Quantity
                        x-description-cn: 订单数量
                      p:
                        type: string
                        example: "9910"
                        description: Price
                        x-description-cn: 订单价格
                      ap:
                        type: string
                        example: "9910"
                        description: Average Price
                        x-description-cn: 平均价格
                      X:
                        type: string
                        example: FILLED
                        description: Order Status
                        x-description-cn: 订单状态
                      l:
                        type: string
                        example: "0.014"
                        description: Order Last Filled Quantity
                        x-description-cn: 订单最近成交量
                      z:
                        type: string
                        example: "0.014"
                        description: Order Filled Accumulated Quantity
                        x-description-cn: 订单累计成交量
                      T:
                        type: integer
                        example: 1568014460893
                        format: int64
                        description: Order Trade Time
                        x-description-cn: 交易时间
                    description: Order Type
                    x-description-cn: 订单类型
              example:
                e: forceOrder
                E: 1568014460893
                o:
                  s: BTCUSDT
                  S: SELL
                  o: LIMIT
                  f: IOC
                  q: "0.014"
                  p: "9910"
                  ap: "9910"
                  X: FILLED
                  l: "0.014"
                  z: "0.014"
                  T: 1568014460893
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@forceOrder
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: forceOrder
                        description: Event Type
                        x-description-cn: 事件类型
                      E:
                        type: integer
                        example: 1568014460893
                        format: int64
                        description: Event Time
                        x-description-cn: 事件时间
                      o:
                        type: object
                        properties:
                          s:
                            type: string
                            example: BTCUSDT
                            description: Symbol
                            x-description-cn: 交易对
                          S:
                            type: string
                            example: SELL
                            description: Side
                            x-description-cn: 订单方向
                          o:
                            type: string
                            example: LIMIT
                            description: Order Type
                            x-description-cn: 订单类型
                          f:
                            type: string
                            example: IOC
                            description: Time in Force
                            x-description-cn: 有效方式
                          q:
                            type: string
                            example: "0.014"
                            description: Original Quantity
                            x-description-cn: 订单数量
                          p:
                            type: string
                            example: "9910"
                            description: Price
                            x-description-cn: 订单价格
                          ap:
                            type: string
                            example: "9910"
                            description: Average Price
                            x-description-cn: 平均价格
                          X:
                            type: string
                            example: FILLED
                            description: Order Status
                            x-description-cn: 订单状态
                          l:
                            type: string
                            example: "0.014"
                            description: Order Last Filled Quantity
                            x-description-cn: 订单最近成交量
                          z:
                            type: string
                            example: "0.014"
                            description: Order Filled Accumulated Quantity
                            x-description-cn: 订单累计成交量
                          T:
                            type: integer
                            example: 1568014460893
                            format: int64
                            description: Order Trade Time
                            x-description-cn: 交易时间
                        description: Order Type
                        x-description-cn: 订单类型
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@forceOrder
                data:
                  e: forceOrder
                  E: 1568014460893
                  o:
                    s: BTCUSDT
                    S: SELL
                    o: LIMIT
                    f: IOC
                    q: "0.014"
                    p: "9910"
                    ap: "9910"
                    X: FILLED
                    l: "0.014"
                    z: "0.014"
                    T: 1568014460893
  /{symbol}@markPrice@{updateSpeed}:
    post:
      summary: Mark Price Stream
      x-summary-cn: 最新标记价格
      description: >-
        Mark price and funding rate for a single symbol pushed every 3 seconds or every second.


        > **After CM migration**, the payload is appended with a new `st` field (`1` = UM, `2` = CM); both `fstream` and
        `dstream` may subscribe to either UM or CM symbols on this stream.
      x-description-cn: |-
        单交易对的标记价格和资金费率，每 3 秒或每秒推送一次。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM);`fstream` 与 `dstream` 都可订阅 UM 或 CM 的 symbol。
      tags:
        - market
      operationId: markPriceStream
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#mark-price-stream
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/markPriceStream.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/mark_price_stream.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/mark_price_stream.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/MarkPriceStreamExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/MarkPriceStream/MarkPriceStream.go
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: The symbol parameter
          x-description-cn: 交易对参数。
        - name: updateSpeed
          in: path
          required: false
          schema:
            type: string
            example: 1s
            enum:
              - 1s
          description: WebSocket stream update speed
          x-description-cn: WebSocket 推送更新速度。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - btcusdt@markPrice@1s
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@markPrice@1s
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: Mark Price Stream
          x-description-cn: 标记价格流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: markPriceUpdate
                    description: Event type
                    x-description-cn: 事件类型
                  E:
                    type: integer
                    example: 1562305380000
                    format: int64
                    description: Event time
                    x-description-cn: 事件时间
                  s:
                    type: string
                    example: BTCUSDT
                    description: Symbol
                    x-description-cn: 交易对
                  p:
                    type: string
                    example: "11794.15000000"
                    description: Mark price
                    x-description-cn: 标记价格
                  i:
                    type: string
                    example: "11784.62659091"
                    description: Index price
                    x-description-cn: 现货指数价格
                  P:
                    type: string
                    example: "11784.25641265"
                    description: Estimated Settle Price, only useful in the last hour before the settlement starts
                    x-description-cn: 预估结算价,仅在结算前最后一小时有参考价值
                  r:
                    type: string
                    example: "0.00038167"
                    description: Funding rate
                    x-description-cn: 资金费率
                  ap:
                    type: string
                    example: "11794.15000000"
                    description: Mark price moving average
                    x-description-cn: 标记价格移动平均值
                  T:
                    type: integer
                    example: 1562306400000
                    format: int64
                    description: Next funding time
                    x-description-cn: 下次资金时间
                  st:
                    type: integer
                    example: 1
                    description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                    x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: markPriceUpdate
                E: 1562305380000
                s: BTCUSDT
                p: "11794.15000000"
                i: "11784.62659091"
                P: "11784.25641265"
                r: "0.00038167"
                ap: "11794.15000000"
                T: 1562306400000
                st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@markPrice@1s
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: markPriceUpdate
                        description: Event type
                        x-description-cn: 事件类型
                      E:
                        type: integer
                        example: 1562305380000
                        format: int64
                        description: Event time
                        x-description-cn: 事件时间
                      s:
                        type: string
                        example: BTCUSDT
                        description: Symbol
                        x-description-cn: 交易对
                      p:
                        type: string
                        example: "11794.15000000"
                        description: Mark price
                        x-description-cn: 标记价格
                      i:
                        type: string
                        example: "11784.62659091"
                        description: Index price
                        x-description-cn: 现货指数价格
                      P:
                        type: string
                        example: "11784.25641265"
                        description: Estimated Settle Price, only useful in the last hour before the settlement starts
                        x-description-cn: 预估结算价,仅在结算前最后一小时有参考价值
                      r:
                        type: string
                        example: "0.00038167"
                        description: Funding rate
                        x-description-cn: 资金费率
                      ap:
                        type: string
                        example: "11794.15000000"
                        description: Mark price moving average
                        x-description-cn: 标记价格移动平均值
                      T:
                        type: integer
                        example: 1562306400000
                        format: int64
                        description: Next funding time
                        x-description-cn: 下次资金时间
                      st:
                        type: integer
                        example: 1
                        description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                        x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@markPrice@1s
                data:
                  e: markPriceUpdate
                  E: 1562305380000
                  s: BTCUSDT
                  p: "11794.15000000"
                  i: "11784.62659091"
                  P: "11784.25641265"
                  r: "0.00038167"
                  ap: "11794.15000000"
                  T: 1562306400000
                  st: 1
  /!markPrice@arr@{updateSpeed}:
    post:
      summary: Mark Price Stream for All market
      x-summary-cn: 全市场最新标记价格
      description: >-
        Mark price and funding rate for all symbols pushed every 3 seconds or every second.


        **Note:**

        - TradFi symbols will be pushed through a seperate message.


        > **After CM migration**, the payload is appended with a new `st` field (`1` = UM, `2` = CM); both `fstream` and
        `dstream` may subscribe to either UM or CM symbols on this stream.
      x-description-cn: |-
        全市场交易对的标记价格与资金费率，每 3 秒或每 1 秒推送一次。

        **注意：**
        - TradFi 交易对会通过独立消息推送。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM);`fstream` 与 `dstream` 都可订阅 UM 或 CM 的 symbol。
      tags:
        - market
      operationId: markPriceStreamForAllMarket
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#mark-price-stream-for-all-market
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/markPriceStreamForAllMarket.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/mark_price_stream_for_all_market.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/mark_price_stream_for_all_market.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/MarkPriceStreamForAllMarketExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/MarkPriceStreamForAllMarket/MarkPriceStreamForAllMarket.go
      x-update-speed: 3000ms or 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: updateSpeed
          in: path
          required: false
          schema:
            type: string
            example: 1s
            enum:
              - 1s
          description: WebSocket stream update speed
          x-description-cn: WebSocket 推送更新速度。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - "!markPrice@arr@1s"
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - "!markPrice@arr@1s"
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: Mark Price Stream for All market
          x-description-cn: 全市场标记价格流
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    e:
                      type: string
                      example: markPriceUpdate
                      description: Event type
                      x-description-cn: 事件类型
                    E:
                      type: integer
                      example: 1562305380000
                      format: int64
                      description: Event time
                      x-description-cn: 事件时间
                    s:
                      type: string
                      example: BTCUSDT
                      description: Symbol
                      x-description-cn: 交易对
                    p:
                      type: string
                      example: "11185.87786614"
                      description: Mark price
                      x-description-cn: 标记价格
                    i:
                      type: string
                      example: "11784.62659091"
                      description: Index price
                      x-description-cn: 现货指数价格
                    P:
                      type: string
                      example: "11784.25641265"
                      description: Estimated Settle Price, only useful in the last hour before the settlement starts
                      x-description-cn: 预估结算价,仅在结算前最后一小时有参考价值
                    r:
                      type: string
                      example: "0.00030000"
                      description: Funding rate
                      x-description-cn: 资金费率
                    ap:
                      type: string
                      example: "11185.87786614"
                      description: Mark price moving average
                      x-description-cn: 标记价格移动平均值
                    T:
                      type: integer
                      example: 1562306400000
                      format: int64
                      description: Next funding time
                      x-description-cn: 下个资金时间
                    st:
                      type: integer
                      example: 1
                      description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                      x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                - e: markPriceUpdate
                  E: 1562305380000
                  s: BTCUSDT
                  p: "11185.87786614"
                  i: "11784.62659091"
                  P: "11784.25641265"
                  r: "0.00030000"
                  ap: "11185.87786614"
                  T: 1562306400000
                  st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: "!markPrice@arr@1s"
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        e:
                          type: string
                          example: markPriceUpdate
                          description: Event type
                          x-description-cn: 事件类型
                        E:
                          type: integer
                          example: 1562305380000
                          format: int64
                          description: Event time
                          x-description-cn: 事件时间
                        s:
                          type: string
                          example: BTCUSDT
                          description: Symbol
                          x-description-cn: 交易对
                        p:
                          type: string
                          example: "11185.87786614"
                          description: Mark price
                          x-description-cn: 标记价格
                        i:
                          type: string
                          example: "11784.62659091"
                          description: Index price
                          x-description-cn: 现货指数价格
                        P:
                          type: string
                          example: "11784.25641265"
                          description: Estimated Settle Price, only useful in the last hour before the settlement starts
                          x-description-cn: 预估结算价,仅在结算前最后一小时有参考价值
                        r:
                          type: string
                          example: "0.00030000"
                          description: Funding rate
                          x-description-cn: 资金费率
                        ap:
                          type: string
                          example: "11185.87786614"
                          description: Mark price moving average
                          x-description-cn: 标记价格移动平均值
                        T:
                          type: integer
                          example: 1562306400000
                          format: int64
                          description: Next funding time
                          x-description-cn: 下个资金时间
                        st:
                          type: integer
                          example: 1
                          description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                          x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: "!markPrice@arr@1s"
                data:
                  - e: markPriceUpdate
                    E: 1562305380000
                    s: BTCUSDT
                    p: "11185.87786614"
                    i: "11784.62659091"
                    P: "11784.25641265"
                    r: "0.00030000"
                    ap: "11185.87786614"
                    T: 1562306400000
                    st: 1
  /!assetIndex@arr:
    post:
      summary: Multi-Assets Mode Asset Index
      x-summary-cn: 多资产模式资产指数
      description: >-
        Asset index price. Subscribe with `!assetIndex@arr` for all assets, or `<assetSymbol>@assetIndex` for a specific
        asset.


        > **CM-UM Integration (Effective 2026-06-30):** Renamed from *Multi-Assets Mode Asset Index*. The stream
        `!assetIndex@arr` now additionally pushes COIN-M settlement-asset price index entries (e.g., `BTCUSD`, `ETHUSD`,
        `BNBUSD`). The on-the-wire stream key is unchanged; existing subscriptions continue to work.
      x-description-cn: >-
        资产汇率指数。使用 `!assetIndex@arr` 订阅所有资产，或使用 `<assetSymbol>@assetIndex` 订阅指定资产。


        > **币本位/U本位整合迁移(2026-06-30 生效):** Stream 名由 *多资产模式资产汇率指数* 变更为 *资产汇率指数*。Stream `!assetIndex@arr`
        现在**额外推送**币本位结算资产的价格指数(如 `BTCUSD`、`ETHUSD`、`BNBUSD`)。订阅键不变,已有订阅继续可用。
      tags:
        - market
      operationId: assetIndex
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#asset-index
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/assetIndex.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/asset_index.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/asset_index.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/AssetIndexExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/AssetIndex/AssetIndex.go
      x-update-speed: 1s
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - "!assetIndex@arr"
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - "!assetIndex@arr"
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: Multi-Assets Mode Asset Index
          x-description-cn: 多资产模式资产指数
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    e:
                      type: string
                      example: assetIndexUpdate
                      description: Event type.
                      x-description-cn: 事件类型。
                    E:
                      type: integer
                      example: 1686749230000
                      format: int64
                      description: Event time.
                      x-description-cn: 事件时间。
                    s:
                      type: string
                      example: ADAUSD
                      description: Asset index symbol.
                      x-description-cn: 资产指数交易对。
                    i:
                      type: string
                      example: "0.27462452"
                      description: Index price.
                      x-description-cn: 指数价格。
                    b:
                      type: string
                      example: "0.10000000"
                      description: Bid buffer.
                      x-description-cn: 买方缓冲值。
                    a:
                      type: string
                      example: "0.10000000"
                      description: Ask buffer.
                      x-description-cn: 卖方缓冲值。
                    B:
                      type: string
                      example: "0.24716207"
                      description: Bid rate.
                      x-description-cn: 买方汇率。
                    A:
                      type: string
                      example: "0.30208698"
                      description: Ask rate.
                      x-description-cn: 卖方汇率。
                    q:
                      type: string
                      example: "0.05000000"
                      description: Auto exchange bid buffer.
                      x-description-cn: 自动兑换买方缓冲值。
                    g:
                      type: string
                      example: "0.05000000"
                      description: Auto exchange ask buffer.
                      x-description-cn: 自动兑换卖方缓冲值。
                    Q:
                      type: string
                      example: "0.26089330"
                      description: Auto exchange bid rate.
                      x-description-cn: 自动兑换买方汇率。
                    G:
                      type: string
                      example: "0.28835575"
                      description: Auto exchange ask rate.
                      x-description-cn: 自动兑换卖方汇率。
              example:
                - e: assetIndexUpdate
                  E: 1686749230000
                  s: ADAUSD
                  i: "0.27462452"
                  b: "0.10000000"
                  a: "0.10000000"
                  B: "0.24716207"
                  A: "0.30208698"
                  q: "0.05000000"
                  g: "0.05000000"
                  Q: "0.26089330"
                  G: "0.28835575"
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: "!assetIndex@arr"
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        e:
                          type: string
                          example: assetIndexUpdate
                          description: Event type.
                          x-description-cn: 事件类型。
                        E:
                          type: integer
                          example: 1686749230000
                          format: int64
                          description: Event time.
                          x-description-cn: 事件时间。
                        s:
                          type: string
                          example: ADAUSD
                          description: Asset index symbol.
                          x-description-cn: 资产指数交易对。
                        i:
                          type: string
                          example: "0.27462452"
                          description: Index price.
                          x-description-cn: 指数价格。
                        b:
                          type: string
                          example: "0.10000000"
                          description: Bid buffer.
                          x-description-cn: 买方缓冲值。
                        a:
                          type: string
                          example: "0.10000000"
                          description: Ask buffer.
                          x-description-cn: 卖方缓冲值。
                        B:
                          type: string
                          example: "0.24716207"
                          description: Bid rate.
                          x-description-cn: 买方汇率。
                        A:
                          type: string
                          example: "0.30208698"
                          description: Ask rate.
                          x-description-cn: 卖方汇率。
                        q:
                          type: string
                          example: "0.05000000"
                          description: Auto exchange bid buffer.
                          x-description-cn: 自动兑换买方缓冲值。
                        g:
                          type: string
                          example: "0.05000000"
                          description: Auto exchange ask buffer.
                          x-description-cn: 自动兑换卖方缓冲值。
                        Q:
                          type: string
                          example: "0.26089330"
                          description: Auto exchange bid rate.
                          x-description-cn: 自动兑换买方汇率。
                        G:
                          type: string
                          example: "0.28835575"
                          description: Auto exchange ask rate.
                          x-description-cn: 自动兑换卖方汇率。
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: "!assetIndex@arr"
                data:
                  - e: assetIndexUpdate
                    E: 1686749230000
                    s: ADAUSD
                    i: "0.27462452"
                    b: "0.10000000"
                    a: "0.10000000"
                    B: "0.24716207"
                    A: "0.30208698"
                    q: "0.05000000"
                    g: "0.05000000"
                    Q: "0.26089330"
                    G: "0.28835575"
  /tradingSession:
    post:
      summary: Trading Session Stream
      x-summary-cn: 当前交易时段
      description: >-
        Trading session information for the underlying assets of TradFi Perpetual contracts, covering the U.S. equity
        market, Korean equity market, and the commodity market, is updated every second. Trading session information for
        different underlying markets is pushed in separate messages.


        **Event type:**


        - `EquityUpdate`: Session types for the U.S. equity market include "PRE_MARKET", "REGULAR", "AFTER_MARKET",
        "OVERNIGHT", and "NO_TRADING".

        - `CommodityUpdate`: Session types for the commodity market include "REGULAR" and "NO_TRADING".

        - `KR_EquityUpdate`: Session types for the Korean equity market include "REGULAR" and "NO_TRADING".
      x-description-cn: |-
        每秒返回传统金融合约标的资产（美股市场、韩国股票市场及大宗商品市场）的当前交易时段信息。不同标的市场的交易时段信息由不同消息推送。

        **事件类型：**

        - `EquityUpdate`：美股市场的时段类型包括 "PRE_MARKET"、"REGULAR"、"AFTER_MARKET"、"OVERNIGHT" 和 "NO_TRADING"。
        - `CommodityUpdate`：大宗商品市场的时段类型包括 "REGULAR" 和 "NO_TRADING"。
        - `KR_EquityUpdate`：韩国股票市场的时段类型包括 "REGULAR" 和 "NO_TRADING"。
      tags:
        - market
      operationId: tradingSessionStream
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/market#trading-session-stream
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/MarketApi/tradingSessionStream.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/market_api/trading_session_stream.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Market/trading_session_stream.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/market/TradingSessionStreamExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//MarketAPI/TradingSessionStream/TradingSessionStream.go
      x-update-speed: 1s
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - tradingSession
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - tradingSession
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: Trading Session Stream
          x-description-cn: 交易时段流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: EquityUpdate
                    description: Event type, can also be CommodityUpdate or KR_EquityUpdate
                    x-description-cn: 事件类型, 也可以是CommodityUpdate或KR_EquityUpdate
                  E:
                    type: integer
                    example: 1765244143062
                    format: int64
                    description: Event time
                    x-description-cn: 事件时间
                  t:
                    type: integer
                    example: 1765242000000
                    format: int64
                    description: Session start time
                    x-description-cn: 交易时段开始时间
                  T:
                    type: integer
                    example: 1765270800000
                    format: int64
                    description: Session end time
                    x-description-cn: 交易时段结束时间
                  S:
                    type: string
                    example: OVERNIGHT
                    description: Session type
                    x-description-cn: 交易时段类型
              example:
                e: EquityUpdate
                E: 1765244143062
                t: 1765242000000
                T: 1765270800000
                S: OVERNIGHT
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: tradingSession
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: EquityUpdate
                        description: Event type, can also be CommodityUpdate or KR_EquityUpdate
                        x-description-cn: 事件类型, 也可以是CommodityUpdate或KR_EquityUpdate
                      E:
                        type: integer
                        example: 1765244143062
                        format: int64
                        description: Event time
                        x-description-cn: 事件时间
                      t:
                        type: integer
                        example: 1765242000000
                        format: int64
                        description: Session start time
                        x-description-cn: 交易时段开始时间
                      T:
                        type: integer
                        example: 1765270800000
                        format: int64
                        description: Session end time
                        x-description-cn: 交易时段结束时间
                      S:
                        type: string
                        example: OVERNIGHT
                        description: Session type
                        x-description-cn: 交易时段类型
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: tradingSession
                data:
                  e: EquityUpdate
                  E: 1765244143062
                  t: 1765242000000
                  T: 1765270800000
                  S: OVERNIGHT
  /!bookTicker:
    post:
      summary: All Book Tickers Stream
      x-summary-cn: 全市场最优挂单信息
      description: >-
        Pushes any update to the best bid or ask's price or quantity in real-time for all symbols.


        > **After CM migration**, this stream pushes the merged UM + CM universe (subscribable on both `fstream` and
        `dstream`); each payload is appended with a new `st` field (`1` = UM, `2` = CM) and a new `ps` field (pair
        symbol).
      x-description-cn: >-
        实时推送所有交易对的最优挂单价格或数量的任何更新。


        > **迁移后**,此 stream 推送合并的 UM + CM universe(`fstream` 与 `dstream` 都可订阅);payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)以及
        `ps`(pair symbol)字段。
      tags:
        - public
      operationId: allBookTickersStream
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/public#all-book-tickers-stream
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/PublicApi/allBookTickersStream.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/public_api/all_book_tickers_stream.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Public/all_book_tickers_stream.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/public/AllBookTickersStreamExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//PublicAPI/AllBookTickersStream/AllBookTickersStream.go
      x-update-speed: 5s
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - "!bookTicker"
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - "!bookTicker"
              id: e9d6b4349871b40611412680b3445fac
      x-response-notes: "- Retail Price Improvement(RPI) orders are not visible and excluded in the response message."
      x-response-notes-cn: "- 零售价格改进（RPI）订单在响应消息中不可见并被排除在外。"
      responses:
        Raw Stream:
          description: All Book Tickers Stream
          x-description-cn: 全市场最优挂单流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: bookTicker
                    description: event type
                    x-description-cn: 事件类型
                  u:
                    type: integer
                    example: 400900217
                    format: int64
                    description: order book updateId
                    x-description-cn: 更新ID
                  E:
                    type: integer
                    example: 1568014460893
                    format: int64
                    description: event time
                    x-description-cn: 事件推送时间
                  T:
                    type: integer
                    example: 1568014460891
                    format: int64
                    description: transaction time
                    x-description-cn: 撮合时间
                  s:
                    type: string
                    example: BNBUSDT
                    description: symbol
                    x-description-cn: 交易对
                  b:
                    type: string
                    example: "25.35190000"
                    description: best bid price
                    x-description-cn: 买单最优挂单价格
                  B:
                    type: string
                    example: "31.21000000"
                    description: best bid qty
                    x-description-cn: 买单最优挂单数量
                  a:
                    type: string
                    example: "25.36520000"
                    description: best ask price
                    x-description-cn: 卖单最优挂单价格
                  A:
                    type: string
                    example: "40.66000000"
                    description: best ask qty
                    x-description-cn: 卖单最优挂单数量
                  ps:
                    type: string
                    example: BTCUSDT
                    description: (After CM migration) Pair symbol
                    x-description-cn: (迁移后新增) 标的交易对
                  st:
                    type: integer
                    example: 1
                    description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                    x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: bookTicker
                u: 400900217
                E: 1568014460893
                T: 1568014460891
                s: BNBUSDT
                b: "25.35190000"
                B: "31.21000000"
                a: "25.36520000"
                A: "40.66000000"
                ps: BTCUSDT
                st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: "!bookTicker"
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: bookTicker
                        description: event type
                        x-description-cn: 事件类型
                      u:
                        type: integer
                        example: 400900217
                        format: int64
                        description: order book updateId
                        x-description-cn: 更新ID
                      E:
                        type: integer
                        example: 1568014460893
                        format: int64
                        description: event time
                        x-description-cn: 事件推送时间
                      T:
                        type: integer
                        example: 1568014460891
                        format: int64
                        description: transaction time
                        x-description-cn: 撮合时间
                      s:
                        type: string
                        example: BNBUSDT
                        description: symbol
                        x-description-cn: 交易对
                      b:
                        type: string
                        example: "25.35190000"
                        description: best bid price
                        x-description-cn: 买单最优挂单价格
                      B:
                        type: string
                        example: "31.21000000"
                        description: best bid qty
                        x-description-cn: 买单最优挂单数量
                      a:
                        type: string
                        example: "25.36520000"
                        description: best ask price
                        x-description-cn: 卖单最优挂单价格
                      A:
                        type: string
                        example: "40.66000000"
                        description: best ask qty
                        x-description-cn: 卖单最优挂单数量
                      ps:
                        type: string
                        example: BTCUSDT
                        description: (After CM migration) Pair symbol
                        x-description-cn: (迁移后新增) 标的交易对
                      st:
                        type: integer
                        example: 1
                        description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                        x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: "!bookTicker"
                data:
                  e: bookTicker
                  u: 400900217
                  E: 1568014460893
                  T: 1568014460891
                  s: BNBUSDT
                  b: "25.35190000"
                  B: "31.21000000"
                  a: "25.36520000"
                  A: "40.66000000"
                  ps: BTCUSDT
                  st: 1
  /{symbol}@depth@{updateSpeed}:
    post:
      summary: Diff. Book Depth Streams
      x-summary-cn: 增量深度信息
      description: >-
        Bids and asks, pushed every 250 milliseconds, 500 milliseconds, 100 milliseconds (if existing).


        > **After CM migration**, the payload is appended with a new `st` field (`1` = UM, `2` = CM) and a new `ps`
        field (pair symbol).
      x-description-cn: |-
        买卖盘，每 250 毫秒、500 毫秒、100 毫秒推送一次（如果存在）。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)以及 `ps`(pair symbol)字段。
      tags:
        - public
      operationId: diffBookDepthStreams
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/public#diff-book-depth-streams
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/PublicApi/diffBookDepthStreams.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/public_api/diff_book_depth_streams.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Public/diff_book_depth_streams.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/public/DiffBookDepthStreamsExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//PublicAPI/DiffBookDepthStreams/DiffBookDepthStreams.go
      x-update-speed: 250ms, 500ms, 100ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: Trading pair symbol.
          x-description-cn: 交易对。
        - name: updateSpeed
          in: path
          required: false
          schema:
            type: string
            example: 100ms
            enum:
              - 100ms
              - 500ms
          description: WebSocket stream update speed
          x-description-cn: WebSocket 流更新速度
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - btcusdt@depth@100ms
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@depth@100ms
              id: e9d6b4349871b40611412680b3445fac
      x-response-notes: "- Retail Price Improvement(RPI) orders are not visible and excluded in the response message."
      x-response-notes-cn: "- 零售价格改进（RPI）订单在响应消息中不可见并被排除在外。"
      responses:
        Raw Stream:
          description: Diff. Book Depth Streams
          x-description-cn: 增量深度流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: depthUpdate
                    description: Event type.
                    x-description-cn: 事件类型。
                  E:
                    type: integer
                    example: 123456789
                    format: int64
                    description: Event time.
                    x-description-cn: 事件时间。
                  T:
                    type: integer
                    example: 123456788
                    format: int64
                    description: Transaction time.
                    x-description-cn: 成交时间。
                  s:
                    type: string
                    example: BNBUSDT
                    description: Symbol.
                    x-description-cn: 交易对。
                  U:
                    type: integer
                    example: 157
                    format: int64
                    description: First update ID in the event.
                    x-description-cn: 本次事件中的首个更新 ID。
                  u:
                    type: integer
                    example: 160
                    format: int64
                    description: Final update ID in the event.
                    x-description-cn: 本次事件中的末尾更新 ID。
                  pu:
                    type: integer
                    example: 149
                    format: int64
                    description: Final update ID in the previous stream event.
                    x-description-cn: 上一个事件中的末尾更新 ID。
                  b:
                    type: array
                    description: Bid updates.
                    x-description-cn: 买盘更新。
                    items:
                      type: array
                      items:
                        type: string
                        example: "0.0024"
                  a:
                    type: array
                    description: Ask updates.
                    x-description-cn: 卖盘更新。
                    items:
                      type: array
                      items:
                        type: string
                        example: "0.0026"
                  ps:
                    type: string
                    example: BTCUSDT
                    description: (After CM migration) Pair symbol
                    x-description-cn: (迁移后新增) 标的交易对
                  st:
                    type: integer
                    example: 1
                    description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                    x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: depthUpdate
                E: 123456789
                T: 123456788
                s: BNBUSDT
                U: 157
                u: 160
                pu: 149
                b:
                  - - "0.0024"
                a:
                  - - "0.0026"
                ps: BTCUSDT
                st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@depth@100ms
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: depthUpdate
                        description: Event type.
                        x-description-cn: 事件类型。
                      E:
                        type: integer
                        example: 123456789
                        format: int64
                        description: Event time.
                        x-description-cn: 事件时间。
                      T:
                        type: integer
                        example: 123456788
                        format: int64
                        description: Transaction time.
                        x-description-cn: 成交时间。
                      s:
                        type: string
                        example: BNBUSDT
                        description: Symbol.
                        x-description-cn: 交易对。
                      U:
                        type: integer
                        example: 157
                        format: int64
                        description: First update ID in the event.
                        x-description-cn: 本次事件中的首个更新 ID。
                      u:
                        type: integer
                        example: 160
                        format: int64
                        description: Final update ID in the event.
                        x-description-cn: 本次事件中的末尾更新 ID。
                      pu:
                        type: integer
                        example: 149
                        format: int64
                        description: Final update ID in the previous stream event.
                        x-description-cn: 上一个事件中的末尾更新 ID。
                      b:
                        type: array
                        description: Bid updates.
                        x-description-cn: 买盘更新。
                        items:
                          type: array
                          items:
                            type: string
                            example: "0.0024"
                      a:
                        type: array
                        description: Ask updates.
                        x-description-cn: 卖盘更新。
                        items:
                          type: array
                          items:
                            type: string
                            example: "0.0026"
                      ps:
                        type: string
                        example: BTCUSDT
                        description: (After CM migration) Pair symbol
                        x-description-cn: (迁移后新增) 标的交易对
                      st:
                        type: integer
                        example: 1
                        description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                        x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@depth@100ms
                data:
                  e: depthUpdate
                  E: 123456789
                  T: 123456788
                  s: BNBUSDT
                  U: 157
                  u: 160
                  pu: 149
                  b:
                    - - "0.0024"
                  a:
                    - - "0.0026"
                  ps: BTCUSDT
                  st: 1
  /{symbol}@bookTicker:
    post:
      summary: Individual Symbol Book Ticker Streams
      x-summary-cn: 按Symbol的最优挂单信息
      description: |-
        Pushes any update to the best bid or ask's price or quantity in real-time for a specified symbol.

        > **After CM migration**, the payload is appended with a new `st` field (`1` = UM, `2` = CM).
      x-description-cn: |-
        实时推送指定交易对的最优挂单价格或数量的任何更新。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      tags:
        - public
      operationId: individualSymbolBookTickerStreams
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/public#individual-symbol-book-ticker-streams
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/PublicApi/individualSymbolBookTickerStreams.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/public_api/individual_symbol_book_ticker_streams.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Public/individual_symbol_book_ticker_streams.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/public/IndividualSymbolBookTickerStreamsExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//PublicAPI/IndividualSymbolBookTickerStreams/IndividualSymbolBookTickerStreams.go
      x-update-speed: Real-time
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: The symbol parameter
          x-description-cn: 交易对参数。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - btcusdt@bookTicker
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@bookTicker
              id: e9d6b4349871b40611412680b3445fac
      x-response-notes: Retail Price Improvement (RPI) orders are not visible and excluded in the response message.
      x-response-notes-cn: 零售价格改善（RPI）订单不可见，并且不包含在响应消息中。
      responses:
        Raw Stream:
          description: Individual Symbol Book Ticker Streams
          x-description-cn: 单交易对最优挂单流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: bookTicker
                    description: event type
                    x-description-cn: 事件类型
                  u:
                    type: integer
                    example: 400900217
                    format: int64
                    description: order book updateId
                    x-description-cn: 更新ID
                  E:
                    type: integer
                    example: 1568014460893
                    format: int64
                    description: event time
                    x-description-cn: 事件推送时间
                  T:
                    type: integer
                    example: 1568014460891
                    format: int64
                    description: transaction time
                    x-description-cn: 撮合时间
                  s:
                    type: string
                    example: BNBUSDT
                    description: symbol
                    x-description-cn: 交易对
                  ps:
                    type: string
                    example: BNBUSDT
                    description: pair (After CM migration)
                    x-description-cn: 标的交易对（迁移后新增）
                  b:
                    type: string
                    example: "25.35190000"
                    description: best bid price
                    x-description-cn: 买单最优挂单价格
                  B:
                    type: string
                    example: "31.21000000"
                    description: best bid qty
                    x-description-cn: 买单最优挂单数量
                  a:
                    type: string
                    example: "25.36520000"
                    description: best ask price
                    x-description-cn: 卖单最优挂单价格
                  A:
                    type: string
                    example: "40.66000000"
                    description: best ask qty
                    x-description-cn: 卖单最优挂单数量
                  st:
                    type: integer
                    example: 1
                    description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                    x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: bookTicker
                u: 400900217
                E: 1568014460893
                T: 1568014460891
                s: BNBUSDT
                ps: BNBUSDT
                b: "25.35190000"
                B: "31.21000000"
                a: "25.36520000"
                A: "40.66000000"
                st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@bookTicker
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: bookTicker
                        description: event type
                        x-description-cn: 事件类型
                      u:
                        type: integer
                        example: 400900217
                        format: int64
                        description: order book updateId
                        x-description-cn: 更新ID
                      E:
                        type: integer
                        example: 1568014460893
                        format: int64
                        description: event time
                        x-description-cn: 事件推送时间
                      T:
                        type: integer
                        example: 1568014460891
                        format: int64
                        description: transaction time
                        x-description-cn: 撮合时间
                      s:
                        type: string
                        example: BNBUSDT
                        description: symbol
                        x-description-cn: 交易对
                      ps:
                        type: string
                        example: BNBUSDT
                        description: pair (After CM migration)
                        x-description-cn: 标的交易对（迁移后新增）
                      b:
                        type: string
                        example: "25.35190000"
                        description: best bid price
                        x-description-cn: 买单最优挂单价格
                      B:
                        type: string
                        example: "31.21000000"
                        description: best bid qty
                        x-description-cn: 买单最优挂单数量
                      a:
                        type: string
                        example: "25.36520000"
                        description: best ask price
                        x-description-cn: 卖单最优挂单价格
                      A:
                        type: string
                        example: "40.66000000"
                        description: best ask qty
                        x-description-cn: 卖单最优挂单数量
                      st:
                        type: integer
                        example: 1
                        description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                        x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@bookTicker
                data:
                  e: bookTicker
                  u: 400900217
                  E: 1568014460893
                  T: 1568014460891
                  s: BNBUSDT
                  ps: BNBUSDT
                  b: "25.35190000"
                  B: "31.21000000"
                  a: "25.36520000"
                  A: "40.66000000"
                  st: 1
  /{symbol}@depth{levels}@{updateSpeed}:
    post:
      summary: Partial Book Depth Streams
      x-summary-cn: 有限档深度信息
      description: >-
        Top <levels> bids and asks


        > **After CM migration**, the payload is appended with a new `st` field (`1` = UM, `2` = CM) and a new `ps`
        field (pair symbol).
      x-description-cn: |-
        前 <levels> 档买卖盘深度。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)以及 `ps`(pair symbol)字段。
      tags:
        - public
      operationId: partialBookDepthStreams
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/public#partial-book-depth-streams
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/PublicApi/partialBookDepthStreams.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/public_api/partial_book_depth_streams.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Public/partial_book_depth_streams.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/public/PartialBookDepthStreamsExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//PublicAPI/PartialBookDepthStreams/PartialBookDepthStreams.go
      x-update-speed: 250ms or 500ms or 100ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: The symbol parameter
          x-description-cn: 交易对参数。
        - name: levels
          in: path
          required: true
          schema:
            type: string
            example: 10
            enum:
              - 5
              - 10
              - 20
          description: The levels parameter
          x-description-cn: 档位参数。
        - name: updateSpeed
          in: path
          required: false
          schema:
            type: string
            example: 100ms
            enum:
              - 100ms
              - 500ms
          description: WebSocket stream update speed
          x-description-cn: WebSocket 推送更新速度。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - btcusdt@depth10@100ms
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@depth10@100ms
              id: e9d6b4349871b40611412680b3445fac
      x-response-notes: Retail Price Improvement (RPI) orders are not visible and excluded in the response message.
      x-response-notes-cn: 零售价格改善（RPI）订单不可见，并且不包含在响应消息中。
      responses:
        Raw Stream:
          description: Partial Book Depth Streams
          x-description-cn: 部分深度流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: depthUpdate
                    description: Event type
                    x-description-cn: 事件类型
                  E:
                    type: integer
                    example: 1571889248277
                    format: int64
                    description: Event time
                    x-description-cn: 事件时间
                  T:
                    type: integer
                    example: 1571889248276
                    format: int64
                    description: Transaction time
                    x-description-cn: 交易时间
                  s:
                    type: string
                    example: BTCUSDT
                    description: Symbol
                    x-description-cn: 交易对
                  U:
                    type: integer
                    example: 390497796
                    format: int64
                    description: First update ID in event
                    x-description-cn: 从上次推送至今新增的第一个 update Id
                  u:
                    type: integer
                    example: 390497878
                    format: int64
                    description: Final update ID in event
                    x-description-cn: 从上次推送至今新增的最后一个 update Id
                  pu:
                    type: integer
                    example: 390497794
                    format: int64
                    description: Final update Id in last stream(ie `u` in last stream)
                    x-description-cn: 上次推送的最后一个update Id(即上条消息的‘u’)
                  b:
                    type: array
                    items:
                      type: array
                      items:
                        type: string
                        example: "7403.89"
                    description: Bids to be updated
                    x-description-cn: 买方
                  a:
                    type: array
                    items:
                      type: array
                      items:
                        type: string
                        example: "7405.96"
                    description: Asks to be updated
                    x-description-cn: 卖方
                  ps:
                    type: string
                    example: BTCUSDT
                    description: (After CM migration) Pair symbol
                    x-description-cn: (迁移后新增) 标的交易对
                  st:
                    type: integer
                    example: 1
                    description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                    x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: depthUpdate
                E: 1571889248277
                T: 1571889248276
                s: BTCUSDT
                U: 390497796
                u: 390497878
                pu: 390497794
                b:
                  - - "7403.89"
                a:
                  - - "7405.96"
                ps: BTCUSDT
                st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@depth10@100ms
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: depthUpdate
                        description: Event type
                        x-description-cn: 事件类型
                      E:
                        type: integer
                        example: 1571889248277
                        format: int64
                        description: Event time
                        x-description-cn: 事件时间
                      T:
                        type: integer
                        example: 1571889248276
                        format: int64
                        description: Transaction time
                        x-description-cn: 交易时间
                      s:
                        type: string
                        example: BTCUSDT
                        description: Symbol
                        x-description-cn: 交易对
                      U:
                        type: integer
                        example: 390497796
                        format: int64
                        description: First update ID in event
                        x-description-cn: 从上次推送至今新增的第一个 update Id
                      u:
                        type: integer
                        example: 390497878
                        format: int64
                        description: Final update ID in event
                        x-description-cn: 从上次推送至今新增的最后一个 update Id
                      pu:
                        type: integer
                        example: 390497794
                        format: int64
                        description: Final update Id in last stream(ie `u` in last stream)
                        x-description-cn: 上次推送的最后一个update Id(即上条消息的‘u’)
                      b:
                        type: array
                        items:
                          type: array
                          items:
                            type: string
                            example: "7403.89"
                        description: Bids to be updated
                        x-description-cn: 买方
                      a:
                        type: array
                        items:
                          type: array
                          items:
                            type: string
                            example: "7405.96"
                        description: Asks to be updated
                        x-description-cn: 卖方
                      ps:
                        type: string
                        example: BTCUSDT
                        description: (After CM migration) Pair symbol
                        x-description-cn: (迁移后新增) 标的交易对
                      st:
                        type: integer
                        example: 1
                        description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                        x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@depth10@100ms
                data:
                  e: depthUpdate
                  E: 1571889248277
                  T: 1571889248276
                  s: BTCUSDT
                  U: 390497796
                  u: 390497878
                  pu: 390497794
                  b:
                    - - "7403.89"
                  a:
                    - - "7405.96"
                  ps: BTCUSDT
                  st: 1
  /{symbol}@rpiDepth@500ms:
    post:
      summary: RPI Diff. Book Depth Streams
      x-summary-cn: RPI增量深度信息
      description: >-
        Bids and asks including RPI orders, pushed every 500 milliseconds


        > **After CM migration**, the payload is appended with a new `st` field (`1` = UM, `2` = CM) and a new `ps`
        field (pair symbol).
      x-description-cn: |-
        买卖盘增量深度（包含RPI订单），每500毫秒推送一次

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)以及 `ps`(pair symbol)字段。
      tags:
        - public
      operationId: rpiDiffBookDepthStreams
      externalDocs:
        url: >-
          https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/ws-streams/public#rpi-diff-book-depth-streams
      x-connectors-examples:
        ts: >-
          https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-usds-futures/examples/websocket-streams/PublicApi/rpiDiffBookDepthStreams.ts
        rust: >-
          https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_usds_futures/websocket_streams/public_api/rpi_diff_book_depth_streams.rs
        python: >-
          https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_usds_futures/examples/websocket_streams/Public/rpi_diff_book_depth_streams.py
        java: >-
          https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-usds-futures/src/main/java/com/binance/connector/client/derivatives_trading_usds_futures/websocket/stream/websocketmarketstreams/public/RpiDiffBookDepthStreamsExample.java
        go: >-
          https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingusdsfutures/examples/websocketstreams//PublicAPI/RpiDiffBookDepthStreams/RpiDiffBookDepthStreams.go
      x-update-speed: 500ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: Unique WebSocket request ID.
          x-description-cn: 唯一 WebSocket 请求 ID。
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: The symbol parameter
          x-description-cn: 交易对参数。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket Streams method name.
                  x-description-cn: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: List of streams to subscribe to.
                  x-description-cn: 要订阅的数据流列表。
                  example:
                    - btcusdt@rpiDepth@500ms
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: Unique WebSocket request ID.
                  x-description-cn: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@rpiDepth@500ms
              id: e9d6b4349871b40611412680b3445fac
      x-response-notes: >-
        - RPI(Retail Price Improvement) orders are included and aggreated in the response message. When the quantity of
        a price level to be updated is equal to 0, it means either all quotations for this price have been
        filled/canceled, or the quantity of crossed RPI orders for this price are hidden
      x-response-notes-cn: "- RPI（零售价格改进）订单被包含在响应消息中并进行归集。当要更新的价格级别的数量等于0时，表示该价格的所有报价已被成交/取消，或者该价格的交叉RPI订单的数量被隐藏。"
      responses:
        Raw Stream:
          description: RPI Diff. Book Depth Streams
          x-description-cn: RPI 增量深度流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: depthUpdate
                    description: Event type
                    x-description-cn: 事件类型
                  E:
                    type: integer
                    example: 123456789
                    format: int64
                    description: Event time
                    x-description-cn: 事件时间
                  T:
                    type: integer
                    example: 123456788
                    format: int64
                    description: Transaction time
                    x-description-cn: 撮合时间
                  s:
                    type: string
                    example: BNBUSDT
                    description: Symbol
                    x-description-cn: 交易对
                  U:
                    type: integer
                    example: 157
                    format: int64
                    description: First update ID in event
                    x-description-cn: 从上次推送至今新增的第一个 update Id
                  u:
                    type: integer
                    example: 160
                    format: int64
                    description: Final update ID in event
                    x-description-cn: 从上次推送至今新增的最后一个 update Id
                  pu:
                    type: integer
                    example: 149
                    format: int64
                    description: Final update Id in last stream(ie `u` in last stream)
                    x-description-cn: 上次推送的最后一个update Id(即上条消息的‘u’)
                  b:
                    type: array
                    items:
                      type: array
                      items:
                        type: string
                        example: "0.0024"
                    description: Bids to be updated
                    x-description-cn: 变动的买单深度
                  a:
                    type: array
                    items:
                      type: array
                      items:
                        type: string
                        example: "0.0026"
                    description: Asks to be updated
                    x-description-cn: 变动的卖单深度
                  ps:
                    type: string
                    example: BTCUSDT
                    description: (After CM migration) Pair symbol
                    x-description-cn: (迁移后新增) 标的交易对
                  st:
                    type: integer
                    example: 1
                    description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                    x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: depthUpdate
                E: 123456789
                T: 123456788
                s: BNBUSDT
                U: 157
                u: 160
                pu: 149
                b:
                  - - "0.0024"
                a:
                  - - "0.0026"
                ps: BTCUSDT
                st: 1
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@rpiDepth@500ms
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: depthUpdate
                        description: Event type
                        x-description-cn: 事件类型
                      E:
                        type: integer
                        example: 123456789
                        format: int64
                        description: Event time
                        x-description-cn: 事件时间
                      T:
                        type: integer
                        example: 123456788
                        format: int64
                        description: Transaction time
                        x-description-cn: 撮合时间
                      s:
                        type: string
                        example: BNBUSDT
                        description: Symbol
                        x-description-cn: 交易对
                      U:
                        type: integer
                        example: 157
                        format: int64
                        description: First update ID in event
                        x-description-cn: 从上次推送至今新增的第一个 update Id
                      u:
                        type: integer
                        example: 160
                        format: int64
                        description: Final update ID in event
                        x-description-cn: 从上次推送至今新增的最后一个 update Id
                      pu:
                        type: integer
                        example: 149
                        format: int64
                        description: Final update Id in last stream(ie `u` in last stream)
                        x-description-cn: 上次推送的最后一个update Id(即上条消息的‘u’)
                      b:
                        type: array
                        items:
                          type: array
                          items:
                            type: string
                            example: "0.0024"
                        description: Bids to be updated
                        x-description-cn: 变动的买单深度
                      a:
                        type: array
                        items:
                          type: array
                          items:
                            type: string
                            example: "0.0026"
                        description: Asks to be updated
                        x-description-cn: 变动的卖单深度
                      ps:
                        type: string
                        example: BTCUSDT
                        description: (After CM migration) Pair symbol
                        x-description-cn: (迁移后新增) 标的交易对
                      st:
                        type: integer
                        example: 1
                        description: "(After CM migration) Symbol type: 1 = UM, 2 = CM"
                        x-description-cn: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@rpiDepth@500ms
                data:
                  e: depthUpdate
                  E: 123456789
                  T: 123456788
                  s: BNBUSDT
                  U: 157
                  u: 160
                  pu: 149
                  b:
                    - - "0.0024"
                  a:
                    - - "0.0026"
                  ps: BTCUSDT
                  st: 1
components:
  schemas:
    accountConfigUpdate:
      type: object
      properties:
        e:
          type: string
          enum:
            - ACCOUNT_CONFIG_UPDATE
          description: Event Type
          x-description-cn: 事件类型
        E:
          type: integer
          example: 1611646737479
          format: int64
          description: Event Time
          x-description-cn: 事件时间
        T:
          type: integer
          example: 1611646737476
          format: int64
          description: Transaction Time
          x-description-cn: 撮合时间
        ac:
          type: object
          properties:
            s:
              type: string
              example: BTCUSDT
              description: Symbol
              x-description-cn: 交易对
            l:
              type: integer
              example: 25
              format: int64
              description: Leverage
              x-description-cn: 杠杆倍数
        ai:
          type: object
          description: User's Account Configuration
          x-description-cn: 用户账户配置
          properties:
            j:
              type: boolean
              example: true
              description: Multi-Assets Mode
              x-description-cn: 联合保证金状态
    accountUpdate:
      type: object
      properties:
        e:
          type: string
          enum:
            - ACCOUNT_UPDATE
          description: Event Type
          x-description-cn: 事件类型
        E:
          type: integer
          example: 1564745798939
          format: int64
          description: Event Time
          x-description-cn: 事件时间
        T:
          type: integer
          example: 1564745798938
          format: int64
          description: Transaction
          x-description-cn: 撮合时间
        a:
          type: object
          description: Update Data
          x-description-cn: 账户更新事件
          properties:
            m:
              type: string
              example: ORDER
              description: Event reason type
              x-description-cn: 事件推出原因
              enum:
                - DEPOSIT
                - WITHDRAW
                - ORDER
                - FUNDING_FEE
                - WITHDRAW_REJECT
                - ADJUSTMENT
                - INSURANCE_CLEAR
                - ADMIN_DEPOSIT
                - ADMIN_WITHDRAW
                - MARGIN_TRANSFER
                - MARGIN_TYPE_CHANGE
                - ASSET_TRANSFER
                - OPTIONS_PREMIUM_FEE
                - OPTIONS_SETTLE_PROFIT
                - AUTO_EXCHANGE
                - COIN_SWAP_DEPOSIT
                - COIN_SWAP_WITHDRAW
            B:
              type: array
              description: Balances
              x-description-cn: 余额信息
              items:
                type: object
                properties:
                  a:
                    type: string
                    example: USDT
                    description: Asset
                    x-description-cn: 资产名称
                  wb:
                    type: string
                    example: "122624.12345678"
                    description: Wallet Balance
                    x-description-cn: 钱包余额
                  cw:
                    type: string
                    example: "100.12345678"
                    description: Cross Wallet Balance
                    x-description-cn: 除去逐仓仓位保证金的钱包余额
                  bc:
                    type: string
                    example: "50.12345678"
                    description: Balance Change except PnL and Commission
                    x-description-cn: 除去盈亏与交易手续费以外的钱包余额改变量
            P:
              type: array
              items:
                type: object
                properties:
                  s:
                    type: string
                    example: BTCUSDT
                    description: Symbol
                    x-description-cn: 交易对
                  pa:
                    type: string
                    example: "0"
                    description: Position Amount
                    x-description-cn: 仓位
                  ep:
                    type: string
                    example: "0.00000"
                    description: Entry Price
                    x-description-cn: 入仓价格
                  bep:
                    type: string
                    example: "0"
                    description: Breakeven Price
                    x-description-cn: 盈亏平衡价
                  cr:
                    type: string
                    example: "200"
                    description: (Pre-fee) Accumulated Realized
                    x-description-cn: (费前)累计实现损益
                  up:
                    type: string
                    example: "0"
                    description: Unrealized PnL
                    x-description-cn: 持仓未实现盈亏
                  mt:
                    type: string
                    example: isolated
                    description: Margin Type
                    x-description-cn: 保证金模式
                  iw:
                    type: string
                    example: "0.00000000"
                    description: Isolated Wallet (if isolated position)
                    x-description-cn: 若为逐仓，仓位保证金
                  ps:
                    type: string
                    example: BOTH
                    description: Position Side
                    x-description-cn: 持仓方向
    algoUpdate:
      type: object
      properties:
        e:
          type: string
          enum:
            - ALGO_UPDATE
          description: Event Type
          x-description-cn: 事件类型
        T:
          type: integer
          example: 1750515742297
          format: int64
          description: Transaction Time
          x-description-cn: 撮合时间
        E:
          type: integer
          example: 1750515742303
          format: int64
          description: Event Time
          x-description-cn: 事件时间
        o:
          type: object
          properties:
            caid:
              type: string
              example: Q5xaq5EGKgXXa0fD7fs0Ip
              description: Client Algo Id
              x-description-cn: 客户端自定条件订单ID
            aid:
              type: integer
              example: 2148719
              format: int64
              description: Algo Id
              x-description-cn: 条件单 Id
            at:
              type: string
              example: CONDITIONAL
              description: Algo Type
              x-description-cn: 条件单类型
            o:
              type: string
              example: TAKE_PROFIT
              description: Order Type
              x-description-cn: 订单类型
            s:
              type: string
              example: BNBUSDT
              description: Symbol
              x-description-cn: 交易对
            S:
              type: string
              example: SELL
              description: Side
              x-description-cn: 订单方向
            ps:
              type: string
              example: BOTH
              description: Position Side
              x-description-cn: 持仓方向
            f:
              type: string
              example: GTC
              description: Time in force
              x-description-cn: 有效方式
            q:
              type: string
              example: "0.01"
              description: Quantity
              x-description-cn: 订单数量
            X:
              type: string
              example: CANCELED
              description: Algo Status
              x-description-cn: 条件单状态
            ai:
              type: string
              example: ""
              description: Order Id
              x-description-cn: 触发后普通订单 id
            ap:
              type: string
              example: "0.00000"
              description: Avg fill price in matching engine, only display when order is triggered and placed in matching engine
              x-description-cn: 触发后在撮合引擎中实际订单的平均成交价格，仅在订单被触发并进入撮合引擎时显示
            aq:
              type: string
              example: "0.00000"
              description: Executed quantity in matching engine, only display when order is triggered and placed in matching engine
              x-description-cn: 触发后在撮合引擎中实际订单已成交数量，仅当订单被触发并进入撮合引擎时显示
            act:
              type: string
              example: "0"
              description: Actual order type in matching engine, only display when order is triggered and placed in matching engine
              x-description-cn: 触发后在撮合引擎中实际的订单类型，仅当订单被触发并进入撮合引擎时显示
            tp:
              type: string
              example: "750"
              description: Trigger Price
              x-description-cn: 条件单触发价格
            p:
              type: string
              example: "750"
              description: Order Price
              x-description-cn: 订单价格
            V:
              type: string
              example: EXPIRE_MAKER
              description: STP mode
              x-description-cn: 自成交防止模式
            wt:
              type: string
              example: CONTRACT_PRICE
              description: Working type
              x-description-cn: 触发价类型
            pm:
              type: string
              example: NONE
              description: Price match mode
              x-description-cn: 价格匹配模式
            cp:
              type: boolean
              example: false
              description: If Close-All
              x-description-cn: 是否为触发平仓单; 仅在条件订单情况下会推送此字段
            pP:
              type: boolean
              example: false
              description: If price protection is turned on
              x-description-cn: 是否开启条件单触发保护
            R:
              type: boolean
              example: false
              description: Is this reduce only
              x-description-cn: 是否是只减仓单
            tt:
              type: integer
              example: 0
              format: int64
              description: Trigger time
              x-description-cn: 触发时间
            gtd:
              type: integer
              example: 0
              format: int64
              description: Good till time for GTD time in force
              x-description-cn: TIF为GTD的订单自动取消时间
            rm:
              type: string
              example: Reduce Only reject
              description: Algo order failed reason
              x-description-cn: 条件单失败原因
    conditionalOrderTriggerReject:
      type: object
      properties:
        e:
          type: string
          enum:
            - CONDITIONAL_ORDER_TRIGGER_REJECT
          description: Event Type
          x-description-cn: 事件类型
        E:
          type: integer
          example: 1685517224945
          format: int64
          description: Event Time
          x-description-cn: 事件时间
        T:
          type: integer
          example: 1685517224955
          format: int64
          description: Message send time
          x-description-cn: 消息发送时间
        or:
          type: object
          properties:
            s:
              type: string
              example: ETHUSDT
              description: Symbol
              x-description-cn: 交易对
            i:
              type: integer
              example: 155618472834
              format: int64
              description: Order Id
              x-description-cn: 订单号
            r:
              type: string
              example: >-
                Due to the order could not be filled immediately, the FOK order has been rejected. The order will not be
                recorded in the order history
              description: Reject Reason
              x-description-cn: 拒绝原因
    gridUpdate:
      type: object
      properties:
        e:
          type: string
          enum:
            - GRID_UPDATE
          description: Event Type
          x-description-cn: 事件类型
        T:
          type: integer
          example: 1669262908216
          format: int64
          description: Transaction Time
          x-description-cn: 撮合时间
        E:
          type: integer
          example: 1669262908218
          format: int64
          description: Event Time
          x-description-cn: 事件时间
        gu:
          type: object
          properties:
            si:
              type: integer
              example: 176057039
              format: int64
              description: Strategy ID
              x-description-cn: 策略 ID
            st:
              type: string
              example: GRID
              description: Strategy Type
              x-description-cn: 策略类型
            ss:
              type: string
              example: WORKING
              description: Strategy Status
              x-description-cn: 策略状态
            s:
              type: string
              example: BTCUSDT
              description: Symbol
              x-description-cn: 交易对
            r:
              type: string
              example: "-0.00300716"
              description: Realized PNL
              x-description-cn: 已实现 PNL
            up:
              type: string
              example: "16720"
              description: Unmatched Average Price
              x-description-cn: 未配对均价
            uq:
              type: string
              example: "-0.001"
              description: Unmatched Qty
              x-description-cn: 未配对数量
            uf:
              type: string
              example: "-0.00300716"
              description: Unmatched Fee
              x-description-cn: 未配对手续费
            mp:
              type: string
              example: "0.0"
              description: Matched PNL
              x-description-cn: 已配对 PNL
            ut:
              type: integer
              example: 1669262908197
              format: int64
              description: Update Time
              x-description-cn: 更新时间
    listenKeyExpired:
      type: object
      x-notes: >-
        This event is not related to the websocket disconnection. This event will be received only when a valid
        listenKey in connection got expired. No more user data event will be updated after this event received until a
        new valid listenKey used.
      x-notes-cn: 此事件与 WebSocket 断开连接无关。仅当连接中的有效 listenKey 过期时才会收到此事件。收到此事件后，在使用新的有效 listenKey 之前，不会再收到用户数据事件更新。
      properties:
        e:
          type: string
          enum:
            - listenKeyExpired
          description: Event Type
          x-description-cn: 事件类型
        E:
          type: integer
          format: int64
          example: 1736996475556
          description: Event Time
          x-description-cn: 事件时间
        listenKey:
          type: string
          example: WsCMN0a4KHUPTQuX6IUnqEZfB1inxmv1qR4kbf1LuEjur5VdbzqvyxqG9TSjVVxv
    marginCall:
      type: object
      properties:
        e:
          type: string
          enum:
            - MARGIN_CALL
          description: Event Type
          x-description-cn: 事件类型
        E:
          type: integer
          example: 1587727187525
          format: int64
          description: Event Time
          x-description-cn: 事件时间
        cw:
          type: string
          example: "3.16812045"
          description: Cross Wallet Balance. Only pushed with crossed position margin call
          x-description-cn: 除去逐仓仓位保证金的钱包余额, 仅在全仓 margin call 情况下推送此字段
        p:
          type: array
          description: Position(s) of Margin Call
          x-description-cn: 涉及持仓
          items:
            type: object
            properties:
              s:
                type: string
                example: ETHUSDT
                description: Symbol
                x-description-cn: Symbol
              ps:
                type: string
                example: LONG
                description: Position Side
                x-description-cn: 持仓方向
              pa:
                type: string
                example: "1.327"
                description: Position Amount
                x-description-cn: 仓位
              mt:
                type: string
                example: CROSSED
                description: Margin Type
                x-description-cn: 保证金模式
              iw:
                type: string
                example: "0"
                description: Isolated Wallet (if isolated position)
                x-description-cn: 若为逐仓，仓位保证金
              mp:
                type: string
                example: "187.17127"
                description: Mark Price
                x-description-cn: 标记价格
              up:
                type: string
                example: "-1.166074"
                description: Unrealized PnL
                x-description-cn: 未实现盈亏
              mm:
                type: string
                example: "1.614445"
                description: Maintenance Margin Required
                x-description-cn: 持仓需要的维持保证金
    orderTradeUpdate:
      type: object
      properties:
        e:
          type: string
          enum:
            - ORDER_TRADE_UPDATE
          description: Event Type
          x-description-cn: 事件类型
        E:
          type: integer
          example: 1568879465651
          format: int64
          description: Event Time
          x-description-cn: 事件时间
        T:
          type: integer
          example: 1568879465650
          format: int64
          description: Transaction Time
          x-description-cn: 撮合时间
        o:
          type: object
          properties:
            s:
              type: string
              example: BTCUSDT
              description: Symbol
              x-description-cn: 交易对
            c:
              type: string
              example: TEST
              description: Client Order Id
              x-description-cn: 客户端自定订单ID
            S:
              type: string
              example: SELL
              description: Side
              x-description-cn: 订单方向
            o:
              type: string
              example: TRAILING_STOP_MARKET
              description: Order Type
              x-description-cn: 订单类型
            f:
              type: string
              example: GTC
              description: Time in Force
              x-description-cn: 有效方式
            q:
              type: string
              example: "0.001"
              description: Original Quantity
              x-description-cn: 订单原始数量
            p:
              type: string
              example: "0"
              description: Original Price
              x-description-cn: 订单原始价格
            ap:
              type: string
              example: "0"
              description: Average Price
              x-description-cn: 订单平均价格
            sp:
              type: string
              example: "7103.04"
              description: Stop Price. Please ignore with TRAILING_STOP_MARKET order
              x-description-cn: 条件订单触发价格，对追踪止损单无效
            x:
              type: string
              example: NEW
              description: Execution Type
              x-description-cn: 本次事件的具体执行类型
            X:
              type: string
              example: NEW
              description: Order Status
              x-description-cn: 订单的当前状态
            i:
              type: integer
              example: 8886774
              format: int64
              description: Order Id
              x-description-cn: 订单ID
            l:
              type: string
              example: "0"
              description: Order Last Filled Quantity
              x-description-cn: 订单末次成交量
            z:
              type: string
              example: "0"
              description: Order Filled Accumulated Quantity
              x-description-cn: 订单累计已成交量
            L:
              type: string
              example: "0"
              description: Last Filled Price
              x-description-cn: 订单末次成交价格
            "N":
              type: string
              example: USDT
              description: Commission Asset
              x-description-cn: 手续费资产类型
            "n":
              type: string
              example: "0"
              description: Commission
              x-description-cn: 手续费数量
            T:
              type: integer
              example: 1568879465650
              format: int64
              description: Order Trade Time
              x-description-cn: 成交时间
            t:
              type: integer
              example: 0
              format: int64
              description: Trade Id
              x-description-cn: 成交ID
            b:
              type: string
              example: "0"
              description: Bids Notional
              x-description-cn: 买单净值
            a:
              type: string
              example: "9.91"
              description: Ask Notional
              x-description-cn: 卖单净值
            m:
              type: boolean
              example: false
              description: Is this trade the maker side?
              x-description-cn: 该成交是作为挂单成交吗？
            R:
              type: boolean
              example: false
              description: Is this reduce only
              x-description-cn: 是否是只减仓单
            wt:
              type: string
              example: CONTRACT_PRICE
              description: Stop Price Working Type
              x-description-cn: 触发价类型
            ot:
              type: string
              example: TRAILING_STOP_MARKET
              description: Original Order Type
              x-description-cn: 原始订单类型
            ps:
              type: string
              example: LONG
              description: Position Side
              x-description-cn: 持仓方向
            cp:
              type: boolean
              example: false
              description: If Close-All, pushed with conditional order
              x-description-cn: 是否为触发平仓单; 仅在条件订单情况下会推送此字段
            AP:
              type: string
              example: "7476.89"
              description: Activation Price, only pushed with TRAILING_STOP_MARKET order
              x-description-cn: 追踪止损激活价格, 仅在追踪止损单时会推送此字段
            cr:
              type: string
              example: "5.0"
              description: Callback Rate, only pushed with TRAILING_STOP_MARKET order
              x-description-cn: 追踪止损回调比例, 仅在追踪止损单时会推送此字段
            pP:
              type: boolean
              example: false
              description: If price protection is turned on
              x-description-cn: 是否开启条件单触发保护
            si:
              type: integer
              example: 0
              format: int64
              description: ignore
              x-description-cn: 忽略
            ss:
              type: integer
              example: 0
              format: int64
              description: ignore
              x-description-cn: 忽略
            rp:
              type: string
              example: "0"
              description: Realized Profit of the trade
              x-description-cn: 该交易实现盈亏
            V:
              type: string
              example: EXPIRE_TAKER
              description: STP mode
              x-description-cn: 自成交防止模式
            pm:
              type: string
              example: OPPONENT
              description: Price match mode
              x-description-cn: 价格匹配模式
            gtd:
              type: integer
              example: 0
              format: int64
              description: TIF GTD order auto cancel time
              x-description-cn: TIF为GTD的订单自动取消时间
            er:
              type: string
              example: "0"
              description: Expiry Reason
              x-description-cn: 过期原因
    strategyUpdate:
      type: object
      properties:
        e:
          type: string
          enum:
            - STRATEGY_UPDATE
          description: Event Type
          x-description-cn: 事件类型
        T:
          type: integer
          example: 1669261797627
          format: int64
          description: Transaction Time
          x-description-cn: 撮合时间
        E:
          type: integer
          example: 1669261797628
          format: int64
          description: Event Time
          x-description-cn: 事件时间
        su:
          type: object
          properties:
            si:
              type: integer
              example: 176054594
              format: int64
              description: Strategy ID
              x-description-cn: 策略 ID
            st:
              type: string
              example: GRID
              description: Strategy Type
              x-description-cn: 策略类型
            ss:
              type: string
              example: NEW
              description: Strategy Status
              x-description-cn: 策略状态
            s:
              type: string
              example: BTCUSDT
              description: Symbol
              x-description-cn: 交易对
            ut:
              type: integer
              example: 1669261797627
              format: int64
              description: Update Time
              x-description-cn: 更新时间
            c:
              type: integer
              example: 8007
              format: int64
              description: opCode
              x-description-cn: opCode
    tradeLite:
      type: object
      properties:
        e:
          type: string
          enum:
            - TRADE_LITE
          description: Event Type
          x-description-cn: 事件类型
        E:
          type: integer
          example: 1721895408092
          format: int64
          description: Event Time
          x-description-cn: 事件时间
        T:
          type: integer
          example: 1721895408214
          format: int64
          description: Transaction Time
          x-description-cn: 交易时间
        s:
          type: string
          example: BTCUSDT
          description: Symbol
          x-description-cn: 交易对
        q:
          type: string
          example: "0.001"
          description: Original Quantity
          x-description-cn: 订单原始数量
        p:
          type: string
          example: "0"
          description: Original Price
          x-description-cn: 订单原始价格
        m:
          type: boolean
          example: false
          description: Is this trade the maker side?
          x-description-cn: 该成交是作为挂单成交吗？
        c:
          type: string
          example: z8hcUoOsqEdKMeKPSABslD
          description: Client Order Id
          x-description-cn: 客户端自定订单ID
        S:
          type: string
          example: BUY
          description: Side
          x-description-cn: 订单方向
        L:
          type: string
          example: "64089.20"
          description: Last Filled Price
          x-description-cn: 订单末次成交价格
        l:
          type: string
          example: "0.040"
          description: Order Last Filled Quantity
          x-description-cn: 订单末次成交量
        t:
          type: integer
          example: 109100866
          format: int64
          description: Trade Id
          x-description-cn: 成交ID
        i:
          type: integer
          example: 8886774
          format: int64
          description: Order Id
          x-description-cn: 订单ID
    User Data Stream Events:
      oneOf:
        - $ref: "#/components/schemas/accountConfigUpdate"
        - $ref: "#/components/schemas/accountUpdate"
        - $ref: "#/components/schemas/algoUpdate"
        - $ref: "#/components/schemas/conditionalOrderTriggerReject"
        - $ref: "#/components/schemas/gridUpdate"
        - $ref: "#/components/schemas/listenKeyExpired"
        - $ref: "#/components/schemas/marginCall"
        - $ref: "#/components/schemas/orderTradeUpdate"
        - $ref: "#/components/schemas/strategyUpdate"
        - $ref: "#/components/schemas/tradeLite"
      discriminator:
        propertyName: e
        mapping:
          ACCOUNT_CONFIG_UPDATE: "#/components/schemas/accountConfigUpdate"
          ACCOUNT_UPDATE: "#/components/schemas/accountUpdate"
          ALGO_UPDATE: "#/components/schemas/algoUpdate"
          CONDITIONAL_ORDER_TRIGGER_REJECT: "#/components/schemas/conditionalOrderTriggerReject"
          GRID_UPDATE: "#/components/schemas/gridUpdate"
          listenKeyExpired: "#/components/schemas/listenKeyExpired"
          MARGIN_CALL: "#/components/schemas/marginCall"
          ORDER_TRADE_UPDATE: "#/components/schemas/orderTradeUpdate"
          STRATEGY_UPDATE: "#/components/schemas/strategyUpdate"
          TRADE_LITE: "#/components/schemas/tradeLite"
