关于API将调整V2版本Websocket账户变更推送接口的公告

尊敬的用户:

火币Global将更改现有V2版本Websocket账户变更推送接口“accounts.update#${mode}”的数据行为 – 在用户订阅成功后将首先推送当前各账户余额及可用余额。

生效日期:2020年3月31日(GMT+8)
具体变更细节及参数要求,请参考API文档:https://huobiapi.github.io/docs/spot/v1/cn/

火币全球站
2020年3月20日

以下为变更细则:

当前,用户在订阅V2版本Websocket主题“accounts.update#${mode}”成功后,服务器将开始持续推送账户余额/可用余额的变更(如有)。

Sample message:

 

{

    "action":"push",

    "ch":"accounts.update#1",

    "data":{

        "currency":"usdt",

        "accountId":9913039,

        "available":"7077271.672890821131809856",

        "changeType":"order.place",

        "accountType":"trade",

        "changeTime":1583850477086

    }

}

 

{

    "action":"push",

    "ch":"accounts.update#1",

    "data":{

        "currency":"usdt",

        "accountId":9913039,

        "available":"7077349.516890821131809856",

        "changeType":"order.match",

        "accountType":"trade",

        "changeTime":1583850477157

    }

}

 

自2020年3月31日起,火币Global将更改此订阅主题的数据行为。在用户订阅成功后,该订阅主题将首先推送当前各账户静态余额及静态可用余额,然后再推送变更(如有)。

 

Sample message:

 

Static value of all accounts:

 

{

    "action":"push",

    "ch":"accounts.update#1",

    "data":{

        "currency":"btc",

        "accountId":9913039,

        "balance":"87989.992991886438737834",

        "available":"82155.950837478846459246",

        "changeType":null,

        "accountType":"trade",

        "changeTime":null

    }

}

 

{

    "action":"push",

    "ch":"accounts.update#1",

    "data":{

        "currency":"usdt",

        "accountId":9913039,

        "balance":"8991364.196210821131809856",

        "available":"7077343.525210821131809856",

        "changeType":null,

        "accountType":"trade",

        "changeTime":null

    }

}

 

Account change updates:

 

{

    "action":"push",

    "ch":"accounts.update#1",

    "data":{

        "currency":"usdt",

        "accountId":9913039,

        "available":"7077271.672890821131809856",

        "changeType":"order.place",

        "accountType":"trade",

        "changeTime":1583850477086

    }

}

 

{

    "action":"push",

    "ch":"accounts.update#1",

    "data":{

        "currency":"usdt",

        "accountId":9913039,

        "available":"7077349.516890821131809856",

        "changeType":"order.match",

        "accountType":"trade",

        "changeTime":1583850477157

    }

}