openapi: 3.0.2
info:
  title: Futures (COIN-M) WebSocket Market Streams
  description: 访问市场数据、管理账户，并交易 COIN-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-untagged-label: true
x-user-data-streams: true
externalDocs:
  description: Futures (COIN-M) docs
  url: https://developers.binance.com/en/docs/products/derivatives-trading-coin-futures/general-info
servers:
  - url: wss://dstream.binance.com
  - url: wss://dstream.binancefuture.com
paths:
  /{symbol}@aggTrade:
    post:
      summary: 归集交易
      description: |-
        归集成交流推送市场成交信息, 每100毫秒为一个时间窗口, 将同一价格和买卖方向的成交进行归集。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      operationId: aggregateTradeStreams
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#aggregate-trade-streams
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//aggregateTradeStreams.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//aggregate_trade_streams.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//aggregate_trade_streams.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//AggregateTradeStreamsExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//AggregateTradeStreams/AggregateTradeStreams.go
      x-update-speed: 100ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@aggTrade
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@aggTrade
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 归集成交流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: aggTrade
                    enum:
                      - aggTrade
                    description: 事件类型
                  E:
                    type: integer
                    example: 1591261134288
                    format: int64
                    description: 事件时间
                  a:
                    type: integer
                    example: 424951
                    format: int64
                    description: 归集成交ID
                  s:
                    type: string
                    example: BTCUSD_200626
                    description: 交易对
                  p:
                    type: string
                    example: '9643.5'
                    description: 成交价格
                  q:
                    type: string
                    example: '2'
                    description: 成交量
                  f:
                    type: integer
                    example: 606073
                    format: int64
                    description: 被归集的首个交易ID
                  l:
                    type: integer
                    example: 606073
                    format: int64
                    description: 被归集的末次交易ID
                  T:
                    type: integer
                    example: 1591261134199
                    format: int64
                    description: 成交时间
                  m:
                    type: boolean
                    example: false
                    description: 买方是否是做市方。如true,则此次成交是一个主动卖出单,否则是一个主动买入单。
                  st:
                    type: integer
                    example: 1
                    description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: aggTrade
                E: 1591261134288
                a: 424951
                s: BTCUSD_200626
                p: '9643.5'
                q: '2'
                f: 606073
                l: 606073
                T: 1591261134199
                m: false
                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
                        enum:
                          - aggTrade
                        description: 事件类型
                      E:
                        type: integer
                        example: 1591261134288
                        format: int64
                        description: 事件时间
                      a:
                        type: integer
                        example: 424951
                        format: int64
                        description: 归集成交ID
                      s:
                        type: string
                        example: BTCUSD_200626
                        description: 交易对
                      p:
                        type: string
                        example: '9643.5'
                        description: 成交价格
                      q:
                        type: string
                        example: '2'
                        description: 成交量
                      f:
                        type: integer
                        example: 606073
                        format: int64
                        description: 被归集的首个交易ID
                      l:
                        type: integer
                        example: 606073
                        format: int64
                        description: 被归集的末次交易ID
                      T:
                        type: integer
                        example: 1591261134199
                        format: int64
                        description: 成交时间
                      m:
                        type: boolean
                        example: false
                        description: 买方是否是做市方。如true,则此次成交是一个主动卖出单,否则是一个主动买入单。
                      st:
                        type: integer
                        example: 1
                        description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@aggTrade
                data:
                  e: aggTrade
                  E: 1591261134288
                  a: 424951
                  s: BTCUSD_200626
                  p: '9643.5'
                  q: '2'
                  f: 606073
                  l: 606073
                  T: 1591261134199
                  m: false
                  st: 1
  /!bookTicker:
    post:
      summary: 全市场最优挂单信息
      description: |-
        实时推送所有交易对的最优挂单价格或数量的任何更新。

        > **迁移后**,此 stream 推送合并的 UM + CM universe(`fstream` 与 `dstream` 都可订阅);payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      operationId: allBookTickersStream
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#all-book-tickers-stream
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//allBookTickersStream.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//all_book_tickers_stream.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//all_book_tickers_stream.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//AllBookTickersStreamExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//AllBookTickersStream/AllBookTickersStream.go
      x-update-speed: Real-time
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - '!bookTicker'
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - '!bookTicker'
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 全市场最优挂单流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: bookTicker
                    enum:
                      - bookTicker
                    description: 事件类型
                  u:
                    type: integer
                    example: 17242169
                    format: int64
                    description: 更新ID
                  s:
                    type: string
                    example: BTCUSD_200626
                    description: 交易对
                  b:
                    type: string
                    example: '9548.1'
                    description: 买单最优挂单价格
                  B:
                    type: string
                    example: '52'
                    description: 买单最优挂单数量
                  a:
                    type: string
                    example: '9548.5'
                    description: 卖单最优挂单价格
                  A:
                    type: string
                    example: '11'
                    description: 卖单最优挂单数量
                  T:
                    type: integer
                    example: 1591268628155
                    format: int64
                    description: 撮合时间
                  E:
                    type: integer
                    example: 1591268628166
                    format: int64
                    description: 事件时间
                  ps:
                    type: string
                    example: BTCUSD
                    description: 标的交易对
                  st:
                    type: integer
                    example: 1
                    description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: bookTicker
                u: 17242169
                s: BTCUSD_200626
                b: '9548.1'
                B: '52'
                a: '9548.5'
                A: '11'
                T: 1591268628155
                E: 1591268628166
                ps: BTCUSD
                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
                        enum:
                          - bookTicker
                        description: 事件类型
                      u:
                        type: integer
                        example: 17242169
                        format: int64
                        description: 更新ID
                      s:
                        type: string
                        example: BTCUSD_200626
                        description: 交易对
                      b:
                        type: string
                        example: '9548.1'
                        description: 买单最优挂单价格
                      B:
                        type: string
                        example: '52'
                        description: 买单最优挂单数量
                      a:
                        type: string
                        example: '9548.5'
                        description: 卖单最优挂单价格
                      A:
                        type: string
                        example: '11'
                        description: 卖单最优挂单数量
                      T:
                        type: integer
                        example: 1591268628155
                        format: int64
                        description: 撮合时间
                      E:
                        type: integer
                        example: 1591268628166
                        format: int64
                        description: 事件时间
                      ps:
                        type: string
                        example: BTCUSD
                        description: 标的交易对
                      st:
                        type: integer
                        example: 1
                        description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: '!bookTicker'
                data:
                  e: bookTicker
                  u: 17242169
                  s: BTCUSD_200626
                  b: '9548.1'
                  B: '52'
                  a: '9548.5'
                  A: '11'
                  T: 1591268628155
                  E: 1591268628166
                  ps: BTCUSD
                  st: 1
  /!forceOrder@arr:
    post:
      summary: 全市场强平订单
      description: |-
        全市场强平订单快照流推送全市场所有交易对的强平订单信息。每个交易对在 1000ms 内只会推送最新的一笔强平订单作为快照，如果 1000ms 内没有发生强平，则不会推送任何流。

        > **迁移后**,此 stream 推送合并的 UM + CM universe(`fstream` 与 `dstream` 都可订阅);payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      operationId: allMarketLiquidationOrderStreams
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#all-market-liquidation-order-streams
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//allMarketLiquidationOrderStreams.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//all_market_liquidation_order_streams.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//all_market_liquidation_order_streams.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//AllMarketLiquidationOrderStreamsExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//AllMarketLiquidationOrderStreams/AllMarketLiquidationOrderStreams.go
      x-update-speed: 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - '!forceOrder@arr'
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - '!forceOrder@arr'
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 全市场强平订单流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: forceOrder
                    enum:
                      - forceOrder
                    description: 事件类型
                  E:
                    type: integer
                    example: 1591154240950
                    format: int64
                    description: 事件时间
                  o:
                    type: object
                    properties:
                      s:
                        type: string
                        example: BTCUSD_200925
                        description: 交易对
                      ps:
                        type: string
                        example: BTCUSD
                        description: 标的交易对
                      S:
                        type: string
                        example: SELL
                        description: 订单方向
                      o:
                        type: string
                        example: LIMIT
                        description: 订单类型
                      f:
                        type: string
                        example: IOC
                        description: 有效方式
                      q:
                        type: string
                        example: '1'
                        description: 订单数量
                      p:
                        type: string
                        example: '9425.5'
                        description: 订单价格
                      ap:
                        type: string
                        example: '9496.5'
                        description: 平均价格
                      X:
                        type: string
                        example: FILLED
                        description: 订单状态
                      l:
                        type: string
                        example: '1'
                        description: 订单最近成交量
                      z:
                        type: string
                        example: '1'
                        description: 订单累计成交量
                      T:
                        type: integer
                        example: 1591154240949
                        format: int64
                        description: 交易时间
                    description: 订单类型
                  st:
                    type: integer
                    example: 1
                    description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: forceOrder
                E: 1591154240950
                o:
                  s: BTCUSD_200925
                  ps: BTCUSD
                  S: SELL
                  o: LIMIT
                  f: IOC
                  q: '1'
                  p: '9425.5'
                  ap: '9496.5'
                  X: FILLED
                  l: '1'
                  z: '1'
                  T: 1591154240949
                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
                        enum:
                          - forceOrder
                        description: 事件类型
                      E:
                        type: integer
                        example: 1591154240950
                        format: int64
                        description: 事件时间
                      o:
                        type: object
                        properties:
                          s:
                            type: string
                            example: BTCUSD_200925
                            description: 交易对
                          ps:
                            type: string
                            example: BTCUSD
                            description: 标的交易对
                          S:
                            type: string
                            example: SELL
                            description: 订单方向
                          o:
                            type: string
                            example: LIMIT
                            description: 订单类型
                          f:
                            type: string
                            example: IOC
                            description: 有效方式
                          q:
                            type: string
                            example: '1'
                            description: 订单数量
                          p:
                            type: string
                            example: '9425.5'
                            description: 订单价格
                          ap:
                            type: string
                            example: '9496.5'
                            description: 平均价格
                          X:
                            type: string
                            example: FILLED
                            description: 订单状态
                          l:
                            type: string
                            example: '1'
                            description: 订单最近成交量
                          z:
                            type: string
                            example: '1'
                            description: 订单累计成交量
                          T:
                            type: integer
                            example: 1591154240949
                            format: int64
                            description: 交易时间
                        description: 订单类型
                      st:
                        type: integer
                        example: 1
                        description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: '!forceOrder@arr'
                data:
                  e: forceOrder
                  E: 1591154240950
                  o:
                    s: BTCUSD_200925
                    ps: BTCUSD
                    S: SELL
                    o: LIMIT
                    f: IOC
                    q: '1'
                    p: '9425.5'
                    ap: '9496.5'
                    X: FILLED
                    l: '1'
                    z: '1'
                    T: 1591154240949
                  st: 1
  /!miniTicker@arr:
    post:
      summary: 全市场的精简Ticker
      description: |-
        所有交易对的24小时滚动窗口精简Ticker统计。这些不是UTC日的统计数据，而是从请求时间到24小时前的24小时滚动窗口。请注意，只有发生变化的Ticker才会出现在数组中。

        > **迁移后**,此 stream 推送合并的 UM + CM universe(`fstream` 与 `dstream` 都可订阅);payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      operationId: allMarketMiniTickersStream
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#all-market-mini-tickers-stream
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//allMarketMiniTickersStream.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//all_market_mini_tickers_stream.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//all_market_mini_tickers_stream.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//AllMarketMiniTickersStreamExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//AllMarketMiniTickersStream/AllMarketMiniTickersStream.go
      x-update-speed: 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - '!miniTicker@arr'
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - '!miniTicker@arr'
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 全市场精简行情流
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    e:
                      type: string
                      example: 24hrMiniTicker
                      enum:
                        - 24hrMiniTicker
                      description: 事件类型
                    E:
                      type: integer
                      example: 1591267704450
                      format: int64
                      description: 事件时间
                    s:
                      type: string
                      example: BTCUSD_200626
                      description: 交易对
                    ps:
                      type: string
                      example: BTCUSD
                      description: 标的交易对
                    c:
                      type: string
                      example: '9561.7'
                      description: 最新成交价格
                    o:
                      type: string
                      example: '9580.9'
                      description: 24小时前开始第一笔成交价格
                    h:
                      type: string
                      example: '10000.0'
                      description: 24小时内最高成交价
                    l:
                      type: string
                      example: '7000.0'
                      description: 24小时内最低成交价
                    v:
                      type: string
                      example: '487476'
                      description: 24小时成交量
                    q:
                      type: string
                      example: '33264343847.22378500'
                      description: 24小时成交额(标的数量)
                    st:
                      type: integer
                      example: 1
                      description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                - e: 24hrMiniTicker
                  E: 1591267704450
                  s: BTCUSD_200626
                  ps: BTCUSD
                  c: '9561.7'
                  o: '9580.9'
                  h: '10000.0'
                  l: '7000.0'
                  v: '487476'
                  q: '33264343847.22378500'
                  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
                          enum:
                            - 24hrMiniTicker
                          description: 事件类型
                        E:
                          type: integer
                          example: 1591267704450
                          format: int64
                          description: 事件时间
                        s:
                          type: string
                          example: BTCUSD_200626
                          description: 交易对
                        ps:
                          type: string
                          example: BTCUSD
                          description: 标的交易对
                        c:
                          type: string
                          example: '9561.7'
                          description: 最新成交价格
                        o:
                          type: string
                          example: '9580.9'
                          description: 24小时前开始第一笔成交价格
                        h:
                          type: string
                          example: '10000.0'
                          description: 24小时内最高成交价
                        l:
                          type: string
                          example: '7000.0'
                          description: 24小时内最低成交价
                        v:
                          type: string
                          example: '487476'
                          description: 24小时成交量
                        q:
                          type: string
                          example: '33264343847.22378500'
                          description: 24小时成交额(标的数量)
                        st:
                          type: integer
                          example: 1
                          description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: '!miniTicker@arr'
                data:
                  - e: 24hrMiniTicker
                    E: 1591267704450
                    s: BTCUSD_200626
                    ps: BTCUSD
                    c: '9561.7'
                    o: '9580.9'
                    h: '10000.0'
                    l: '7000.0'
                    v: '487476'
                    q: '33264343847.22378500'
                    st: 1
  /!ticker@arr:
    post:
      summary: 全市场的完整Ticker
      description: |-
        24小时滚动窗口的所有交易对的Ticker统计。这些不是UTC日的统计，而是从请求时间到24小时前的24小时滚动窗口。请注意，只有发生变化的Ticker才会出现在数组中。

        > **迁移后**,此 stream 推送合并的 UM + CM universe(`fstream` 与 `dstream` 都可订阅);payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      operationId: allMarketTickersStreams
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#all-market-tickers-streams
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//allMarketTickersStreams.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//all_market_tickers_streams.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//all_market_tickers_streams.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//AllMarketTickersStreamsExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//AllMarketTickersStreams/AllMarketTickersStreams.go
      x-update-speed: 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - '!ticker@arr'
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - '!ticker@arr'
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 全市场行情流
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    e:
                      type: string
                      example: 24hrTicker
                      enum:
                        - 24hrTicker
                      description: 事件类型
                    E:
                      type: integer
                      example: 1591268262453
                      format: int64
                      description: 事件时间
                    s:
                      type: string
                      example: BTCUSD_200626
                      description: 交易对
                    p:
                      type: string
                      example: '-43.4'
                      description: 24小时价格变化
                    P:
                      type: string
                      example: '-0.452'
                      description: 24小时价格变化(百分比)
                    w:
                      type: string
                      example: '0.00147974'
                      description: 24小时平均价格
                    c:
                      type: string
                      example: '9548.5'
                      description: 最新成交价格
                    Q:
                      type: string
                      example: '2'
                      description: 最新成交价格上的成交量
                    o:
                      type: string
                      example: '9591.9'
                      description: 24小时前第一笔成交价格
                    h:
                      type: string
                      example: '10000.0'
                      description: 24小时内最高成交价
                    l:
                      type: string
                      example: '7000.0'
                      description: 24小时内最低成交价
                    v:
                      type: string
                      example: '487850'
                      description: 24小时成交量
                    q:
                      type: string
                      example: '32968676323.46222700'
                      description: 24小时成交额(标的数量)
                    O:
                      type: integer
                      example: 1591181820000
                      format: int64
                      description: 统计开始时间
                    C:
                      type: integer
                      example: 1591268262442
                      format: int64
                      description: 统计关闭时间
                    F:
                      type: integer
                      example: 512014
                      format: int64
                      description: 24小时内第一笔成交交易ID
                    L:
                      type: integer
                      example: 615289
                      format: int64
                      description: 24小时内最后一笔成交交易ID
                    'n':
                      type: integer
                      example: 103272
                      format: int64
                      description: 24小时内成交数
                    ps:
                      type: string
                      example: BTCUSD
                      description: 标的交易对
                    st:
                      type: integer
                      example: 1
                      description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                - e: 24hrTicker
                  E: 1591268262453
                  s: BTCUSD_200626
                  p: '-43.4'
                  P: '-0.452'
                  w: '0.00147974'
                  c: '9548.5'
                  Q: '2'
                  o: '9591.9'
                  h: '10000.0'
                  l: '7000.0'
                  v: '487850'
                  q: '32968676323.46222700'
                  O: 1591181820000
                  C: 1591268262442
                  F: 512014
                  L: 615289
                  'n': 103272
                  ps: BTCUSD
                  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
                          enum:
                            - 24hrTicker
                          description: 事件类型
                        E:
                          type: integer
                          example: 1591268262453
                          format: int64
                          description: 事件时间
                        s:
                          type: string
                          example: BTCUSD_200626
                          description: 交易对
                        p:
                          type: string
                          example: '-43.4'
                          description: 24小时价格变化
                        P:
                          type: string
                          example: '-0.452'
                          description: 24小时价格变化(百分比)
                        w:
                          type: string
                          example: '0.00147974'
                          description: 24小时平均价格
                        c:
                          type: string
                          example: '9548.5'
                          description: 最新成交价格
                        Q:
                          type: string
                          example: '2'
                          description: 最新成交价格上的成交量
                        o:
                          type: string
                          example: '9591.9'
                          description: 24小时前第一笔成交价格
                        h:
                          type: string
                          example: '10000.0'
                          description: 24小时内最高成交价
                        l:
                          type: string
                          example: '7000.0'
                          description: 24小时内最低成交价
                        v:
                          type: string
                          example: '487850'
                          description: 24小时成交量
                        q:
                          type: string
                          example: '32968676323.46222700'
                          description: 24小时成交额(标的数量)
                        O:
                          type: integer
                          example: 1591181820000
                          format: int64
                          description: 统计开始时间
                        C:
                          type: integer
                          example: 1591268262442
                          format: int64
                          description: 统计关闭时间
                        F:
                          type: integer
                          example: 512014
                          format: int64
                          description: 24小时内第一笔成交交易ID
                        L:
                          type: integer
                          example: 615289
                          format: int64
                          description: 24小时内最后一笔成交交易ID
                        'n':
                          type: integer
                          example: 103272
                          format: int64
                          description: 24小时内成交数
                        ps:
                          type: string
                          example: BTCUSD
                          description: 标的交易对
                        st:
                          type: integer
                          example: 1
                          description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: '!ticker@arr'
                data:
                  - e: 24hrTicker
                    E: 1591268262453
                    s: BTCUSD_200626
                    p: '-43.4'
                    P: '-0.452'
                    w: '0.00147974'
                    c: '9548.5'
                    Q: '2'
                    o: '9591.9'
                    h: '10000.0'
                    l: '7000.0'
                    v: '487850'
                    q: '32968676323.46222700'
                    O: 1591181820000
                    C: 1591268262442
                    F: 512014
                    L: 615289
                    'n': 103272
                    ps: BTCUSD
                    st: 1
  /{pair}_{contractType}@continuousKline_{interval}:
    post:
      summary: 连续合约K线
      description: |-
        K线每秒更新

        > **迁移后**,`fstream` 与 `dstream` 都可订阅 UM 或 CM 的 symbol。
      operationId: continuousContractKlineCandlestickStreams
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#continuous-contract-kline-candlestick-streams
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//continuousContractKlineCandlestickStreams.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//continuous_contract_kline_candlestick_streams.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//continuous_contract_kline_candlestick_streams.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//ContinuousContractKlineCandlestickStreamsExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//ContinuousContractKlineCandlestickStreams/ContinuousContractKlineCandlestickStreams.go
      x-update-speed: 250ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: pair
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
        - name: contractType
          in: path
          required: true
          schema:
            type: string
            example: next_quarter
            enum:
              - perpetual
              - current_quarter
              - next_quarter
          description: The contract 类型 parameter
        - 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: 间隔 参数
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt_next_quarter@continuousKline_1m
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt_next_quarter@continuousKline_1m
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 连续合约 K线流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: continuous_kline
                    enum:
                      - continuous_kline
                    description: 事件类型
                  E:
                    type: integer
                    example: 1591261542539
                    format: int64
                    description: 事件时间
                  ps:
                    type: string
                    example: BTCUSD
                    description: 标的交易对
                  ct:
                    type: string
                    example: NEXT_QUARTER
                    description: 合约类型
                  k:
                    type: object
                    properties:
                      t:
                        type: integer
                        example: 1591261500000
                        format: int64
                        description: 这根K线的起始时间
                      T:
                        type: integer
                        example: 1591261559999
                        format: int64
                        description: 成交时间/交易时间
                      i:
                        type: string
                        example: 1m
                        description: K 线周期
                      f:
                        type: integer
                        example: 606400
                        format: int64
                        description: 第一个更新 ID
                      L:
                        type: integer
                        example: 606430
                        format: int64
                        description: 最后一个更新 ID
                      o:
                        type: string
                        example: '9638.9'
                        description: 开盘价
                      c:
                        type: string
                        example: '9639.8'
                        description: 收盘价
                      h:
                        type: string
                        example: '9639.8'
                        description: 最高价
                      l:
                        type: string
                        example: '9638.6'
                        description: 最低价
                      v:
                        type: string
                        example: '156'
                        description: 基础资产成交量
                      'n':
                        type: integer
                        example: 31
                        format: int64
                        description: 成交笔数
                      x:
                        type: boolean
                        example: false
                        description: 这根K线是否完结(是否已经开始下一根K线)
                      q:
                        type: string
                        example: '1.61836886'
                        description: 计价资产成交额
                      V:
                        type: string
                        example: '73'
                        description: 无意义字段
                      Q:
                        type: string
                        example: '0.75731156'
                        description: 最近一笔成交量
                      B:
                        type: string
                        example: '0'
                        description: 买单最优挂单数量
                    description: K 线数据
              example:
                e: continuous_kline
                E: 1591261542539
                ps: BTCUSD
                ct: NEXT_QUARTER
                k:
                  t: 1591261500000
                  T: 1591261559999
                  i: 1m
                  f: 606400
                  L: 606430
                  o: '9638.9'
                  c: '9639.8'
                  h: '9639.8'
                  l: '9638.6'
                  v: '156'
                  'n': 31
                  x: false
                  q: '1.61836886'
                  V: '73'
                  Q: '0.75731156'
                  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
                        enum:
                          - continuous_kline
                        description: 事件类型
                      E:
                        type: integer
                        example: 1591261542539
                        format: int64
                        description: 事件时间
                      ps:
                        type: string
                        example: BTCUSD
                        description: 标的交易对
                      ct:
                        type: string
                        example: NEXT_QUARTER
                        description: 合约类型
                      k:
                        type: object
                        properties:
                          t:
                            type: integer
                            example: 1591261500000
                            format: int64
                            description: 这根K线的起始时间
                          T:
                            type: integer
                            example: 1591261559999
                            format: int64
                            description: 成交时间/交易时间
                          i:
                            type: string
                            example: 1m
                            description: K 线周期
                          f:
                            type: integer
                            example: 606400
                            format: int64
                            description: 第一个更新 ID
                          L:
                            type: integer
                            example: 606430
                            format: int64
                            description: 最后一个更新 ID
                          o:
                            type: string
                            example: '9638.9'
                            description: 开盘价
                          c:
                            type: string
                            example: '9639.8'
                            description: 收盘价
                          h:
                            type: string
                            example: '9639.8'
                            description: 最高价
                          l:
                            type: string
                            example: '9638.6'
                            description: 最低价
                          v:
                            type: string
                            example: '156'
                            description: 基础资产成交量
                          'n':
                            type: integer
                            example: 31
                            format: int64
                            description: 成交笔数
                          x:
                            type: boolean
                            example: false
                            description: 这根K线是否完结(是否已经开始下一根K线)
                          q:
                            type: string
                            example: '1.61836886'
                            description: 计价资产成交额
                          V:
                            type: string
                            example: '73'
                            description: 无意义字段
                          Q:
                            type: string
                            example: '0.75731156'
                            description: 最近一笔成交量
                          B:
                            type: string
                            example: '0'
                            description: 买单最优挂单数量
                        description: K 线数据
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt_next_quarter@continuousKline_1m
                data:
                  e: continuous_kline
                  E: 1591261542539
                  ps: BTCUSD
                  ct: NEXT_QUARTER
                  k:
                    t: 1591261500000
                    T: 1591261559999
                    i: 1m
                    f: 606400
                    L: 606430
                    o: '9638.9'
                    c: '9639.8'
                    h: '9639.8'
                    l: '9638.6'
                    v: '156'
                    'n': 31
                    x: false
                    q: '1.61836886'
                    V: '73'
                    Q: '0.75731156'
                    B: '0'
  /!contractInfo:
    post:
      summary: 交易对信息信息流
      description: |-
        ContractInfo 流在合约信息更新时推送（上架/结算/分层更新）。当分层更新时才会出现 bks 字段。

        > **迁移后**,此 stream 推送合并的 UM + CM universe(`fstream` 与 `dstream` 都可订阅);payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      operationId: contractInfoStream
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#contract-info-stream
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//contractInfoStream.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//contract_info_stream.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//contract_info_stream.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//ContractInfoStreamExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//ContractInfoStream/ContractInfoStream.go
      x-update-speed: Real-time
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - '!contractInfo'
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - '!contractInfo'
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: Contract Info 流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: contractInfo
                    enum:
                      - contractInfo
                    description: 事件类型
                  E:
                    type: integer
                    example: 1669647330375
                    format: int64
                    description: 事件时间
                  s:
                    type: string
                    example: APTUSD_PERP
                    description: 交易对
                  ps:
                    type: string
                    example: APTUSD
                    description: 交易对标的
                  ct:
                    type: string
                    example: PERPETUAL
                    description: 合约类型
                  dt:
                    type: integer
                    example: 4133404800000
                    format: int64
                    description: 结算时间
                  ot:
                    type: integer
                    example: 1666594800000
                    format: int64
                    description: 上架时间
                  cs:
                    type: string
                    example: TRADING
                    description: 交易对状态
                  bks:
                    type: array
                    items:
                      type: object
                      properties:
                        bs:
                          type: integer
                          example: 1
                          format: int64
                          description: 层级
                        bnf:
                          type: integer
                          example: 0
                          format: int64
                          description: 该层对应的名义价值下限
                        bnc:
                          type: integer
                          example: 500000
                          format: int64
                          description: 该层对应的名义价值上限
                        mmr:
                          type: number
                          example: 0.0065
                          format: float
                          description: 该层对应的维持保证金率
                        cf:
                          type: integer
                          example: 75
                          format: int64
                          description: 速算数
                        mi:
                          type: integer
                          example: 51
                          format: int64
                          description: 该层杠杆下界
                        ma:
                          type: integer
                          example: 75
                          format: int64
                          description: 该层杠杆上界
                    description: 分层列表.
                  st:
                    type: integer
                    example: 1
                    description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: contractInfo
                E: 1669647330375
                s: APTUSD_PERP
                ps: APTUSD
                ct: PERPETUAL
                dt: 4133404800000
                ot: 1666594800000
                cs: TRADING
                bks:
                  - bs: 1
                    bnf: 0
                    bnc: 500000
                    mmr: 0.0065
                    cf: 75
                    mi: 51
                    ma: 75
                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
                        enum:
                          - contractInfo
                        description: 事件类型
                      E:
                        type: integer
                        example: 1669647330375
                        format: int64
                        description: 事件时间
                      s:
                        type: string
                        example: APTUSD_PERP
                        description: 交易对
                      ps:
                        type: string
                        example: APTUSD
                        description: 交易对标的
                      ct:
                        type: string
                        example: PERPETUAL
                        description: 合约类型
                      dt:
                        type: integer
                        example: 4133404800000
                        format: int64
                        description: 结算时间
                      ot:
                        type: integer
                        example: 1666594800000
                        format: int64
                        description: 上架时间
                      cs:
                        type: string
                        example: TRADING
                        description: 交易对状态
                      bks:
                        type: array
                        items:
                          type: object
                          properties:
                            bs:
                              type: integer
                              example: 1
                              format: int64
                              description: 层级
                            bnf:
                              type: integer
                              example: 0
                              format: int64
                              description: 该层对应的名义价值下限
                            bnc:
                              type: integer
                              example: 500000
                              format: int64
                              description: 该层对应的名义价值上限
                            mmr:
                              type: number
                              example: 0.0065
                              format: float
                              description: 该层对应的维持保证金率
                            cf:
                              type: integer
                              example: 75
                              format: int64
                              description: 速算数
                            mi:
                              type: integer
                              example: 51
                              format: int64
                              description: 该层杠杆下界
                            ma:
                              type: integer
                              example: 75
                              format: int64
                              description: 该层杠杆上界
                        description: 分层列表.
                      st:
                        type: integer
                        example: 1
                        description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: '!contractInfo'
                data:
                  e: contractInfo
                  E: 1669647330375
                  s: APTUSD_PERP
                  ps: APTUSD
                  ct: PERPETUAL
                  dt: 4133404800000
                  ot: 1666594800000
                  cs: TRADING
                  bks:
                    - bs: 1
                      bnf: 0
                      bnc: 500000
                      mmr: 0.0065
                      cf: 75
                      mi: 51
                      ma: 75
                  st: 1
  /{symbol}@depth@{updateSpeed}:
    post:
      summary: 增量深度信息stream
      description: |-
        买单和卖单，每 250ms、500ms 或 100ms 推送一次

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      operationId: diffBookDepthStreams
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#diff-book-depth-streams
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//diffBookDepthStreams.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//diff_book_depth_streams.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//diff_book_depth_streams.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//DiffBookDepthStreamsExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//DiffBookDepthStreams/DiffBookDepthStreams.go
      x-update-speed: 250ms or 500ms or 100ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
        - name: updateSpeed
          in: path
          required: false
          schema:
            type: string
            example: 100ms
            enum:
              - 100ms
              - 500ms
          description: WebSocket 流更新速度
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@depth@100ms
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@depth@100ms
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 增量深度流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: depthUpdate
                    enum:
                      - depthUpdate
                    description: 事件类型
                  E:
                    type: integer
                    example: 1591270260907
                    format: int64
                    description: 事件时间
                  T:
                    type: integer
                    example: 1591270260891
                    format: int64
                    description: 撮合时间
                  s:
                    type: string
                    example: BTCUSD_200626
                    description: 交易对
                  ps:
                    type: string
                    example: BTCUSD
                    description: 标的交易对
                  U:
                    type: integer
                    example: 17285681
                    format: int64
                    description: 从上次推送至今新增的第一个 update Id
                  u:
                    type: integer
                    example: 17285702
                    format: int64
                    description: 从上次推送至今新增的最后一个 update Id
                  pu:
                    type: integer
                    example: 17285675
                    format: int64
                    description: 上次推送的最后一个update Id(即上条消息的‘u’)
                  b:
                    type: array
                    items:
                      type: array
                      items:
                        type: string
                        example: '9517.6'
                    description: 变动的买单深度
                  a:
                    type: array
                    items:
                      type: array
                      items:
                        type: string
                        example: '9518.5'
                    description: 变动的卖单深度
                  st:
                    type: integer
                    example: 1
                    description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: depthUpdate
                E: 1591270260907
                T: 1591270260891
                s: BTCUSD_200626
                ps: BTCUSD
                U: 17285681
                u: 17285702
                pu: 17285675
                b:
                  - - '9517.6'
                a:
                  - - '9518.5'
                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
                        enum:
                          - depthUpdate
                        description: 事件类型
                      E:
                        type: integer
                        example: 1591270260907
                        format: int64
                        description: 事件时间
                      T:
                        type: integer
                        example: 1591270260891
                        format: int64
                        description: 撮合时间
                      s:
                        type: string
                        example: BTCUSD_200626
                        description: 交易对
                      ps:
                        type: string
                        example: BTCUSD
                        description: 标的交易对
                      U:
                        type: integer
                        example: 17285681
                        format: int64
                        description: 从上次推送至今新增的第一个 update Id
                      u:
                        type: integer
                        example: 17285702
                        format: int64
                        description: 从上次推送至今新增的最后一个 update Id
                      pu:
                        type: integer
                        example: 17285675
                        format: int64
                        description: 上次推送的最后一个update Id(即上条消息的‘u’)
                      b:
                        type: array
                        items:
                          type: array
                          items:
                            type: string
                            example: '9517.6'
                        description: 变动的买单深度
                      a:
                        type: array
                        items:
                          type: array
                          items:
                            type: string
                            example: '9518.5'
                        description: 变动的卖单深度
                      st:
                        type: integer
                        example: 1
                        description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@depth@100ms
                data:
                  e: depthUpdate
                  E: 1591270260907
                  T: 1591270260891
                  s: BTCUSD_200626
                  ps: BTCUSD
                  U: 17285681
                  u: 17285702
                  pu: 17285675
                  b:
                    - - '9517.6'
                  a:
                    - - '9518.5'
                  st: 1
  /{pair}@indexPriceKline_{interval}:
    post:
      summary: 价格指数K线
      description: |-
        价格指数K线

        > **迁移后**,`fstream` 与 `dstream` 都可订阅 CM 的 symbol。
      operationId: indexKlineCandlestickStreams
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#index-kline-candlestick-streams
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//indexKlineCandlestickStreams.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//index_kline_candlestick_streams.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//index_kline_candlestick_streams.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//IndexKlineCandlestickStreamsExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//IndexKlineCandlestickStreams/IndexKlineCandlestickStreams.go
      x-update-speed: 250ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: pair
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
        - 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: 间隔 参数
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@indexPriceKline_1m
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@indexPriceKline_1m
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 指数 K线流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: indexPrice_kline
                    enum:
                      - indexPrice_kline
                    description: 事件类型
                  E:
                    type: integer
                    example: 1591267070033
                    format: int64
                    description: 事件时间
                  ps:
                    type: string
                    example: BTCUSD
                    description: 标的交易对
                  k:
                    type: object
                    properties:
                      t:
                        type: integer
                        example: 1591267020000
                        format: int64
                        description: 这根K线的起始时间
                      T:
                        type: integer
                        example: 1591267079999
                        format: int64
                        description: 成交时间/交易时间
                      s:
                        type: string
                        example: '0'
                        description: 交易对
                      i:
                        type: string
                        example: 1m
                        description: K 线周期
                      f:
                        type: integer
                        example: 1591267020000
                        format: int64
                        description: 忽略
                      L:
                        type: integer
                        example: 1591267070000
                        format: int64
                        description: 忽略
                      o:
                        type: string
                        example: '9542.21900000'
                        description: 开盘价
                      c:
                        type: string
                        example: '9542.50440000'
                        description: 收盘价
                      h:
                        type: string
                        example: '9542.71640000'
                        description: 最高价
                      l:
                        type: string
                        example: '9542.21040000'
                        description: 最低价
                      v:
                        type: string
                        example: '0'
                        description: 基础资产成交量
                      'n':
                        type: integer
                        example: 51
                        format: int64
                        description: 成交笔数
                      x:
                        type: boolean
                        example: false
                        description: 这根K线是否完结(是否已经开始下一根K线)
                      q:
                        type: string
                        example: '0'
                        description: 计价资产成交额
                      V:
                        type: string
                        example: '0'
                        description: 无意义字段
                      Q:
                        type: string
                        example: '0'
                        description: 最近一笔成交量
                      B:
                        type: string
                        example: '0'
                        description: 买单最优挂单数量
                    description: K 线数据
              example:
                e: indexPrice_kline
                E: 1591267070033
                ps: BTCUSD
                k:
                  t: 1591267020000
                  T: 1591267079999
                  s: '0'
                  i: 1m
                  f: 1591267020000
                  L: 1591267070000
                  o: '9542.21900000'
                  c: '9542.50440000'
                  h: '9542.71640000'
                  l: '9542.21040000'
                  v: '0'
                  'n': 51
                  x: false
                  q: '0'
                  V: '0'
                  Q: '0'
                  B: '0'
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@indexPriceKline_1m
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: indexPrice_kline
                        enum:
                          - indexPrice_kline
                        description: 事件类型
                      E:
                        type: integer
                        example: 1591267070033
                        format: int64
                        description: 事件时间
                      ps:
                        type: string
                        example: BTCUSD
                        description: 标的交易对
                      k:
                        type: object
                        properties:
                          t:
                            type: integer
                            example: 1591267020000
                            format: int64
                            description: 这根K线的起始时间
                          T:
                            type: integer
                            example: 1591267079999
                            format: int64
                            description: 成交时间/交易时间
                          s:
                            type: string
                            example: '0'
                            description: 交易对
                          i:
                            type: string
                            example: 1m
                            description: K 线周期
                          f:
                            type: integer
                            example: 1591267020000
                            format: int64
                            description: 忽略
                          L:
                            type: integer
                            example: 1591267070000
                            format: int64
                            description: 忽略
                          o:
                            type: string
                            example: '9542.21900000'
                            description: 开盘价
                          c:
                            type: string
                            example: '9542.50440000'
                            description: 收盘价
                          h:
                            type: string
                            example: '9542.71640000'
                            description: 最高价
                          l:
                            type: string
                            example: '9542.21040000'
                            description: 最低价
                          v:
                            type: string
                            example: '0'
                            description: 基础资产成交量
                          'n':
                            type: integer
                            example: 51
                            format: int64
                            description: 成交笔数
                          x:
                            type: boolean
                            example: false
                            description: 这根K线是否完结(是否已经开始下一根K线)
                          q:
                            type: string
                            example: '0'
                            description: 计价资产成交额
                          V:
                            type: string
                            example: '0'
                            description: 无意义字段
                          Q:
                            type: string
                            example: '0'
                            description: 最近一笔成交量
                          B:
                            type: string
                            example: '0'
                            description: 买单最优挂单数量
                        description: K 线数据
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@indexPriceKline_1m
                data:
                  e: indexPrice_kline
                  E: 1591267070033
                  ps: BTCUSD
                  k:
                    t: 1591267020000
                    T: 1591267079999
                    s: '0'
                    i: 1m
                    f: 1591267020000
                    L: 1591267070000
                    o: '9542.21900000'
                    c: '9542.50440000'
                    h: '9542.71640000'
                    l: '9542.21040000'
                    v: '0'
                    'n': 51
                    x: false
                    q: '0'
                    V: '0'
                    Q: '0'
                    B: '0'
  /{pair}@indexPrice@{updateSpeed}:
    post:
      summary: 最新现货指数价格
      description: 最新现货指数价格
      operationId: indexPriceStream
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#index-price-stream
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//indexPriceStream.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//index_price_stream.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//index_price_stream.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//IndexPriceStreamExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//IndexPriceStream/IndexPriceStream.go
      x-update-speed: 3000ms OR 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: pair
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
        - name: updateSpeed
          in: path
          required: false
          schema:
            type: string
            example: 1s
            enum:
              - 1s
          description: WebSocket 流更新速度
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@indexPrice@1s
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@indexPrice@1s
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 指数价格流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: indexPriceUpdate
                    enum:
                      - indexPriceUpdate
                    description: 事件类型
                  E:
                    type: integer
                    example: 1591261236000
                    format: int64
                    description: 事件时间
                  i:
                    type: string
                    example: BTCUSD
                    description: 标的交易对
                  p:
                    type: string
                    example: '9636.57860000'
                    description: 指数价格
              example:
                e: indexPriceUpdate
                E: 1591261236000
                i: BTCUSD
                p: '9636.57860000'
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@indexPrice@1s
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: indexPriceUpdate
                        enum:
                          - indexPriceUpdate
                        description: 事件类型
                      E:
                        type: integer
                        example: 1591261236000
                        format: int64
                        description: 事件时间
                      i:
                        type: string
                        example: BTCUSD
                        description: 标的交易对
                      p:
                        type: string
                        example: '9636.57860000'
                        description: 指数价格
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@indexPrice@1s
                data:
                  e: indexPriceUpdate
                  E: 1591261236000
                  i: BTCUSD
                  p: '9636.57860000'
  /{symbol}@bookTicker:
    post:
      summary: 按Symbol的最优挂单信息
      description: |-
        实时推送指定交易对的最优挂单价格或数量的任何更新。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      operationId: individualSymbolBookTickerStreams
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#individual-symbol-book-ticker-streams
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//individualSymbolBookTickerStreams.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//individual_symbol_book_ticker_streams.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//individual_symbol_book_ticker_streams.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//IndividualSymbolBookTickerStreamsExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//IndividualSymbolBookTickerStreams/IndividualSymbolBookTickerStreams.go
      x-update-speed: Real-time
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@bookTicker
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@bookTicker
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 单交易对最优挂单流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: bookTicker
                    enum:
                      - bookTicker
                    description: 事件类型
                  u:
                    type: integer
                    example: 17242169
                    format: int64
                    description: 更新ID
                  s:
                    type: string
                    example: BTCUSD_200626
                    description: 交易对
                  b:
                    type: string
                    example: '9548.1'
                    description: 买单最优挂单价格
                  B:
                    type: string
                    example: '52'
                    description: 买单最优挂单数量
                  a:
                    type: string
                    example: '9548.5'
                    description: 卖单最优挂单价格
                  A:
                    type: string
                    example: '11'
                    description: 卖单最优挂单数量
                  T:
                    type: integer
                    example: 1591268628155
                    format: int64
                    description: 撮合时间
                  E:
                    type: integer
                    example: 1591268628166
                    format: int64
                    description: 事件时间
                  ps:
                    type: string
                    example: BTCUSD
                    description: 标的交易对
                  st:
                    type: integer
                    example: 2
                    description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: bookTicker
                u: 17242169
                s: BTCUSD_200626
                b: '9548.1'
                B: '52'
                a: '9548.5'
                A: '11'
                T: 1591268628155
                E: 1591268628166
                ps: BTCUSD
                st: 2
        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
                        enum:
                          - bookTicker
                        description: 事件类型
                      u:
                        type: integer
                        example: 17242169
                        format: int64
                        description: 更新ID
                      s:
                        type: string
                        example: BTCUSD_200626
                        description: 交易对
                      b:
                        type: string
                        example: '9548.1'
                        description: 买单最优挂单价格
                      B:
                        type: string
                        example: '52'
                        description: 买单最优挂单数量
                      a:
                        type: string
                        example: '9548.5'
                        description: 卖单最优挂单价格
                      A:
                        type: string
                        example: '11'
                        description: 卖单最优挂单数量
                      T:
                        type: integer
                        example: 1591268628155
                        format: int64
                        description: 撮合时间
                      E:
                        type: integer
                        example: 1591268628166
                        format: int64
                        description: 事件时间
                      ps:
                        type: string
                        example: BTCUSD
                        description: 标的交易对
                      st:
                        type: integer
                        example: 2
                        description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@bookTicker
                data:
                  e: bookTicker
                  u: 17242169
                  s: BTCUSD_200626
                  b: '9548.1'
                  B: '52'
                  a: '9548.5'
                  A: '11'
                  T: 1591268628155
                  E: 1591268628166
                  ps: BTCUSD
                  st: 2
  /{symbol}@miniTicker:
    post:
      summary: 按Symbol的精简Ticker
      description: |-
        单个交易对的24小时滚动窗口精简Ticker统计。这些不是UTC日的统计，而是从requestTime到24小时前的24小时滚动窗口。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      operationId: individualSymbolMiniTickerStream
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#individual-symbol-mini-ticker-stream
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//individualSymbolMiniTickerStream.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//individual_symbol_mini_ticker_stream.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//individual_symbol_mini_ticker_stream.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//IndividualSymbolMiniTickerStreamExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//IndividualSymbolMiniTickerStream/IndividualSymbolMiniTickerStream.go
      x-update-speed: 500ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@miniTicker
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@miniTicker
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 单交易对精简行情流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: 24hrMiniTicker
                    enum:
                      - 24hrMiniTicker
                    description: 事件类型
                  E:
                    type: integer
                    example: 1591267704450
                    format: int64
                    description: 事件时间
                  s:
                    type: string
                    example: BTCUSD_200626
                    description: 交易对
                  ps:
                    type: string
                    example: BTCUSD
                    description: 标的交易对
                  c:
                    type: string
                    example: '9561.7'
                    description: 最新成交价格
                  o:
                    type: string
                    example: '9580.9'
                    description: 24小时前开始第一笔成交价格
                  h:
                    type: string
                    example: '10000.0'
                    description: 24小时内最高成交价
                  l:
                    type: string
                    example: '7000.0'
                    description: 24小时内最低成交价
                  v:
                    type: string
                    example: '487476'
                    description: 24小时成交量
                  q:
                    type: string
                    example: '33264343847.22378500'
                    description: 24小时成交额(标的数量)
                  st:
                    type: integer
                    example: 1
                    description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: 24hrMiniTicker
                E: 1591267704450
                s: BTCUSD_200626
                ps: BTCUSD
                c: '9561.7'
                o: '9580.9'
                h: '10000.0'
                l: '7000.0'
                v: '487476'
                q: '33264343847.22378500'
                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
                        enum:
                          - 24hrMiniTicker
                        description: 事件类型
                      E:
                        type: integer
                        example: 1591267704450
                        format: int64
                        description: 事件时间
                      s:
                        type: string
                        example: BTCUSD_200626
                        description: 交易对
                      ps:
                        type: string
                        example: BTCUSD
                        description: 标的交易对
                      c:
                        type: string
                        example: '9561.7'
                        description: 最新成交价格
                      o:
                        type: string
                        example: '9580.9'
                        description: 24小时前开始第一笔成交价格
                      h:
                        type: string
                        example: '10000.0'
                        description: 24小时内最高成交价
                      l:
                        type: string
                        example: '7000.0'
                        description: 24小时内最低成交价
                      v:
                        type: string
                        example: '487476'
                        description: 24小时成交量
                      q:
                        type: string
                        example: '33264343847.22378500'
                        description: 24小时成交额(标的数量)
                      st:
                        type: integer
                        example: 1
                        description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@miniTicker
                data:
                  e: 24hrMiniTicker
                  E: 1591267704450
                  s: BTCUSD_200626
                  ps: BTCUSD
                  c: '9561.7'
                  o: '9580.9'
                  h: '10000.0'
                  l: '7000.0'
                  v: '487476'
                  q: '33264343847.22378500'
                  st: 1
  /{symbol}@ticker:
    post:
      summary: 按Symbol的完整Ticker
      description: |-
        24小时滚动窗口的单个交易对的行情统计。这些不是UTC日的统计，而是从requestTime到24小时前的24小时滚动窗口。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      operationId: individualSymbolTickerStreams
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#individual-symbol-ticker-streams
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//individualSymbolTickerStreams.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//individual_symbol_ticker_streams.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//individual_symbol_ticker_streams.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//IndividualSymbolTickerStreamsExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//IndividualSymbolTickerStreams/IndividualSymbolTickerStreams.go
      x-update-speed: 500ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@ticker
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@ticker
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 单交易对行情流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: 24hrTicker
                    enum:
                      - 24hrTicker
                    description: 事件类型
                  E:
                    type: integer
                    example: 1591268262453
                    format: int64
                    description: 事件时间
                  s:
                    type: string
                    example: BTCUSD_200626
                    description: 交易对
                  p:
                    type: string
                    example: '-43.4'
                    description: 24小时价格变化
                  P:
                    type: string
                    example: '-0.452'
                    description: 24小时价格变化(百分比)
                  w:
                    type: string
                    example: '0.00147974'
                    description: 24小时平均价格
                  c:
                    type: string
                    example: '9548.5'
                    description: 最新成交价格
                  Q:
                    type: string
                    example: '2'
                    description: 最新成交价格上的成交量
                  o:
                    type: string
                    example: '9591.9'
                    description: 24小时前第一笔成交价格
                  h:
                    type: string
                    example: '10000.0'
                    description: 24小时内最高成交价
                  l:
                    type: string
                    example: '7000.0'
                    description: 24小时内最低成交价
                  v:
                    type: string
                    example: '487850'
                    description: 24小时成交量
                  q:
                    type: string
                    example: '32968676323.46222700'
                    description: 24小时成交额(标的数量)
                  O:
                    type: integer
                    example: 1591181820000
                    format: int64
                    description: 统计开始时间
                  C:
                    type: integer
                    example: 1591268262442
                    format: int64
                    description: 统计关闭时间
                  F:
                    type: integer
                    example: 512014
                    format: int64
                    description: 24小时内第一笔成交交易ID
                  L:
                    type: integer
                    example: 615289
                    format: int64
                    description: 24小时内最后一笔成交交易ID
                  'n':
                    type: integer
                    example: 103272
                    format: int64
                    description: 24小时内成交数
                  ps:
                    type: string
                    example: BTCUSD
                    description: 标的交易对
                  st:
                    type: integer
                    example: 1
                    description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: 24hrTicker
                E: 1591268262453
                s: BTCUSD_200626
                p: '-43.4'
                P: '-0.452'
                w: '0.00147974'
                c: '9548.5'
                Q: '2'
                o: '9591.9'
                h: '10000.0'
                l: '7000.0'
                v: '487850'
                q: '32968676323.46222700'
                O: 1591181820000
                C: 1591268262442
                F: 512014
                L: 615289
                'n': 103272
                ps: BTCUSD
                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
                        enum:
                          - 24hrTicker
                        description: 事件类型
                      E:
                        type: integer
                        example: 1591268262453
                        format: int64
                        description: 事件时间
                      s:
                        type: string
                        example: BTCUSD_200626
                        description: 交易对
                      p:
                        type: string
                        example: '-43.4'
                        description: 24小时价格变化
                      P:
                        type: string
                        example: '-0.452'
                        description: 24小时价格变化(百分比)
                      w:
                        type: string
                        example: '0.00147974'
                        description: 24小时平均价格
                      c:
                        type: string
                        example: '9548.5'
                        description: 最新成交价格
                      Q:
                        type: string
                        example: '2'
                        description: 最新成交价格上的成交量
                      o:
                        type: string
                        example: '9591.9'
                        description: 24小时前第一笔成交价格
                      h:
                        type: string
                        example: '10000.0'
                        description: 24小时内最高成交价
                      l:
                        type: string
                        example: '7000.0'
                        description: 24小时内最低成交价
                      v:
                        type: string
                        example: '487850'
                        description: 24小时成交量
                      q:
                        type: string
                        example: '32968676323.46222700'
                        description: 24小时成交额(标的数量)
                      O:
                        type: integer
                        example: 1591181820000
                        format: int64
                        description: 统计开始时间
                      C:
                        type: integer
                        example: 1591268262442
                        format: int64
                        description: 统计关闭时间
                      F:
                        type: integer
                        example: 512014
                        format: int64
                        description: 24小时内第一笔成交交易ID
                      L:
                        type: integer
                        example: 615289
                        format: int64
                        description: 24小时内最后一笔成交交易ID
                      'n':
                        type: integer
                        example: 103272
                        format: int64
                        description: 24小时内成交数
                      ps:
                        type: string
                        example: BTCUSD
                        description: 标的交易对
                      st:
                        type: integer
                        example: 1
                        description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@ticker
                data:
                  e: 24hrTicker
                  E: 1591268262453
                  s: BTCUSD_200626
                  p: '-43.4'
                  P: '-0.452'
                  w: '0.00147974'
                  c: '9548.5'
                  Q: '2'
                  o: '9591.9'
                  h: '10000.0'
                  l: '7000.0'
                  v: '487850'
                  q: '32968676323.46222700'
                  O: 1591181820000
                  C: 1591268262442
                  F: 512014
                  L: 615289
                  'n': 103272
                  ps: BTCUSD
                  st: 1
  /{symbol}@kline_{interval}:
    post:
      summary: K线
      description: |-
        K线流每250毫秒推送当前K线更新（如果有）.

        > **迁移后**,`fstream` 与 `dstream` 都可订阅 UM 或 CM 的 symbol。
      operationId: klineCandlestickStreams
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#kline-candlestick-streams
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//klineCandlestickStreams.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//kline_candlestick_streams.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//kline_candlestick_streams.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//KlineCandlestickStreamsExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//KlineCandlestickStreams/KlineCandlestickStreams.go
      x-update-speed: 250ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
        - 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: 间隔 参数
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@kline_1m
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@kline_1m
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: K线流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: kline
                    enum:
                      - kline
                    description: 事件类型
                  E:
                    type: integer
                    example: 1591261542539
                    format: int64
                    description: 事件时间
                  s:
                    type: string
                    example: BTCUSD_200626
                    description: 交易对
                  k:
                    type: object
                    properties:
                      t:
                        type: integer
                        example: 1591261500000
                        format: int64
                        description: 这根K线的起始时间
                      T:
                        type: integer
                        example: 1591261559999
                        format: int64
                        description: 这根K线的结束时间
                      s:
                        type: string
                        example: BTCUSD_200626
                        description: 交易对
                      i:
                        type: string
                        example: 1m
                        description: K线间隔
                      f:
                        type: integer
                        example: 606400
                        format: int64
                        description: 这根K线期间第一笔成交ID
                      L:
                        type: integer
                        example: 606430
                        format: int64
                        description: 这根K线期间末一笔成交ID
                      o:
                        type: string
                        example: '9638.9'
                        description: 这根K线期间第一笔成交价
                      c:
                        type: string
                        example: '9639.8'
                        description: 这根K线期间末一笔成交价
                      h:
                        type: string
                        example: '9639.8'
                        description: 这根K线期间最高成交价
                      l:
                        type: string
                        example: '9638.6'
                        description: 这根K线期间最低成交价
                      v:
                        type: string
                        example: '156'
                        description: 这根K线期间成交量
                      'n':
                        type: integer
                        example: 31
                        format: int64
                        description: 这根K线期间成交笔数
                      x:
                        type: boolean
                        example: false
                        description: 这根K线是否完结(是否已经开始下一根K线)
                      q:
                        type: string
                        example: '1.61836886'
                        description: 这根K线期间成交额(标的数量)
                      V:
                        type: string
                        example: '73'
                        description: 主动买入的成交量
                      Q:
                        type: string
                        example: '0.75731156'
                        description: 主动买入的成交额(标的数量)
                      B:
                        type: string
                        example: '0'
                        description: 忽略此参数
                    description: K 线数据
              example:
                e: kline
                E: 1591261542539
                s: BTCUSD_200626
                k:
                  t: 1591261500000
                  T: 1591261559999
                  s: BTCUSD_200626
                  i: 1m
                  f: 606400
                  L: 606430
                  o: '9638.9'
                  c: '9639.8'
                  h: '9639.8'
                  l: '9638.6'
                  v: '156'
                  'n': 31
                  x: false
                  q: '1.61836886'
                  V: '73'
                  Q: '0.75731156'
                  B: '0'
        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
                        enum:
                          - kline
                        description: 事件类型
                      E:
                        type: integer
                        example: 1591261542539
                        format: int64
                        description: 事件时间
                      s:
                        type: string
                        example: BTCUSD_200626
                        description: 交易对
                      k:
                        type: object
                        properties:
                          t:
                            type: integer
                            example: 1591261500000
                            format: int64
                            description: 这根K线的起始时间
                          T:
                            type: integer
                            example: 1591261559999
                            format: int64
                            description: 这根K线的结束时间
                          s:
                            type: string
                            example: BTCUSD_200626
                            description: 交易对
                          i:
                            type: string
                            example: 1m
                            description: K线间隔
                          f:
                            type: integer
                            example: 606400
                            format: int64
                            description: 这根K线期间第一笔成交ID
                          L:
                            type: integer
                            example: 606430
                            format: int64
                            description: 这根K线期间末一笔成交ID
                          o:
                            type: string
                            example: '9638.9'
                            description: 这根K线期间第一笔成交价
                          c:
                            type: string
                            example: '9639.8'
                            description: 这根K线期间末一笔成交价
                          h:
                            type: string
                            example: '9639.8'
                            description: 这根K线期间最高成交价
                          l:
                            type: string
                            example: '9638.6'
                            description: 这根K线期间最低成交价
                          v:
                            type: string
                            example: '156'
                            description: 这根K线期间成交量
                          'n':
                            type: integer
                            example: 31
                            format: int64
                            description: 这根K线期间成交笔数
                          x:
                            type: boolean
                            example: false
                            description: 这根K线是否完结(是否已经开始下一根K线)
                          q:
                            type: string
                            example: '1.61836886'
                            description: 这根K线期间成交额(标的数量)
                          V:
                            type: string
                            example: '73'
                            description: 主动买入的成交量
                          Q:
                            type: string
                            example: '0.75731156'
                            description: 主动买入的成交额(标的数量)
                          B:
                            type: string
                            example: '0'
                            description: 忽略此参数
                        description: K 线数据
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@kline_1m
                data:
                  e: kline
                  E: 1591261542539
                  s: BTCUSD_200626
                  k:
                    t: 1591261500000
                    T: 1591261559999
                    s: BTCUSD_200626
                    i: 1m
                    f: 606400
                    L: 606430
                    o: '9638.9'
                    c: '9639.8'
                    h: '9639.8'
                    l: '9638.6'
                    v: '156'
                    'n': 31
                    x: false
                    q: '1.61836886'
                    V: '73'
                    Q: '0.75731156'
                    B: '0'
  /{symbol}@forceOrder:
    post:
      summary: 强平订单
      description: 强平订单快照流推送特定交易对的强平订单信息。对于每个交易对，在1000ms内只会推送最新的一笔强平订单作为快照。如果在1000ms的时间间隔内没有发生强平，则不会推送任何流。
      operationId: marketLiquidationOrderStreams
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-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-coin-futures/examples/websocket-streams//marketLiquidationOrderStreams.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//market_liquidation_order_streams.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//market_liquidation_order_streams.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//MarketLiquidationOrderStreamsExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//MarketLiquidationOrderStreams/MarketLiquidationOrderStreams.go
      x-update-speed: 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@forceOrder
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@forceOrder
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 强平订单流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: forceOrder
                    enum:
                      - forceOrder
                    description: 事件类型
                  E:
                    type: integer
                    example: 1591154240950
                    format: int64
                    description: 事件时间
                  o:
                    type: object
                    properties:
                      s:
                        type: string
                        example: BTCUSD_200925
                        description: 交易对
                      ps:
                        type: string
                        example: BTCUSD
                        description: 标的交易对
                      S:
                        type: string
                        example: SELL
                        description: 订单方向
                      o:
                        type: string
                        example: LIMIT
                        description: 订单类型
                      f:
                        type: string
                        example: IOC
                        description: 有效方式
                      q:
                        type: string
                        example: '1'
                        description: 订单数量
                      p:
                        type: string
                        example: '9425.5'
                        description: 订单价格
                      ap:
                        type: string
                        example: '9496.5'
                        description: 平均价格
                      X:
                        type: string
                        example: FILLED
                        description: 订单状态
                      l:
                        type: string
                        example: '1'
                        description: 订单最近成交量
                      z:
                        type: string
                        example: '1'
                        description: 订单累计成交量
                      T:
                        type: integer
                        example: 1591154240949
                        format: int64
                        description: 交易时间
                    description: 订单类型
              example:
                e: forceOrder
                E: 1591154240950
                o:
                  s: BTCUSD_200925
                  ps: BTCUSD
                  S: SELL
                  o: LIMIT
                  f: IOC
                  q: '1'
                  p: '9425.5'
                  ap: '9496.5'
                  X: FILLED
                  l: '1'
                  z: '1'
                  T: 1591154240949
        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
                        enum:
                          - forceOrder
                        description: 事件类型
                      E:
                        type: integer
                        example: 1591154240950
                        format: int64
                        description: 事件时间
                      o:
                        type: object
                        properties:
                          s:
                            type: string
                            example: BTCUSD_200925
                            description: 交易对
                          ps:
                            type: string
                            example: BTCUSD
                            description: 标的交易对
                          S:
                            type: string
                            example: SELL
                            description: 订单方向
                          o:
                            type: string
                            example: LIMIT
                            description: 订单类型
                          f:
                            type: string
                            example: IOC
                            description: 有效方式
                          q:
                            type: string
                            example: '1'
                            description: 订单数量
                          p:
                            type: string
                            example: '9425.5'
                            description: 订单价格
                          ap:
                            type: string
                            example: '9496.5'
                            description: 平均价格
                          X:
                            type: string
                            example: FILLED
                            description: 订单状态
                          l:
                            type: string
                            example: '1'
                            description: 订单最近成交量
                          z:
                            type: string
                            example: '1'
                            description: 订单累计成交量
                          T:
                            type: integer
                            example: 1591154240949
                            format: int64
                            description: 交易时间
                        description: 订单类型
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@forceOrder
                data:
                  e: forceOrder
                  E: 1591154240950
                  o:
                    s: BTCUSD_200925
                    ps: BTCUSD
                    S: SELL
                    o: LIMIT
                    f: IOC
                    q: '1'
                    p: '9425.5'
                    ap: '9496.5'
                    X: FILLED
                    l: '1'
                    z: '1'
                    T: 1591154240949
  /{symbol}@markPriceKline_{interval}:
    post:
      summary: 标记价格K线
      description: |-
        标记价格K线

        > **迁移后**,`fstream` 与 `dstream` 都可订阅 CM 的 symbol。
      operationId: markPriceKlineCandlestickStreams
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#mark-price-kline-candlestick-streams
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//markPriceKlineCandlestickStreams.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//mark_price_kline_candlestick_streams.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//mark_price_kline_candlestick_streams.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//MarkPriceKlineCandlestickStreamsExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//MarkPriceKlineCandlestickStreams/MarkPriceKlineCandlestickStreams.go
      x-update-speed: 250ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
        - 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: 间隔 参数
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@markPriceKline_1m
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@markPriceKline_1m
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 标记价格 K线流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: markPrice_kline
                    enum:
                      - markPrice_kline
                    description: 事件类型
                  E:
                    type: integer
                    example: 1591267398004
                    format: int64
                    description: 事件时间
                  ps:
                    type: string
                    example: BTCUSD
                    description: 标的交易对
                  k:
                    type: object
                    properties:
                      t:
                        type: integer
                        example: 1591267380000
                        format: int64
                        description: 这根K线的起始时间
                      T:
                        type: integer
                        example: 1591267439999
                        format: int64
                        description: 这根K线的结束时间
                      s:
                        type: string
                        example: BTCUSD_200626
                        description: 交易对
                      i:
                        type: string
                        example: 1m
                        description: K线间隔
                      f:
                        type: integer
                        example: 1591267380000
                        format: int64
                        description: 无意义字段
                      L:
                        type: integer
                        example: 1591267398000
                        format: int64
                        description: 无意义字段
                      o:
                        type: string
                        example: '9539.67161333'
                        description: 这根K线期间第一笔成交价
                      c:
                        type: string
                        example: '9540.82761333'
                        description: 这根K线期间末一笔成交价
                      h:
                        type: string
                        example: '9540.82761333'
                        description: 这根K线期间最高成交价
                      l:
                        type: string
                        example: '9539.66961333'
                        description: 这根K线期间最低成交价
                      v:
                        type: string
                        example: '0'
                        description: 无意义字段
                      'n':
                        type: integer
                        example: 19
                        format: int64
                        description: 这根K线更新期间数据数量
                      x:
                        type: boolean
                        example: false
                        description: 这根K线是否完结(是否已经开始下一根K线)
                      q:
                        type: string
                        example: '0'
                        description: 无意义字段
                      V:
                        type: string
                        example: '0'
                        description: 无意义字段
                      Q:
                        type: string
                        example: '0'
                        description: 无意义字段
                      B:
                        type: string
                        example: '0'
                        description: 无意义字段
                    description: K 线数据
              example:
                e: markPrice_kline
                E: 1591267398004
                ps: BTCUSD
                k:
                  t: 1591267380000
                  T: 1591267439999
                  s: BTCUSD_200626
                  i: 1m
                  f: 1591267380000
                  L: 1591267398000
                  o: '9539.67161333'
                  c: '9540.82761333'
                  h: '9540.82761333'
                  l: '9539.66961333'
                  v: '0'
                  'n': 19
                  x: false
                  q: '0'
                  V: '0'
                  Q: '0'
                  B: '0'
        Combined Stream:
          description: Stream payload with stream name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  stream:
                    type: string
                    example: btcusdt@markPriceKline_1m
                  data:
                    type: object
                    properties:
                      e:
                        type: string
                        example: markPrice_kline
                        enum:
                          - markPrice_kline
                        description: 事件类型
                      E:
                        type: integer
                        example: 1591267398004
                        format: int64
                        description: 事件时间
                      ps:
                        type: string
                        example: BTCUSD
                        description: 标的交易对
                      k:
                        type: object
                        properties:
                          t:
                            type: integer
                            example: 1591267380000
                            format: int64
                            description: 这根K线的起始时间
                          T:
                            type: integer
                            example: 1591267439999
                            format: int64
                            description: 这根K线的结束时间
                          s:
                            type: string
                            example: BTCUSD_200626
                            description: 交易对
                          i:
                            type: string
                            example: 1m
                            description: K线间隔
                          f:
                            type: integer
                            example: 1591267380000
                            format: int64
                            description: 无意义字段
                          L:
                            type: integer
                            example: 1591267398000
                            format: int64
                            description: 无意义字段
                          o:
                            type: string
                            example: '9539.67161333'
                            description: 这根K线期间第一笔成交价
                          c:
                            type: string
                            example: '9540.82761333'
                            description: 这根K线期间末一笔成交价
                          h:
                            type: string
                            example: '9540.82761333'
                            description: 这根K线期间最高成交价
                          l:
                            type: string
                            example: '9539.66961333'
                            description: 这根K线期间最低成交价
                          v:
                            type: string
                            example: '0'
                            description: 无意义字段
                          'n':
                            type: integer
                            example: 19
                            format: int64
                            description: 这根K线更新期间数据数量
                          x:
                            type: boolean
                            example: false
                            description: 这根K线是否完结(是否已经开始下一根K线)
                          q:
                            type: string
                            example: '0'
                            description: 无意义字段
                          V:
                            type: string
                            example: '0'
                            description: 无意义字段
                          Q:
                            type: string
                            example: '0'
                            description: 无意义字段
                          B:
                            type: string
                            example: '0'
                            description: 无意义字段
                        description: K 线数据
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@markPriceKline_1m
                data:
                  e: markPrice_kline
                  E: 1591267398004
                  ps: BTCUSD
                  k:
                    t: 1591267380000
                    T: 1591267439999
                    s: BTCUSD_200626
                    i: 1m
                    f: 1591267380000
                    L: 1591267398000
                    o: '9539.67161333'
                    c: '9540.82761333'
                    h: '9540.82761333'
                    l: '9539.66961333'
                    v: '0'
                    'n': 19
                    x: false
                    q: '0'
                    V: '0'
                    Q: '0'
                    B: '0'
  /{pair}@markPrice@{updateSpeed}:
    post:
      summary: 特定pair最新MarkPrice
      description: |-
        特定pair最新MarkPrice

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM);`fstream` 与 `dstream` 都可订阅 UM 或 CM 的 symbol。
      operationId: markPriceOfAllSymbolsOfAPair
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#mark-price-of-all-symbols-of-apair
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//markPriceOfAllSymbolsOfAPair.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//mark_price_of_all_symbols_of_a_pair.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//mark_price_of_all_symbols_of_a_pair.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//MarkPriceOfAllSymbolsOfAPairExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//MarkPriceOfAllSymbolsOfAPair/MarkPriceOfAllSymbolsOfAPair.go
      x-update-speed: 3000ms OR 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: pair
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
        - name: updateSpeed
          in: path
          required: false
          schema:
            type: string
            example: 1s
            enum:
              - 1s
          description: WebSocket 流更新速度
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@markPrice@1s
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@markPrice@1s
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 某个标的交易对下所有合约的标记价格流
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    e:
                      type: string
                      example: markPriceUpdate
                      enum:
                        - markPriceUpdate
                      description: 事件类型
                    E:
                      type: integer
                      example: 1596095725000
                      format: int64
                      description: 事件时间
                    s:
                      type: string
                      example: BTCUSD_201225
                      description: 交易对
                    p:
                      type: string
                      example: '10934.62615417'
                      description: 标记价格
                    P:
                      type: string
                      example: '10962.17178236'
                      description: 预估结算价,仅在结算前最后一小时有参考价值
                    i:
                      type: string
                      example: '10933.62615417'
                      description: 指数价格
                    r:
                      type: string
                      example: ''
                      description: 资金费率，对非永续合约显示""
                    T:
                      type: integer
                      example: 0
                      format: int64
                      description: 下个资金时间,对非永续合约显示0
                    st:
                      type: integer
                      example: 1
                      description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                - e: markPriceUpdate
                  E: 1596095725000
                  s: BTCUSD_201225
                  p: '10934.62615417'
                  P: '10962.17178236'
                  i: '10933.62615417'
                  r: ''
                  T: 0
                  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: array
                    items:
                      type: object
                      properties:
                        e:
                          type: string
                          example: markPriceUpdate
                          enum:
                            - markPriceUpdate
                          description: 事件类型
                        E:
                          type: integer
                          example: 1596095725000
                          format: int64
                          description: 事件时间
                        s:
                          type: string
                          example: BTCUSD_201225
                          description: 交易对
                        p:
                          type: string
                          example: '10934.62615417'
                          description: 标记价格
                        P:
                          type: string
                          example: '10962.17178236'
                          description: 预估结算价,仅在结算前最后一小时有参考价值
                        i:
                          type: string
                          example: '10933.62615417'
                          description: 指数价格
                        r:
                          type: string
                          example: ''
                          description: 资金费率，对非永续合约显示""
                        T:
                          type: integer
                          example: 0
                          format: int64
                          description: 下个资金时间,对非永续合约显示0
                        st:
                          type: integer
                          example: 1
                          description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@markPrice@1s
                data:
                  - e: markPriceUpdate
                    E: 1596095725000
                    s: BTCUSD_201225
                    p: '10934.62615417'
                    P: '10962.17178236'
                    i: '10933.62615417'
                    r: ''
                    T: 0
                    st: 1
  /{symbol}@markPrice@{updateSpeed}:
    post:
      summary: 最新MarkPrice
      description: |-
        标记价格更新流

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM);`fstream` 与 `dstream` 都可订阅 UM 或 CM 的 symbol。
      operationId: markPriceStream
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#mark-price-stream
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//markPriceStream.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//mark_price_stream.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//mark_price_stream.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//MarkPriceStreamExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//MarkPriceStream/MarkPriceStream.go
      x-update-speed: 3000ms OR 1000ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
        - name: updateSpeed
          in: path
          required: false
          schema:
            type: string
            example: 1s
            enum:
              - 1s
          description: WebSocket 流更新速度
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@markPrice@1s
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@markPrice@1s
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 标记价格流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: markPriceUpdate
                    enum:
                      - markPriceUpdate
                    description: 事件类型
                  E:
                    type: integer
                    example: 1596095725000
                    format: int64
                    description: 事件时间
                  s:
                    type: string
                    example: BTCUSD_201225
                    description: 交易对
                  p:
                    type: string
                    example: '10934.62615417'
                    description: 标记价格
                  P:
                    type: string
                    example: '10962.17178236'
                    description: 预估结算价,仅在结算前最后一小时有参考价值
                  i:
                    type: string
                    example: '10933.62615417'
                    description: 指数价格
                  r:
                    type: string
                    example: ''
                    description: 资金费率，对非永续合约显示""
                  T:
                    type: integer
                    example: 0
                    format: int64
                    description: 下个资金时间,对非永续合约显示0
                  st:
                    type: integer
                    example: 1
                    description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: markPriceUpdate
                E: 1596095725000
                s: BTCUSD_201225
                p: '10934.62615417'
                P: '10962.17178236'
                i: '10933.62615417'
                r: ''
                T: 0
                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
                        enum:
                          - markPriceUpdate
                        description: 事件类型
                      E:
                        type: integer
                        example: 1596095725000
                        format: int64
                        description: 事件时间
                      s:
                        type: string
                        example: BTCUSD_201225
                        description: 交易对
                      p:
                        type: string
                        example: '10934.62615417'
                        description: 标记价格
                      P:
                        type: string
                        example: '10962.17178236'
                        description: 预估结算价,仅在结算前最后一小时有参考价值
                      i:
                        type: string
                        example: '10933.62615417'
                        description: 指数价格
                      r:
                        type: string
                        example: ''
                        description: 资金费率，对非永续合约显示""
                      T:
                        type: integer
                        example: 0
                        format: int64
                        description: 下个资金时间,对非永续合约显示0
                      st:
                        type: integer
                        example: 1
                        description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@markPrice@1s
                data:
                  e: markPriceUpdate
                  E: 1596095725000
                  s: BTCUSD_201225
                  p: '10934.62615417'
                  P: '10962.17178236'
                  i: '10933.62615417'
                  r: ''
                  T: 0
                  st: 1
  /{symbol}@depth{levels}@{updateSpeed}:
    post:
      summary: 有限档深度信息
      description: |-
        买卖双方前几档的深度信息。

        > **迁移后**,payload 末尾新增 `st` 字段(`1` = UM,`2` = CM)。
      operationId: partialBookDepthStreams
      externalDocs:
        url: https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-coin-m-futures/api/ws-streams/~#partial-book-depth-streams
      x-connectors-examples:
        ts: https://raw.githubusercontent.com/binance/binance-connector-js/master/clients/derivatives-trading-coin-futures/examples/websocket-streams//partialBookDepthStreams.ts
        rust: https://raw.githubusercontent.com/binance/binance-connector-rust/main/examples/derivatives_trading_coin_futures/websocket_streams//partial_book_depth_streams.rs
        python: https://raw.githubusercontent.com/binance/binance-connector-python/master/clients/derivatives_trading_coin_futures/examples/websocket_streams//partial_book_depth_streams.py
        java: https://raw.githubusercontent.com/binance/binance-connector-java/master/examples/derivatives-trading-coin-futures/src/main/java/com/binance/connector/client/derivatives_trading_coin_futures/websocket/stream/websocketmarketstreams//PartialBookDepthStreamsExample.java
        go: https://raw.githubusercontent.com/binance/binance-connector-go/main/clients/derivativestradingcoinfutures/examples/websocketstreams/WebsocketMarketStreamsAPI//PartialBookDepthStreams/PartialBookDepthStreams.go
      x-update-speed: 250ms, 500ms or 100ms
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: string
            example: e9d6b4349871b40611412680b3445fac
          description: 唯一的 WebSocket 请求 ID.
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            example: btcusdt
          description: 交易对参数
        - name: levels
          in: path
          required: true
          schema:
            type: string
            example: 10
            enum:
              - 5
              - 10
              - 20
          description: levels 参数
        - name: updateSpeed
          in: path
          required: false
          schema:
            type: string
            example: 100ms
            enum:
              - 100ms
              - 500ms
          description: WebSocket 流更新速度
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: WebSocket 数据流方法名称。
                  enum:
                    - SUBSCRIBE
                  example: SUBSCRIBE
                params:
                  type: array
                  items:
                    type: string
                  description: 要订阅的数据流列表。
                  example:
                    - btcusdt@depth10@100ms
                id:
                  type: string
                  example: e9d6b4349871b40611412680b3445fac
                  description: 唯一的 WebSocket 请求 ID。
              required:
                - method
                - params
                - id
              additionalProperties: false
            example:
              method: SUBSCRIBE
              params:
                - btcusdt@depth10@100ms
              id: e9d6b4349871b40611412680b3445fac
      responses:
        Raw Stream:
          description: 部分深度流
          content:
            application/json:
              schema:
                type: object
                properties:
                  e:
                    type: string
                    example: depthUpdate
                    enum:
                      - depthUpdate
                    description: 事件类型
                  E:
                    type: integer
                    example: 1591269996801
                    format: int64
                    description: 事件时间
                  T:
                    type: integer
                    example: 1591269996646
                    format: int64
                    description: 撮合时间
                  s:
                    type: string
                    example: BTCUSD_200626
                    description: 交易对
                  ps:
                    type: string
                    example: BTCUSD
                    description: 标的交易对
                  U:
                    type: integer
                    example: 17276694
                    format: int64
                    description: 从上次推送至今新增的第一个 update Id
                  u:
                    type: integer
                    example: 17276701
                    format: int64
                    description: 更新 ID
                  pu:
                    type: integer
                    example: 17276678
                    format: int64
                    description: 上次推送的最后一个update Id(即上条消息的‘u’)
                  b:
                    type: array
                    items:
                      type: array
                      items:
                        type: string
                        example: '9523.0'
                    description: 买方
                  a:
                    type: array
                    items:
                      type: array
                      items:
                        type: string
                        example: '9524.6'
                    description: 卖方
                  st:
                    type: integer
                    example: 1
                    description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
              example:
                e: depthUpdate
                E: 1591269996801
                T: 1591269996646
                s: BTCUSD_200626
                ps: BTCUSD
                U: 17276694
                u: 17276701
                pu: 17276678
                b:
                  - - '9523.0'
                a:
                  - - '9524.6'
                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
                        enum:
                          - depthUpdate
                        description: 事件类型
                      E:
                        type: integer
                        example: 1591269996801
                        format: int64
                        description: 事件时间
                      T:
                        type: integer
                        example: 1591269996646
                        format: int64
                        description: 撮合时间
                      s:
                        type: string
                        example: BTCUSD_200626
                        description: 交易对
                      ps:
                        type: string
                        example: BTCUSD
                        description: 标的交易对
                      U:
                        type: integer
                        example: 17276694
                        format: int64
                        description: 从上次推送至今新增的第一个 update Id
                      u:
                        type: integer
                        example: 17276701
                        format: int64
                        description: 更新 ID
                      pu:
                        type: integer
                        example: 17276678
                        format: int64
                        description: 上次推送的最后一个update Id(即上条消息的‘u’)
                      b:
                        type: array
                        items:
                          type: array
                          items:
                            type: string
                            example: '9523.0'
                        description: 买方
                      a:
                        type: array
                        items:
                          type: array
                          items:
                            type: string
                            example: '9524.6'
                        description: 卖方
                      st:
                        type: integer
                        example: 1
                        description: (迁移后新增) Symbol 类型:1 = UM,2 = CM
                required:
                  - stream
                  - data
                additionalProperties: false
              example:
                stream: btcusdt@depth10@100ms
                data:
                  e: depthUpdate
                  E: 1591269996801
                  T: 1591269996646
                  s: BTCUSD_200626
                  ps: BTCUSD
                  U: 17276694
                  u: 17276701
                  pu: 17276678
                  b:
                    - - '9523.0'
                  a:
                    - - '9524.6'
                  st: 1
