hollaex-node-lib 2.19.1 → 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
@@ -1737,6 +1737,9 @@ class HollaExKit {
1737
1737
  * @param {string} opts.search - The search text to filter by, pass undefined to receive data on all fields
1738
1738
  * @param {boolean} opts.pending - The pending field to filter by, pass undefined to receive all data
1739
1739
  * @param {string} opts.pendingType - Th pending type info to filter by, pass undefined to receive data
1740
+ * @param {string} opts.bank_key - bank query key to fetch specific bank
1741
+ * @param {string} opts.bank_value - bank query value to fetch specific bank
1742
+ * @param {boolean} opts.activated - bank activated query
1740
1743
  * @param {number} opts.limit - Amount of users per page. Maximum: 50. Default: 50
1741
1744
  * @param {number} opts.page - Page of user data. Default: 1
1742
1745
  * @param {string} opts.orderBy - The field to order data by e.g. amount, id.
@@ -1758,6 +1761,9 @@ class HollaExKit {
1758
1761
  page: null,
1759
1762
  orderBy: null,
1760
1763
  order: null,
1764
+ bank_key: null,
1765
+ bank_value: null,
1766
+ activated: null,
1761
1767
  startDate: null,
1762
1768
  endDate: null,
1763
1769
  format: null
@@ -1791,6 +1797,12 @@ class HollaExKit {
1791
1797
  params += `&pending_type=${opts.pendingType}`;
1792
1798
  }
1793
1799
 
1800
+ if (isString(opts.bank_key) && isString(opts.bank_value)) {
1801
+ params += `&bank_key=${opts.bank_key}&bank_value=${opts.bank_value}`;
1802
+ }
1803
+ if (isBoolean(opts.activated)) {
1804
+ params += `&activated=${opts.activated}`;
1805
+ }
1794
1806
  if (isNumber(opts.limit)) {
1795
1807
  params += `&limit=${opts.limit}`;
1796
1808
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hollaex-node-lib",
3
- "version": "2.19.1",
3
+ "version": "2.19.3",
4
4
  "description": "hollaex api and websocket library for nodejs",
5
5
  "main": "index.js",
6
6
  "dependencies": {