ccxt-ir 4.17.0 → 4.18.0

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.
Files changed (65) hide show
  1. package/README.md +4 -4
  2. package/dist/373.ccxt.browser.js +1 -1
  3. package/dist/373.ccxt.browser.min.js +1 -1
  4. package/dist/ccxt.browser.min.js +15 -15
  5. package/dist/cjs/ccxt.js +34 -1
  6. package/dist/cjs/package.json +1 -1
  7. package/dist/cjs/src/baazar.js +160 -0
  8. package/dist/cjs/src/daric.js +181 -0
  9. package/dist/cjs/src/digikalagold.js +178 -0
  10. package/dist/cjs/src/goldcore.js +155 -0
  11. package/dist/cjs/src/goldika.js +163 -0
  12. package/dist/cjs/src/goldis.js +157 -0
  13. package/dist/cjs/src/hamrahgold.js +171 -0
  14. package/dist/cjs/src/talapp.js +156 -0
  15. package/dist/cjs/src/zarafza.js +159 -0
  16. package/dist/cjs/src/zarminex.js +162 -0
  17. package/dist/cjs/src/zarniv.js +178 -0
  18. package/js/ccxt.d.ts +35 -2
  19. package/js/ccxt.js +24 -2
  20. package/js/src/abstract/baazar.d.ts +8 -0
  21. package/js/src/abstract/baazar.js +11 -0
  22. package/js/src/abstract/daric.d.ts +8 -0
  23. package/js/src/abstract/daric.js +11 -0
  24. package/js/src/abstract/digikalagold.d.ts +8 -0
  25. package/js/src/abstract/digikalagold.js +11 -0
  26. package/js/src/abstract/goldcore.d.ts +8 -0
  27. package/js/src/abstract/goldcore.js +11 -0
  28. package/js/src/abstract/goldika.d.ts +8 -0
  29. package/js/src/abstract/goldika.js +11 -0
  30. package/js/src/abstract/goldis.d.ts +8 -0
  31. package/js/src/abstract/goldis.js +11 -0
  32. package/js/src/abstract/hamrahgold.d.ts +8 -0
  33. package/js/src/abstract/hamrahgold.js +11 -0
  34. package/js/src/abstract/talapp.d.ts +8 -0
  35. package/js/src/abstract/talapp.js +11 -0
  36. package/js/src/abstract/zarafza.d.ts +8 -0
  37. package/js/src/abstract/zarafza.js +11 -0
  38. package/js/src/abstract/zarminex.d.ts +8 -0
  39. package/js/src/abstract/zarminex.js +11 -0
  40. package/js/src/abstract/zarniv.d.ts +9 -0
  41. package/js/src/abstract/zarniv.js +11 -0
  42. package/js/src/baazar.d.ts +20 -0
  43. package/js/src/baazar.js +159 -0
  44. package/js/src/daric.d.ts +22 -0
  45. package/js/src/daric.js +180 -0
  46. package/js/src/digikalagold.d.ts +21 -0
  47. package/js/src/digikalagold.js +177 -0
  48. package/js/src/goldcore.d.ts +20 -0
  49. package/js/src/goldcore.js +154 -0
  50. package/js/src/goldika.d.ts +20 -0
  51. package/js/src/goldika.js +162 -0
  52. package/js/src/goldis.d.ts +21 -0
  53. package/js/src/goldis.js +156 -0
  54. package/js/src/hamrahgold.d.ts +21 -0
  55. package/js/src/hamrahgold.js +170 -0
  56. package/js/src/talapp.d.ts +20 -0
  57. package/js/src/talapp.js +155 -0
  58. package/js/src/zarafza.d.ts +20 -0
  59. package/js/src/zarafza.js +158 -0
  60. package/js/src/zarminex.d.ts +20 -0
  61. package/js/src/zarminex.js +161 -0
  62. package/js/src/zarniv.d.ts +21 -0
  63. package/js/src/zarniv.js +177 -0
  64. package/js/test.js +50 -43
  65. package/package.json +1 -1
