API Update on 2020/01/07-Announcement on Account Change Notification API Optimization

Dear users,

HTX has added a new type of notification (mode=2:accounts.update#2) to the Account Change Notification API, allowing users to receive only one notification message about changes in total and/or available balances in a timely manner.

Effective Date: January 6th, 2021 (UTC+8)

Please check【HTX API Docs】for details.

HTX
January 7th, 2021

 

How will the API change affect me?

API users need to evaluate how the API improvements will help with their trades and update relevant Apps accordingly.

All changes will be uploaded to【HTX API Docs】upon the effectiveness of the above announcement.

Account Update Subscription

Subject

accounts.update#${mode}

Available Types of Notifications

1. Notifications will be sent when balances change.

2. Notifications will be sent in separate messages when total balances and/or available balances change.

3. Notifications will be sent in one message when total balances and/or available balances change. (New)

Note: You will not receive notifications on changes in balances caused by asset transfers between your exchange and futures accounts.

Parameter

Parameter Type of Data Description
mode integer Notification type; Virtual value: 0, 1, 2; Default value: 0

Examples

1. No mode

accounts.update

Send me notifications when balances change.

2. mode=0

accounts.update#0

Send me notifications when balances change.

3. mode=1

accounts.update#1

Send me notifications separately when total balances and/or available balances change.

4. mode=2

accounts.update#2

Send me notifications when total balances and/or available balances change. (New)