components:
  schemas:
    accountConfigUpdate:
      type: object
      properties:
        e:
          type: string
          enum:
            - ACCOUNT_CONFIG_UPDATE
          description: 事件类型
        E:
          type: integer
          example: 1611646737479
          format: int64
          description: 事件时间
        T:
          type: integer
          example: 1611646737476
          format: int64
          description: 撮合时间
        ac:
          type: object
          properties:
            s:
              type: string
              example: BTCUSD_PERP
              description: 交易对
            l:
              type: integer
              example: 25
              format: int64
              description: 杠杆倍数
    accountUpdate:
      type: object
      properties:
        e:
          type: string
          enum:
            - ACCOUNT_UPDATE
          description: 事件类型
        E:
          type: integer
          example: 1564745798939
          format: int64
          description: 事件时间
        T:
          type: integer
          example: 1564745798938
          format: int64
          description: 撮合时间
        i:
          type: string
          example: SfsR
          description: 账户唯一识别码 accountAlias
        a:
          type: object
          description: 账户更新事件
          properties:
            m:
              type: string
              example: ORDER
              description: 事件推出原因
            B:
              type: array
              description: 余额信息
              items:
                type: object
                properties:
                  a:
                    type: string
                    example: BTC
                    description: 资产名称
                  wb:
                    type: string
                    example: '122624.12345678'
                    description: 钱包余额
                  cw:
                    type: string
                    example: '100.12345678'
                    description: 除去逐仓保证金的钱包余额
                  bc:
                    type: string
                    example: '50.12345678'
                    description: 除去盈亏与交易手续费以外的钱包余额改变量
            P:
              type: array
              items:
                type: object
                properties:
                  s:
                    type: string
                    example: BTCUSD_200925
                    description: 交易对
                  pa:
                    type: string
                    example: '0'
                    description: 仓位
                  ep:
                    type: string
                    example: '0.0'
                    description: 入仓价格
                  bep:
                    type: string
                    example: '0.0'
                    description: 盈亏平衡价
                  cr:
                    type: string
                    example: '200'
                    description: (费前)累计实现损益
                  up:
                    type: string
                    example: '0'
                    description: 持仓未实现盈亏
                  mt:
                    type: string
                    example: isolated
                    description: 保证金模式
                  iw:
                    type: string
                    example: '0.00000000'
                    description: 若为逐仓，仓位保证金
                  ps:
                    type: string
                    example: BOTH
                    description: 持仓方向
    gridUpdate:
      type: object
      properties:
        e:
          type: string
          enum:
            - GRID_UPDATE
          description: 事件类型
        T:
          type: integer
          example: 1669262908216
          format: int64
          description: 撮合时间
        E:
          type: integer
          example: 1669262908218
          format: int64
          description: 事件时间
        gu:
          type: object
          properties:
            si:
              type: integer
              example: 176057039
              format: int64
              description: 策略 ID
            st:
              type: string
              example: GRID
              description: 策略类型
            ss:
              type: string
              example: WORKING
              description: 策略状态
            s:
              type: string
              example: BTCUSDT
              description: 交易对
            r:
              type: string
              example: '-0.00300716'
              description: 已实现 PNL
            up:
              type: string
              example: '16720'
              description: 未配对均价
            uq:
              type: string
              example: '-0.001'
              description: 未配对数量
            uf:
              type: string
              example: '-0.00300716'
              description: 未配对手续费
            mp:
              type: string
              example: '0.0'
              description: 已配对 PNL
            ut:
              type: integer
              example: 1669262908197
              format: int64
              description: 更新时间
    listenKeyExpired:
      type: object
      properties:
        e:
          type: string
          enum:
            - listenKeyExpired
          description: 事件类型
        E:
          type: integer
          example: 1576653824250
          format: int64
          description: 事件时间
        listenKey:
          type: string
          example: WsCMN0a4KHUPTQuX6IUnqEZfB1inxmv1qR4kbf1LuEjur5VdbzqvyxqG9TSjVVxv
    marginCall:
      type: object
      properties:
        e:
          type: string
          enum:
            - MARGIN_CALL
          description: 事件类型
        E:
          type: integer
          example: 1587727187525
          format: int64
          description: 事件时间
        i:
          type: string
          example: SfsR
          description: 账户唯一识别码 accountAlias
        cw:
          type: string
          example: '3.16812045'
          description: 除去逐仓仓位保证金的钱包余额, 仅在全仓 margin call 情况下推送此字段
        p:
          type: array
          description: 涉及持仓
          items:
            type: object
            properties:
              s:
                type: string
                example: BTCUSD_200925
                description: Symbol
              ps:
                type: string
                example: LONG
                description: 持仓方向
              pa:
                type: string
                example: '132'
                description: 仓位
              mt:
                type: string
                example: CROSSED
                description: 保证金模式
              iw:
                type: string
                example: '0'
                description: 若为逐仓，仓位保证金
              mp:
                type: string
                example: '9187.17127000'
                description: 标记价格
              up:
                type: string
                example: '-1.166074'
                description: 未实现盈亏
              mm:
                type: string
                example: '1.614445'
                description: 持仓需要的维持保证金
    orderTradeUpdate:
      type: object
      properties:
        e:
          type: string
          enum:
            - ORDER_TRADE_UPDATE
          description: 事件类型
        E:
          type: integer
          example: 1591274595442
          format: int64
          description: 事件时间
        T:
          type: integer
          example: 1591274595442
          format: int64
          description: 撮合时间
        i:
          type: string
          example: SfsR
          description: 账户唯一识别码 accountAlias
        o:
          type: object
          properties:
            s:
              type: string
              example: BTCUSD_200925
              description: 交易对
            c:
              type: string
              example: TEST
              description: 客户端自定订单ID
            S:
              type: string
              example: SELL
              description: 订单方向
            o:
              type: string
              example: TRAILING_STOP_MARKET
              description: 订单类型
            f:
              type: string
              example: GTC
              description: 有效方式
            q:
              type: string
              example: '2'
              description: 订单原始数量
            p:
              type: string
              example: '0'
              description: 订单原始价格
            ap:
              type: string
              example: '0'
              description: 订单平均价格
            sp:
              type: string
              example: '9103.1'
              description: 订单停止价格
            x:
              type: string
              example: NEW
              description: 本次事件的具体执行类型
            X:
              type: string
              example: NEW
              description: 订单的当前状态
            i:
              type: integer
              example: 8888888
              format: int64
              description: 订单ID
            l:
              type: string
              example: '0'
              description: 订单末次成交量
            z:
              type: string
              example: '0'
              description: 订单累计已成交量
            L:
              type: string
              example: '0'
              description: 订单末次成交价格
            ma:
              type: string
              example: BTC
              description: 保证金资产类型
            'N':
              type: string
              example: BTC
              description: 该成交手续费资产类型
            'n':
              type: string
              example: '0'
              description: 该成交手续费数量
            T:
              type: integer
              example: 1591274595442
              format: int64
              description: 成交时间
            t:
              type: integer
              example: 0
              format: int64
              description: 成交ID
            rp:
              type: string
              example: '0'
              description: 该成交已实现盈亏
            b:
              type: string
              example: '0'
              description: 买单净值
            a:
              type: string
              example: '0'
              description: 卖单净值
            m:
              type: boolean
              example: false
              description: 该成交是作为挂单成交吗？
            R:
              type: boolean
              example: false
              description: 是否是只减仓单
            wt:
              type: string
              example: CONTRACT_PRICE
              description: 触发价类型
            ot:
              type: string
              example: TRAILING_STOP_MARKET
              description: 原始订单类型
            ps:
              type: string
              example: LONG
              description: 持仓方向
            cp:
              type: boolean
              example: false
              description: 是否为触发平仓单
            AP:
              type: string
              example: '9476.8'
              description: 追踪止损激活价格
            cr:
              type: string
              example: '5.0'
              description: 追踪止损回调比例
            pP:
              type: boolean
              example: false
              description: 是否开启条件单触发保护
            V:
              type: string
              example: EXPIRE_TAKER
              description: 自成交防止模式
            pm:
              type: string
              example: OPPONENT
              description: 价格匹配模式
            er:
              type: string
              example: '0'
              description: 过期原因
    strategyUpdate:
      type: object
      properties:
        e:
          type: string
          enum:
            - STRATEGY_UPDATE
          description: 事件类型
        T:
          type: integer
          example: 1669261797627
          format: int64
          description: 撮合时间
        E:
          type: integer
          example: 1669261797628
          format: int64
          description: 事件时间
        su:
          type: object
          properties:
            si:
              type: integer
              example: 176054594
              format: int64
              description: 策略 ID
            st:
              type: string
              example: GRID
              description: 策略类型
            ss:
              type: string
              example: NEW
              description: 策略状态
            s:
              type: string
              example: BTCUSDT
              description: 交易对
            ut:
              type: integer
              example: 1669261797627
              format: int64
              description: 更新时间
            c:
              type: integer
              example: 8007
              format: int64
              description: opCode
    User Data Stream Events:
      oneOf:
        - $ref: '#/components/schemas/accountConfigUpdate'
        - $ref: '#/components/schemas/accountUpdate'
        - $ref: '#/components/schemas/gridUpdate'
        - $ref: '#/components/schemas/listenKeyExpired'
        - $ref: '#/components/schemas/marginCall'
        - $ref: '#/components/schemas/orderTradeUpdate'
        - $ref: '#/components/schemas/strategyUpdate'
      discriminator:
        propertyName: e
        mapping:
          ACCOUNT_CONFIG_UPDATE: '#/components/schemas/accountConfigUpdate'
          ACCOUNT_UPDATE: '#/components/schemas/accountUpdate'
          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'
