hollaex-node-lib 2.14.0 → 2.14.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/example/hollaex.js +8 -2
- package/kit.js +1 -0
- package/package.json +2 -3
package/example/hollaex.js
CHANGED
|
@@ -6,7 +6,13 @@ const API_SECRET = process.env.API_SECRET || '73879b785c50e235a0e2e972a899eba569
|
|
|
6
6
|
const client = new HollaEx({ apiURL: 'https://api.sandbox.hollaex.com', apiKey: API_KEY, apiSecret: API_SECRET });
|
|
7
7
|
|
|
8
8
|
// client
|
|
9
|
-
// .
|
|
9
|
+
// .createOrder(
|
|
10
|
+
// 'xht-usdt',
|
|
11
|
+
// 'buy',
|
|
12
|
+
// 0.1,
|
|
13
|
+
// 'market',
|
|
14
|
+
// // 0
|
|
15
|
+
// )
|
|
10
16
|
// .then(async (data) => {
|
|
11
17
|
// console.log(data);
|
|
12
18
|
// // console.log('The volume is', data.volume);
|
|
@@ -24,7 +30,7 @@ const client = new HollaEx({ apiURL: 'https://api.sandbox.hollaex.com', apiKey:
|
|
|
24
30
|
symbols : xht-usdt
|
|
25
31
|
*/
|
|
26
32
|
|
|
27
|
-
client.connect(['
|
|
33
|
+
client.connect(['usertrade']);
|
|
28
34
|
|
|
29
35
|
client.ws.on('message', (data) => {
|
|
30
36
|
data = JSON.parse(data);
|
package/kit.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hollaex-node-lib",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.1",
|
|
4
4
|
"description": "hollaex api and websocket library for nodejs",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"repository": {
|
|
38
38
|
"type": "git",
|
|
39
|
-
"url": "https://github.com/
|
|
39
|
+
"url": "https://github.com/hollaex/hollaex-node-lib"
|
|
40
40
|
},
|
|
41
|
-
"author": "bitHolla Inc",
|
|
42
41
|
"license": "MIT"
|
|
43
42
|
}
|