hollaex-node-lib 2.19.2 → 2.19.3

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.
@@ -1,21 +1,21 @@
1
1
  const HollaEx = require('../index');
2
2
  require('dotenv').load();
3
3
 
4
- const API_KEY = process.env.API_KEY || '';
5
- const API_SECRET = process.env.API_SECRET || '';
4
+ const API_KEY = process.env.API_KEY || '28f1da41a9c436dcf659cc6257700e2b239bea4b';
5
+ const API_SECRET = process.env.API_SECRET || '27451f237cb685d669f9addc84b93c8982a3e69bb31f3acbf6';
6
6
  const client = new HollaEx({
7
- apiURL: 'https://api.hollaex.com',
8
- wsURL: 'wss://api.hollaex.com/stream',
7
+ apiURL: 'https://api.sandbox.hollaex.com',
8
+ wsURL: 'wss://api.sandbox.hollaex.com/stream',
9
9
  baseURL: '/v2',
10
10
  apiKey: API_KEY,
11
11
  apiSecret: API_SECRET
12
12
  });
13
13
 
14
14
  client
15
- .getTicker('xht-usdt')
15
+ .getExchangeUsers({ bank_key: 'iban', bank_value: 'asvsdf' })
16
16
  .then((data) => {
17
17
  console.log(data);
18
- console.log('The volume is', data.volume);
18
+ // console.log('The volume is', data.volume);
19
19
  })
20
20
  .catch((err) => {
21
21
  console.log(err);
@@ -28,12 +28,12 @@ client
28
28
  symbols : xht-usdt
29
29
  */
30
30
 
31
- client.connect(['orderbook:xht-usdt']);
31
+ // client.connect(['orderbook:xht-usdt']);
32
32
 
33
- client.ws.on('message', (data) => {
34
- data = JSON.parse(data);
35
- console.log(data);
36
- });
33
+ // client.ws.on('message', (data) => {
34
+ // data = JSON.parse(data);
35
+ // console.log(data);
36
+ // });
37
37
 
38
38
 
39
39
 
package/kit.js CHANGED
@@ -1798,7 +1798,7 @@ class HollaExKit {
1798
1798
  }
1799
1799
 
1800
1800
  if (isString(opts.bank_key) && isString(opts.bank_value)) {
1801
- params += `&${opts.bank_key}=${opts.bank_value}`;
1801
+ params += `&bank_key=${opts.bank_key}&bank_value=${opts.bank_value}`;
1802
1802
  }
1803
1803
  if (isBoolean(opts.activated)) {
1804
1804
  params += `&activated=${opts.activated}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hollaex-node-lib",
3
- "version": "2.19.2",
3
+ "version": "2.19.3",
4
4
  "description": "hollaex api and websocket library for nodejs",
5
5
  "main": "index.js",
6
6
  "dependencies": {