2023 年 4 月 20 日

  • 更新
重大 WS API 变更
  • 从组合书报价中移除了 open_interest。

    受影响的端点是:

    - public/ticker

    受影响的订阅:

    - ticker.{instrument_name}.{interval}

    - incremental_ticker.{instrument_name}

  • private/close_position: 如果给定价格不是报价大小的倍数,则返回错误

  • 错误码 11098account_locked) 将在账户被锁定时返回。

  • 如果参数无效(时间、交易编号等),交易端点将返回错误而不是空结果:

    - public/get_last_trades_by_currency

    - public/get_last_trades_by_currency_and_time

    - public/get_last_trades_by_instrument

    - public/get_last_trades_by_instrument_and_time

    - private/get_user_trades_by_currency

    - private/get_user_trades_by_currency_and_time

    - private/get_user_trades_by_instrument

    - private/get_user_trades_by_instrument_and_time

不间断的 WS API 更改
  • 已添加 volume_usd 从期权到股票行情和账面摘要的线性期货的 volume_notional(按报价货币计算的交易量)。

    受影响的端点:

    - public/ticker

    - public/get_book_summary_by_currency

    - public/get_book_summary_by_instrument

  • 用于按标签获取未平仓订单的新端点:

    - private/get_open_orders_by_label

    - private/get_order_state_by_label

非破坏性修复更改

增加了通过以下方式搜索已关闭订单的可能性 ClOrdID 或者 DeribitLabel 通过 OrderMassStatusRequest (例如,当连接中断且未收到服务器端生成的 ID 时)。要做到这一点,你可以设置 MassStatusReqType=7MassStatusReqIDType=1 供搜索依据 ClOrdID 或者使用 MassStatusReqIDType=2 供搜索依据 DeribitLabel。在这两种情况下, Currency 或者 Symbol 是必填的。

不间断多播更改

重命名 future_typeinstrument_type 在仪器事件中。