Dear API user,
Huobi Global is going to change the update behavior of existing version 2.0 Websocket topic “accounts.update#${mode}”, to disseminate the current static value of all accounts first, at the beginning of subscription, prior to account change updates.
Effective Date: March 31, 2020 (GMT+8)
All the changes will be updated on https://huobiapi.github.io/docs/spot/v1/en/
Huobi Global
March 20, 2020
The following are the changes in details:
Currently, when API user successful subscribed to Websocket topic “accounts.update#${mode}”, Huobi server should start to disseminate account balance change and/or available balance change to the user, if there is a change.
For example –
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
}
}
Since the effective day of this notification, after a successful subscription, Huobi server will firstly disseminate the current static value of all accounts, including both account balance and available balance, to the user, followed by account change updates if any.
For example –
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
}
}
Comments
0 comments
Article is closed for comments.