@@ -0,0 +1,170 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
7
+ // ---------------------------------------------------------------------------
8
+ import Exchange from './base/Exchange.js';
9
+ // ---------------------------------------------------------------------------
10
+ /**
11
+ * @class hamrahgold
12
+ * @augments Exchange
13
+ */
14
+ export default class hamrahgold extends Exchange {
15
+ describe() {
16
+ return this.deepExtend(super.describe(), {
17
+ 'id': 'hamrahgold',
18
+ 'name': 'HamrahGold',
19
+ 'countries': ['IR'],
20
+ 'rateLimit': 1000,
21
+ 'version': 'v1',
22
+ 'certified': false,
23
+ 'pro': false,
24
+ 'has': {
25
+ 'CORS': undefined,
26
+ 'spot': false,
27
+ 'margin': false,
28
+ 'swap': false,
29
+ 'future': false,
30
+ 'option': false,
31
+ 'fetchMarkets': true,
32
+ 'fetchTicker': true,
33
+ 'fetchTickers': true,
34
+ 'otc': true,
35
+ },
36
+ 'options': {
37
+ 'defaultType': 'otc',
38
+ },
39
+ 'urls': {
40
+ 'api': {
41
+ 'public': 'https://pwa.hamrahgold.com',
42
+ },
43
+ 'www': 'https://hamrahgold.com',
44
+ 'doc': 'https://pwa.hamrahgold.com/api/v1/market/price/xau/changes?type=sell',
45
+ },
46
+ 'api': {
47
+ 'public': {
48
+ 'get': {
49
+ 'api/v1/market/price/xau/changes': 1,
50
+ },
51
+ },
52
+ },
53
+ });
54
+ }
55
+ fetchPrice(type, params = {}) {
56
+ return this.publicGetApiV1MarketPriceXauChanges(this.extend({ 'type': type }, params));
57
+ }
58
+ async fetchMarkets(params = {}) {
59
+ const response = await this.fetchPrice('sell', params);
60
+ return [this.parseMarket(response)];
61
+ }
62
+ parseMarket(response) {
63
+ return {
64
+ 'id': 'XAU18IRT',
65
+ 'symbol': 'XAU18/IRT',
66
+ 'base': 'XAU18',
67
+ 'quote': 'IRT',
68
+ 'settle': undefined,
69
+ 'baseId': 'XAU18',
70
+ 'quoteId': 'IRT',
71
+ 'settleId': undefined,
72
+ 'type': 'otc',
73
+ 'spot': false,
74
+ 'margin': false,
75
+ 'swap': false,
76
+ 'future': false,
77
+ 'option': false,
78
+ 'active': this.safeBool(response, 'success', false),
79
+ 'contract': false,
80
+ 'linear': undefined,
81
+ 'inverse': undefined,
82
+ 'contractSize': undefined,
83
+ 'expiry': undefined,
84
+ 'expiryDatetime': undefined,
85
+ 'strike': undefined,
86
+ 'optionType': undefined,
87
+ 'precision': {
88
+ 'amount': undefined,
89
+ 'price': undefined,
90
+ },
91
+ 'limits': {
92
+ 'leverage': { 'min': undefined, 'max': undefined },
93
+ 'amount': { 'min': undefined, 'max': undefined },
94
+ 'price': { 'min': undefined, 'max': undefined },
95
+ 'cost': { 'min': undefined, 'max': undefined },
96
+ },
97
+ 'created': undefined,
98
+ 'info': response,
99
+ };
100
+ }
101
+ async fetchTicker(symbol, params = {}) {
102
+ await this.loadMarkets();
103
+ const market = this.market(symbol);
104
+ const buyResponse = await this.fetchPrice('buy', params);
105
+ const sellResponse = await this.fetchPrice('sell', params);
106
+ return this.parseTicker(buyResponse, market, sellResponse);
107
+ }
108
+ async fetchTickers(symbols = undefined, params = {}) {
109
+ await this.loadMarkets();
110
+ if (symbols !== undefined) {
111
+ symbols = this.marketSymbols(symbols);
112
+ }
113
+ const buyResponse = await this.fetchPrice('buy', params);
114
+ const sellResponse = await this.fetchPrice('sell', params);
115
+ const market = this.market('XAU18/IRT');
116
+ const ticker = this.parseTicker(buyResponse, market, sellResponse);
117
+ const result = {};
118
+ result[ticker['symbol']] = ticker;
119
+ return this.filterByArrayTickers(result, 'symbol', symbols);
120
+ }
121
+ parseTicker(buyResponse, market = undefined, sellResponse = undefined) {
122
+ const buy = this.safeDict(buyResponse, 'data', {});
123
+ const sell = this.safeDict(sellResponse, 'data', {});
124
+ const changes = this.safeDict(sell, 'changes', {});
125
+ const dailyChange = this.safeDict(changes, '1d', {});
126
+ let bid = this.safeNumber(buy, 'current');
127
+ let ask = this.safeNumber(sell, 'current');
128
+ let previousClose = this.safeNumber(dailyChange, 'price');
129
+ if (bid !== undefined) {
130
+ bid = bid / 10;
131
+ }
132
+ if (ask !== undefined) {
133
+ ask = ask / 10;
134
+ }
135
+ if (previousClose !== undefined) {
136
+ previousClose = previousClose / 10;
137
+ }
138
+ return this.safeTicker({
139
+ 'symbol': market['symbol'],
140
+ 'timestamp': undefined,
141
+ 'datetime': undefined,
142
+ 'high': undefined,
143
+ 'low': undefined,
144
+ 'bid': bid,
145
+ 'bidVolume': undefined,
146
+ 'ask': ask,
147
+ 'askVolume': undefined,
148
+ 'vwap': undefined,
149
+ 'open': undefined,
150
+ 'close': ask,
151
+ 'last': ask,
152
+ 'previousClose': previousClose,
153
+ 'change': undefined,
154
+ 'percentage': this.safeNumber(dailyChange, 'percent'),
155
+ 'average': undefined,
156
+ 'baseVolume': undefined,
157
+ 'quoteVolume': undefined,
158
+ 'info': { 'buy': buyResponse, 'sell': sellResponse },
159
+ }, market);
160
+ }
161
+ sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
162
+ let url = this.urls['api'][api] + '/' + this.implodeParams(path, params);
163
+ const query = this.omit(params, this.extractParams(path));
164
+ if (Object.keys(query).length) {
165
+ url += '?' + this.urlencode(query);
166
+ }
167
+ headers = { 'Accept': 'application/json' };
168
+ return { 'url': url, 'method': method, 'body': body, 'headers': headers };
169
+ }
170
+ }
@@ -0,0 +1,20 @@
1
+ import Exchange from './base/Exchange.js';
2
+ import { Market, Strings, Ticker, Tickers } from './base/types.js';
3
+ /**
4
+ * @class talapp
5
+ * @augments Exchange
6
+ */
7
+ export default class talapp extends Exchange {
8
+ describe(): any;
9
+ fetchMarkets(params?: {}): Promise<Market[]>;
10
+ parseMarket(response: any): Market;
11
+ fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
12
+ fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
13
+ parseTicker(response: any, market?: Market): Ticker;
14
+ sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
15
+ url: string;
16
+ method: string;
17
+ body: any;
18
+ headers: any;
19
+ };
20
+ }
@@ -0,0 +1,155 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
7
+ // ---------------------------------------------------------------------------
8
+ import Exchange from './base/Exchange.js';
9
+ // ---------------------------------------------------------------------------
10
+ /**
11
+ * @class talapp
12
+ * @augments Exchange
13
+ */
14
+ export default class talapp extends Exchange {
15
+ describe() {
16
+ return this.deepExtend(super.describe(), {
17
+ 'id': 'talapp',
18
+ 'name': 'Talapp',
19
+ 'countries': ['IR'],
20
+ 'rateLimit': 1000,
21
+ 'version': 'v1',
22
+ 'certified': false,
23
+ 'pro': false,
24
+ 'has': {
25
+ 'CORS': undefined,
26
+ 'spot': false,
27
+ 'margin': false,
28
+ 'swap': false,
29
+ 'future': false,
30
+ 'option': false,
31
+ 'fetchMarkets': true,
32
+ 'fetchTicker': true,
33
+ 'fetchTickers': true,
34
+ 'otc': true,
35
+ },
36
+ 'options': {
37
+ 'defaultType': 'otc',
38
+ },
39
+ 'urls': {
40
+ 'api': {
41
+ 'public': 'https://talapp.ir',
42
+ },
43
+ 'www': 'https://talapp.ir',
44
+ 'doc': 'https://talapp.ir/wp-json/talapp/v1/gold-prices',
45
+ },
46
+ 'api': {
47
+ 'public': {
48
+ 'get': {
49
+ 'wp-json/talapp/v1/gold-prices': 1,
50
+ },
51
+ },
52
+ },
53
+ });
54
+ }
55
+ async fetchMarkets(params = {}) {
56
+ const response = await this.publicGetWpJsonTalappV1GoldPrices(params);
57
+ return [this.parseMarket(response)];
58
+ }
59
+ parseMarket(response) {
60
+ const stale = this.safeBool(response, 'stale', false);
61
+ return {
62
+ 'id': 'XAU18IRT',
63
+ 'symbol': 'XAU18/IRT',
64
+ 'base': 'XAU18',
65
+ 'quote': 'IRT',
66
+ 'settle': undefined,
67
+ 'baseId': 'XAU18',
68
+ 'quoteId': 'IRT',
69
+ 'settleId': undefined,
70
+ 'type': 'otc',
71
+ 'spot': false,
72
+ 'margin': false,
73
+ 'swap': false,
74
+ 'future': false,
75
+ 'option': false,
76
+ 'active': !stale,
77
+ 'contract': false,
78
+ 'linear': undefined,
79
+ 'inverse': undefined,
80
+ 'contractSize': undefined,
81
+ 'expiry': undefined,
82
+ 'expiryDatetime': undefined,
83
+ 'strike': undefined,
84
+ 'optionType': undefined,
85
+ 'precision': {
86
+ 'amount': undefined,
87
+ 'price': undefined,
88
+ },
89
+ 'limits': {
90
+ 'leverage': { 'min': undefined, 'max': undefined },
91
+ 'amount': { 'min': undefined, 'max': undefined },
92
+ 'price': { 'min': undefined, 'max': undefined },
93
+ 'cost': { 'min': undefined, 'max': undefined },
94
+ },
95
+ 'created': undefined,
96
+ 'info': response,
97
+ };
98
+ }
99
+ async fetchTicker(symbol, params = {}) {
100
+ await this.loadMarkets();
101
+ const market = this.market(symbol);
102
+ const response = await this.publicGetWpJsonTalappV1GoldPrices(params);
103
+ return this.parseTicker(response, market);
104
+ }
105
+ async fetchTickers(symbols = undefined, params = {}) {
106
+ await this.loadMarkets();
107
+ if (symbols !== undefined) {
108
+ symbols = this.marketSymbols(symbols);
109
+ }
110
+ const response = await this.publicGetWpJsonTalappV1GoldPrices(params);
111
+ const market = this.market('XAU18/IRT');
112
+ const ticker = this.parseTicker(response, market);
113
+ const result = {};
114
+ result[ticker['symbol']] = ticker;
115
+ return this.filterByArrayTickers(result, 'symbol', symbols);
116
+ }
117
+ parseTicker(response, market = undefined) {
118
+ const fetchedAt = this.safeString(response, 'fetched_at');
119
+ let timestamp = undefined;
120
+ if (fetchedAt !== undefined) {
121
+ timestamp = this.parse8601(fetchedAt.replace(' ', 'T') + '+03:30');
122
+ }
123
+ return this.safeTicker({
124
+ 'symbol': market['symbol'],
125
+ 'timestamp': timestamp,
126
+ 'datetime': undefined,
127
+ 'high': undefined,
128
+ 'low': undefined,
129
+ 'bid': this.safeNumber(response, 'buy_gold'),
130
+ 'bidVolume': undefined,
131
+ 'ask': this.safeNumber(response, 'sell_gold'),
132
+ 'askVolume': undefined,
133
+ 'vwap': undefined,
134
+ 'open': undefined,
135
+ 'close': this.safeNumber(response, 'sell_gold'),
136
+ 'last': this.safeNumber(response, 'sell_gold'),
137
+ 'previousClose': undefined,
138
+ 'change': undefined,
139
+ 'percentage': this.safeNumber(response, 'sell_diff'),
140
+ 'average': undefined,
141
+ 'baseVolume': undefined,
142
+ 'quoteVolume': undefined,
143
+ 'info': response,
144
+ }, market);
145
+ }
146
+ sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
147
+ let url = this.urls['api'][api] + '/' + this.implodeParams(path, params);
148
+ const query = this.omit(params, this.extractParams(path));
149
+ if (Object.keys(query).length) {
150
+ url += '?' + this.urlencode(query);
151
+ }
152
+ headers = { 'Accept': 'application/json' };
153
+ return { 'url': url, 'method': method, 'body': body, 'headers': headers };
154
+ }
155
+ }
@@ -0,0 +1,20 @@
1
+ import Exchange from './base/Exchange.js';
2
+ import { Market, Strings, Ticker, Tickers } from './base/types.js';
3
+ /**
4
+ * @class zarafza
5
+ * @augments Exchange
6
+ */
7
+ export default class zarafza extends Exchange {
8
+ describe(): any;
9
+ fetchMarkets(params?: {}): Promise<Market[]>;
10
+ parseMarket(response: any): Market;
11
+ fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
12
+ fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
13
+ parseTicker(response: any, market?: Market): Ticker;
14
+ sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
15
+ url: string;
16
+ method: string;
17
+ body: any;
18
+ headers: any;
19
+ };
20
+ }
@@ -0,0 +1,158 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
7
+ // ---------------------------------------------------------------------------
8
+ import Exchange from './base/Exchange.js';
9
+ // ---------------------------------------------------------------------------
10
+ /**
11
+ * @class zarafza
12
+ * @augments Exchange
13
+ */
14
+ export default class zarafza extends Exchange {
15
+ describe() {
16
+ return this.deepExtend(super.describe(), {
17
+ 'id': 'zarafza',
18
+ 'name': 'Zarafza',
19
+ 'countries': ['IR'],
20
+ 'rateLimit': 1000,
21
+ 'version': 'v2',
22
+ 'certified': false,
23
+ 'pro': false,
24
+ 'has': {
25
+ 'CORS': undefined,
26
+ 'spot': false,
27
+ 'margin': false,
28
+ 'swap': false,
29
+ 'future': false,
30
+ 'option': false,
31
+ 'fetchMarkets': true,
32
+ 'fetchTicker': true,
33
+ 'fetchTickers': true,
34
+ 'otc': true,
35
+ },
36
+ 'options': {
37
+ 'defaultType': 'otc',
38
+ },
39
+ 'urls': {
40
+ 'api': {
41
+ 'public': 'https://api.zarafza.com',
42
+ },
43
+ 'www': 'https://zarafza.com',
44
+ 'doc': 'https://api.zarafza.com/v2/prices',
45
+ },
46
+ 'api': {
47
+ 'public': {
48
+ 'get': {
49
+ 'v2/prices': 1,
50
+ },
51
+ },
52
+ },
53
+ });
54
+ }
55
+ async fetchMarkets(params = {}) {
56
+ const response = await this.publicGetV2Prices(params);
57
+ return [this.parseMarket(response)];
58
+ }
59
+ parseMarket(response) {
60
+ const data = this.safeDict(response, 'data', {});
61
+ const gold = this.safeDict(data, 'G18', {});
62
+ const sell = this.safeDict(gold, 'sell', {});
63
+ return {
64
+ 'id': 'G18',
65
+ 'symbol': 'XAU18/IRT',
66
+ 'base': 'XAU18',
67
+ 'quote': 'IRT',
68
+ 'settle': undefined,
69
+ 'baseId': 'G18',
70
+ 'quoteId': 'IRT',
71
+ 'settleId': undefined,
72
+ 'type': 'otc',
73
+ 'spot': false,
74
+ 'margin': false,
75
+ 'swap': false,
76
+ 'future': false,
77
+ 'option': false,
78
+ 'active': this.safeNumber(sell, 'price') !== undefined,
79
+ 'contract': false,
80
+ 'linear': undefined,
81
+ 'inverse': undefined,
82
+ 'contractSize': undefined,
83
+ 'expiry': undefined,
84
+ 'expiryDatetime': undefined,
85
+ 'strike': undefined,
86
+ 'optionType': undefined,
87
+ 'precision': {
88
+ 'amount': undefined,
89
+ 'price': undefined,
90
+ },
91
+ 'limits': {
92
+ 'leverage': { 'min': undefined, 'max': undefined },
93
+ 'amount': { 'min': undefined, 'max': undefined },
94
+ 'price': { 'min': undefined, 'max': undefined },
95
+ 'cost': { 'min': undefined, 'max': undefined },
96
+ },
97
+ 'created': undefined,
98
+ 'info': gold,
99
+ };
100
+ }
101
+ async fetchTicker(symbol, params = {}) {
102
+ await this.loadMarkets();
103
+ const market = this.market(symbol);
104
+ const response = await this.publicGetV2Prices(params);
105
+ return this.parseTicker(response, market);
106
+ }
107
+ async fetchTickers(symbols = undefined, params = {}) {
108
+ await this.loadMarkets();
109
+ if (symbols !== undefined) {
110
+ symbols = this.marketSymbols(symbols);
111
+ }
112
+ const response = await this.publicGetV2Prices(params);
113
+ const market = this.market('XAU18/IRT');
114
+ const ticker = this.parseTicker(response, market);
115
+ const result = {};
116
+ result[ticker['symbol']] = ticker;
117
+ return this.filterByArrayTickers(result, 'symbol', symbols);
118
+ }
119
+ parseTicker(response, market = undefined) {
120
+ const data = this.safeDict(response, 'data', {});
121
+ const gold = this.safeDict(data, 'G18', {});
122
+ const buy = this.safeDict(gold, 'buy', {});
123
+ const sell = this.safeDict(gold, 'sell', {});
124
+ const bid = this.safeNumber(buy, 'price');
125
+ const ask = this.safeNumber(sell, 'price');
126
+ return this.safeTicker({
127
+ 'symbol': market['symbol'],
128
+ 'timestamp': undefined,
129
+ 'datetime': undefined,
130
+ 'high': undefined,
131
+ 'low': undefined,
132
+ 'bid': bid,
133
+ 'bidVolume': undefined,
134
+ 'ask': ask,
135
+ 'askVolume': undefined,
136
+ 'vwap': undefined,
137
+ 'open': undefined,
138
+ 'close': ask,
139
+ 'last': ask,
140
+ 'previousClose': undefined,
141
+ 'change': undefined,
142
+ 'percentage': this.safeNumber(sell, 'change'),
143
+ 'average': undefined,
144
+ 'baseVolume': this.safeNumber(gold, 'volume'),
145
+ 'quoteVolume': undefined,
146
+ 'info': gold,
147
+ }, market);
148
+ }
149
+ sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
150
+ let url = this.urls['api'][api] + '/' + this.implodeParams(path, params);
151
+ const query = this.omit(params, this.extractParams(path));
152
+ if (Object.keys(query).length) {
153
+ url += '?' + this.urlencode(query);
154
+ }
155
+ headers = { 'Accept': 'application/json' };
156
+ return { 'url': url, 'method': method, 'body': body, 'headers': headers };
157
+ }
158
+ }
@@ -0,0 +1,20 @@
1
+ import Exchange from './base/Exchange.js';
2
+ import { Market, Strings, Ticker, Tickers } from './base/types.js';
3
+ /**
4
+ * @class zarminex
5
+ * @augments Exchange
6
+ */
7
+ export default class zarminex extends Exchange {
8
+ describe(): any;
9
+ fetchMarkets(params?: {}): Promise<Market[]>;
10
+ parseMarket(response: any): Market;
11
+ fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
12
+ fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
13
+ parseTicker(response: any, market?: Market): Ticker;
14
+ sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
15
+ url: string;
16
+ method: string;
17
+ body: any;
18
+ headers: any;
19
+ };
20
+ }