hollaex-node-lib 2.15.0 → 2.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/example/hollaex.js +2 -2
- package/kit.js +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -143,12 +143,14 @@ client.unsubscribe(['orderbook']);
|
|
|
143
143
|
|
|
144
144
|
Here is the list of channels you can subscribe to:
|
|
145
145
|
|
|
146
|
-
- `orderbook`
|
|
147
|
-
- `
|
|
146
|
+
- `orderbook` (Available publicly)
|
|
147
|
+
- `trade` (Available publicly)
|
|
148
148
|
- `order` (Only available with authentication. Receive order updates)
|
|
149
|
+
- `usertrade` (Only available with authentication. Receive user trades)
|
|
149
150
|
- `wallet` (Only available with authentication. Receive balance updates)
|
|
150
151
|
- `deposit` (Only available with authentication. Receive deposit notifications)
|
|
151
152
|
- `withdrawal` (Only available with authentication. Receive withdrawal notifications)
|
|
153
|
+
- `admin` (Only available with authentication for the exchange administrator. Receive exchange operations such as deposits and withdrawals of all users)
|
|
152
154
|
|
|
153
155
|
|
|
154
156
|
For public channels (`orderbook`, `trade`), you can subscribe to specific symbols as follows:
|
package/example/hollaex.js
CHANGED
|
@@ -22,7 +22,7 @@ client
|
|
|
22
22
|
symbols : xht-usdt
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
client.connect(['
|
|
25
|
+
client.connect(['trade']);
|
|
26
26
|
|
|
27
27
|
client.ws.on('message', (data) => {
|
|
28
28
|
data = JSON.parse(data);
|
|
@@ -33,4 +33,4 @@ client.ws.on('message', (data) => {
|
|
|
33
33
|
|
|
34
34
|
setTimeout(() => {
|
|
35
35
|
client.disconnect();
|
|
36
|
-
}, 10000);
|
|
36
|
+
}, 10000);
|
package/kit.js
CHANGED
|
@@ -993,7 +993,7 @@ class HollaExKit {
|
|
|
993
993
|
return createRequest(verb, `${this.apiUrl}${path}`, headers, { data });
|
|
994
994
|
}
|
|
995
995
|
|
|
996
|
-
|
|
996
|
+
/**
|
|
997
997
|
* Create exchange deposit by admin
|
|
998
998
|
* @param {number} userId - The identifier of the user
|
|
999
999
|
* @param {string} currency - The currency to specify
|
|
@@ -1371,7 +1371,6 @@ class HollaExKit {
|
|
|
1371
1371
|
orderBy: null,
|
|
1372
1372
|
order: null,
|
|
1373
1373
|
startDate: null,
|
|
1374
|
-
startDate: null,
|
|
1375
1374
|
format: null
|
|
1376
1375
|
}
|
|
1377
1376
|
) {
|
|
@@ -2043,7 +2042,7 @@ class HollaExKit {
|
|
|
2043
2042
|
return createRequest(verb, `${this.apiUrl}${path}`, headers);
|
|
2044
2043
|
}
|
|
2045
2044
|
|
|
2046
|
-
|
|
2045
|
+
/**
|
|
2047
2046
|
* Deactivate exchange user account by admin
|
|
2048
2047
|
* @param {number} userId - The identifier of the user to deactivate their exchange account
|
|
2049
2048
|
* @return {object} A JSON object with message
|