ccxt-ir 4.9.0 → 4.9.4
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 +7 -7
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +4 -1
- package/dist/cjs/src/abstract/hamtapay.js +11 -0
- package/dist/cjs/src/arzplus.js +132 -4
- package/dist/cjs/src/hamtapay.js +300 -0
- package/js/ccxt.d.ts +5 -2
- package/js/ccxt.js +4 -2
- package/js/src/abstract/arzplus.d.ts +1 -0
- package/js/src/abstract/hamtapay.d.ts +9 -0
- package/js/src/abstract/hamtapay.js +11 -0
- package/js/src/arzplus.d.ts +2 -0
- package/js/src/arzplus.js +132 -4
- package/js/src/base/Exchange.d.ts +2 -2
- package/js/src/base/types.d.ts +1 -1
- package/js/src/coinbaseexchange.d.ts +1 -1
- package/js/src/hamtapay.d.ts +21 -0
- package/js/src/hamtapay.js +299 -0
- package/js/src/protobuf/mexc/compiled.d.cts +6 -0
- package/js/src/static_dependencies/fflake/browser.d.ts +5 -5
- package/js/src/static_dependencies/jsencrypt/lib/asn1js/asn1.d.ts +2 -2
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/static_dependencies/qs/formats.d.cts +6 -0
- package/js/src/static_dependencies/qs/index.d.cts +6 -0
- package/js/src/static_dependencies/qs/parse.d.cts +6 -0
- package/js/src/static_dependencies/qs/stringify.d.cts +6 -0
- package/js/src/static_dependencies/qs/utils.d.cts +6 -0
- package/js/src/static_dependencies/starknet/utils/calldata/parser/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/ccxt.js
CHANGED
|
@@ -86,6 +86,7 @@ var foxbit = require('./src/foxbit.js');
|
|
|
86
86
|
var gate = require('./src/gate.js');
|
|
87
87
|
var gateio = require('./src/gateio.js');
|
|
88
88
|
var gemini = require('./src/gemini.js');
|
|
89
|
+
var hamtapay = require('./src/hamtapay.js');
|
|
89
90
|
var hashkey = require('./src/hashkey.js');
|
|
90
91
|
var hibachi = require('./src/hibachi.js');
|
|
91
92
|
var hitbtc = require('./src/hitbtc.js');
|
|
@@ -224,7 +225,7 @@ var xt$1 = require('./src/pro/xt.js');
|
|
|
224
225
|
|
|
225
226
|
//-----------------------------------------------------------------------------
|
|
226
227
|
// this is updated by vss.js when building
|
|
227
|
-
const version = '4.9.
|
|
228
|
+
const version = '4.9.4';
|
|
228
229
|
Exchange["default"].ccxtVersion = version;
|
|
229
230
|
const exchanges = {
|
|
230
231
|
'abantether': abantether["default"],
|
|
@@ -301,6 +302,7 @@ const exchanges = {
|
|
|
301
302
|
'gate': gate["default"],
|
|
302
303
|
'gateio': gateio["default"],
|
|
303
304
|
'gemini': gemini["default"],
|
|
305
|
+
'hamtapay': hamtapay["default"],
|
|
304
306
|
'hashkey': hashkey["default"],
|
|
305
307
|
'hibachi': hibachi["default"],
|
|
306
308
|
'hitbtc': hitbtc["default"],
|
|
@@ -564,6 +566,7 @@ exports.foxbit = foxbit["default"];
|
|
|
564
566
|
exports.gate = gate["default"];
|
|
565
567
|
exports.gateio = gateio["default"];
|
|
566
568
|
exports.gemini = gemini["default"];
|
|
569
|
+
exports.hamtapay = hamtapay["default"];
|
|
567
570
|
exports.hashkey = hashkey["default"];
|
|
568
571
|
exports.hibachi = hibachi["default"];
|
|
569
572
|
exports.hitbtc = hitbtc["default"];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Exchange$1 = require('../base/Exchange.js');
|
|
6
|
+
|
|
7
|
+
// ----------------------------------------------------------------------------
|
|
8
|
+
class Exchange extends Exchange$1["default"] {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
exports["default"] = Exchange;
|
package/dist/cjs/src/arzplus.js
CHANGED
|
@@ -104,6 +104,7 @@ class arzplus extends arzplus$1["default"] {
|
|
|
104
104
|
'api/v1/market/symbols': 1,
|
|
105
105
|
'api/v1/market/tradingview/ohlcv': 1,
|
|
106
106
|
'api/v1/market/depth': 1,
|
|
107
|
+
'api/v1/market/irt/info': 1,
|
|
107
108
|
},
|
|
108
109
|
},
|
|
109
110
|
},
|
|
@@ -131,11 +132,22 @@ class arzplus extends arzplus$1["default"] {
|
|
|
131
132
|
'enable': 'true',
|
|
132
133
|
};
|
|
133
134
|
const response = await this.publicGetApiV1MarketSymbols(request);
|
|
135
|
+
const otcMarkets = await this.publicGetApiV1MarketIrtInfo(request);
|
|
134
136
|
const result = [];
|
|
135
137
|
for (let i = 0; i < response.length; i++) {
|
|
136
138
|
const market = this.parseMarket(response[i]);
|
|
137
139
|
result.push(market);
|
|
138
140
|
}
|
|
141
|
+
for (let i = 0; i < otcMarkets.length; i++) {
|
|
142
|
+
const marketdata = otcMarkets[i];
|
|
143
|
+
marketdata['quote'] = 'IRT';
|
|
144
|
+
marketdata['id'] = 'OTC_' + marketdata['symbol'] + marketdata['quote'];
|
|
145
|
+
const parsedMarket = this.parseOTCMarkets(marketdata);
|
|
146
|
+
result.push(parsedMarket);
|
|
147
|
+
}
|
|
148
|
+
if (params['type']) {
|
|
149
|
+
return this.filterByArray(result, 'type', params['type'], false);
|
|
150
|
+
}
|
|
139
151
|
return result;
|
|
140
152
|
}
|
|
141
153
|
parseMarket(market) {
|
|
@@ -234,6 +246,70 @@ class arzplus extends arzplus$1["default"] {
|
|
|
234
246
|
'info': market,
|
|
235
247
|
};
|
|
236
248
|
}
|
|
249
|
+
parseOTCMarkets(market) {
|
|
250
|
+
// {
|
|
251
|
+
// symbol: "BTC",
|
|
252
|
+
// ask: "13877900000",
|
|
253
|
+
// bid: "13860999995",
|
|
254
|
+
// name: "bitcoin"
|
|
255
|
+
// },
|
|
256
|
+
const baseAsset = this.safeString(market, 'symbol');
|
|
257
|
+
const quoteAsset = this.safeString(market, 'quote');
|
|
258
|
+
const baseId = baseAsset;
|
|
259
|
+
const quoteId = quoteAsset;
|
|
260
|
+
const base = this.safeCurrencyCode(baseId);
|
|
261
|
+
const quote = this.safeCurrencyCode(quoteId);
|
|
262
|
+
const id = this.safeString(market, 'id');
|
|
263
|
+
return {
|
|
264
|
+
'id': id,
|
|
265
|
+
'symbol': base + '/' + quote,
|
|
266
|
+
'base': base,
|
|
267
|
+
'quote': quote,
|
|
268
|
+
'settle': undefined,
|
|
269
|
+
'baseId': baseId,
|
|
270
|
+
'quoteId': quoteId,
|
|
271
|
+
'settleId': undefined,
|
|
272
|
+
'type': 'otc',
|
|
273
|
+
'spot': false,
|
|
274
|
+
'margin': false,
|
|
275
|
+
'swap': false,
|
|
276
|
+
'future': false,
|
|
277
|
+
'option': false,
|
|
278
|
+
'active': true,
|
|
279
|
+
'contract': false,
|
|
280
|
+
'linear': undefined,
|
|
281
|
+
'inverse': undefined,
|
|
282
|
+
'contractSize': undefined,
|
|
283
|
+
'expiry': undefined,
|
|
284
|
+
'expiryDatetime': undefined,
|
|
285
|
+
'strike': undefined,
|
|
286
|
+
'optionType': undefined,
|
|
287
|
+
'precision': {
|
|
288
|
+
'amount': undefined,
|
|
289
|
+
'price': undefined,
|
|
290
|
+
},
|
|
291
|
+
'limits': {
|
|
292
|
+
'leverage': {
|
|
293
|
+
'min': undefined,
|
|
294
|
+
'max': undefined,
|
|
295
|
+
},
|
|
296
|
+
'amount': {
|
|
297
|
+
'min': undefined,
|
|
298
|
+
'max': undefined,
|
|
299
|
+
},
|
|
300
|
+
'price': {
|
|
301
|
+
'min': undefined,
|
|
302
|
+
'max': undefined,
|
|
303
|
+
},
|
|
304
|
+
'cost': {
|
|
305
|
+
'min': undefined,
|
|
306
|
+
'max': undefined,
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
'created': undefined,
|
|
310
|
+
'info': market,
|
|
311
|
+
};
|
|
312
|
+
}
|
|
237
313
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
238
314
|
/**
|
|
239
315
|
* @method
|
|
@@ -248,8 +324,20 @@ class arzplus extends arzplus$1["default"] {
|
|
|
248
324
|
if (symbols !== undefined) {
|
|
249
325
|
symbols = this.marketSymbols(symbols);
|
|
250
326
|
}
|
|
251
|
-
const response = await this.publicGetApiV1MarketSymbols(params);
|
|
252
327
|
const result = {};
|
|
328
|
+
if (params['type'] === 'otc') {
|
|
329
|
+
const otcMarkets = await this.publicGetApiV1MarketIrtInfo(params);
|
|
330
|
+
for (let i = 0; i < otcMarkets.length; i++) {
|
|
331
|
+
const marketdata = otcMarkets[i];
|
|
332
|
+
marketdata['quote'] = 'IRT';
|
|
333
|
+
marketdata['id'] = 'OTC_' + marketdata['symbol'] + marketdata['quote'];
|
|
334
|
+
const parsedMarket = this.parseOTCTicker(marketdata);
|
|
335
|
+
const symbol = parsedMarket['symbol'];
|
|
336
|
+
result[symbol] = parsedMarket;
|
|
337
|
+
}
|
|
338
|
+
return this.filterByArrayTickers(result, 'symbol', symbols);
|
|
339
|
+
}
|
|
340
|
+
const response = await this.publicGetApiV1MarketSymbols(params);
|
|
253
341
|
for (let i = 0; i < response.length; i++) {
|
|
254
342
|
const request = {
|
|
255
343
|
'symbol': response[i]['name'],
|
|
@@ -349,6 +437,44 @@ class arzplus extends arzplus$1["default"] {
|
|
|
349
437
|
'info': ticker,
|
|
350
438
|
}, market);
|
|
351
439
|
}
|
|
440
|
+
parseOTCTicker(ticker, market = undefined) {
|
|
441
|
+
// {
|
|
442
|
+
// id: "BTCUSDT",
|
|
443
|
+
// symbol: "BTC",
|
|
444
|
+
// ask: "13877900000",
|
|
445
|
+
// bid: "13860999995",
|
|
446
|
+
// name: "bitcoin"
|
|
447
|
+
// quote: "IRT"
|
|
448
|
+
// }
|
|
449
|
+
const marketType = 'otc';
|
|
450
|
+
const marketId = this.safeString(ticker, 'id');
|
|
451
|
+
const symbol = this.safeSymbol(marketId, market, undefined, marketType);
|
|
452
|
+
const bid = this.safeFloat(ticker, 'bid', 0);
|
|
453
|
+
const ask = this.safeFloat(ticker, 'ask', 0);
|
|
454
|
+
const last = this.safeFloat(ticker, 'ask', 0);
|
|
455
|
+
return this.safeTicker({
|
|
456
|
+
'symbol': symbol,
|
|
457
|
+
'timestamp': undefined,
|
|
458
|
+
'datetime': undefined,
|
|
459
|
+
'high': undefined,
|
|
460
|
+
'low': undefined,
|
|
461
|
+
'bid': bid,
|
|
462
|
+
'bidVolume': undefined,
|
|
463
|
+
'ask': ask,
|
|
464
|
+
'askVolume': undefined,
|
|
465
|
+
'vwap': undefined,
|
|
466
|
+
'open': last,
|
|
467
|
+
'close': last,
|
|
468
|
+
'last': last,
|
|
469
|
+
'previousClose': undefined,
|
|
470
|
+
'change': undefined,
|
|
471
|
+
'percentage': undefined,
|
|
472
|
+
'average': undefined,
|
|
473
|
+
'baseVolume': undefined,
|
|
474
|
+
'quoteVolume': undefined,
|
|
475
|
+
'info': ticker,
|
|
476
|
+
}, market);
|
|
477
|
+
}
|
|
352
478
|
async fetchOHLCV(symbol, timeframe = '1h', since = undefined, limit = undefined, params = {}) {
|
|
353
479
|
/**
|
|
354
480
|
* @method
|
|
@@ -420,14 +546,16 @@ class arzplus extends arzplus$1["default"] {
|
|
|
420
546
|
sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
421
547
|
const query = this.omit(params, this.extractParams(path));
|
|
422
548
|
let url = this.urls['api']['public'] + '/' + path;
|
|
423
|
-
|
|
549
|
+
const symbol = this.safeString(params, 'symbol');
|
|
550
|
+
const stats = this.safeValue(params, 'stats');
|
|
551
|
+
if (stats !== undefined) {
|
|
424
552
|
url = url + '?' + this.urlencode(query);
|
|
425
553
|
}
|
|
426
554
|
if (path === 'api/v1/market/tradingview/ohlcv') {
|
|
427
555
|
url = url + '?' + this.urlencode(query);
|
|
428
556
|
}
|
|
429
|
-
else if (
|
|
430
|
-
url = url + '/' +
|
|
557
|
+
else if (symbol !== undefined) {
|
|
558
|
+
url = url + '/' + symbol;
|
|
431
559
|
}
|
|
432
560
|
headers = { 'Content-Type': 'application/json' };
|
|
433
561
|
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var hamtapay$1 = require('./abstract/hamtapay.js');
|
|
6
|
+
|
|
7
|
+
// ----------------------------------------------------------------------------
|
|
8
|
+
// ---------------------------------------------------------------------------
|
|
9
|
+
/**
|
|
10
|
+
* @class hamtapay
|
|
11
|
+
* @augments Exchange
|
|
12
|
+
* @description Set rateLimit to 1000 if fully verified
|
|
13
|
+
*/
|
|
14
|
+
class hamtapay extends hamtapay$1["default"] {
|
|
15
|
+
describe() {
|
|
16
|
+
return this.deepExtend(super.describe(), {
|
|
17
|
+
'id': 'hamtapay',
|
|
18
|
+
'name': 'Hamtapay',
|
|
19
|
+
'countries': ['IR'],
|
|
20
|
+
'rateLimit': 1000,
|
|
21
|
+
'version': '1',
|
|
22
|
+
'certified': false,
|
|
23
|
+
'pro': false,
|
|
24
|
+
'has': {
|
|
25
|
+
'CORS': undefined,
|
|
26
|
+
'spot': true,
|
|
27
|
+
'margin': false,
|
|
28
|
+
'swap': false,
|
|
29
|
+
'future': false,
|
|
30
|
+
'option': false,
|
|
31
|
+
'addMargin': false,
|
|
32
|
+
'cancelAllOrders': false,
|
|
33
|
+
'cancelOrder': false,
|
|
34
|
+
'cancelOrders': false,
|
|
35
|
+
'createDepositAddress': false,
|
|
36
|
+
'createOrder': false,
|
|
37
|
+
'createStopLimitOrder': false,
|
|
38
|
+
'createStopMarketOrder': false,
|
|
39
|
+
'createStopOrder': false,
|
|
40
|
+
'editOrder': false,
|
|
41
|
+
'fetchBalance': false,
|
|
42
|
+
'fetchBorrowInterest': false,
|
|
43
|
+
'fetchBorrowRateHistories': false,
|
|
44
|
+
'fetchBorrowRateHistory': false,
|
|
45
|
+
'fetchClosedOrders': false,
|
|
46
|
+
'fetchCrossBorrowRate': false,
|
|
47
|
+
'fetchCrossBorrowRates': false,
|
|
48
|
+
'fetchCurrencies': false,
|
|
49
|
+
'fetchDepositAddress': false,
|
|
50
|
+
'fetchDeposits': false,
|
|
51
|
+
'fetchFundingHistory': false,
|
|
52
|
+
'fetchFundingRate': false,
|
|
53
|
+
'fetchFundingRateHistory': false,
|
|
54
|
+
'fetchFundingRates': false,
|
|
55
|
+
'fetchIndexOHLCV': false,
|
|
56
|
+
'fetchIsolatedBorrowRate': false,
|
|
57
|
+
'fetchIsolatedBorrowRates': false,
|
|
58
|
+
'fetchL2OrderBook': false,
|
|
59
|
+
'fetchL3OrderBook': false,
|
|
60
|
+
'fetchLedger': false,
|
|
61
|
+
'fetchLedgerEntry': false,
|
|
62
|
+
'fetchLeverageTiers': false,
|
|
63
|
+
'fetchMarkets': true,
|
|
64
|
+
'fetchMarkOHLCV': false,
|
|
65
|
+
'fetchMyTrades': false,
|
|
66
|
+
'fetchOHLCV': false,
|
|
67
|
+
'fetchOpenInterestHistory': false,
|
|
68
|
+
'fetchOpenOrders': false,
|
|
69
|
+
'fetchOrder': false,
|
|
70
|
+
'fetchOrderBook': false,
|
|
71
|
+
'fetchOrders': false,
|
|
72
|
+
'fetchOrderTrades': 'emulated',
|
|
73
|
+
'fetchPositions': false,
|
|
74
|
+
'fetchPremiumIndexOHLCV': false,
|
|
75
|
+
'fetchTicker': true,
|
|
76
|
+
'fetchTickers': true,
|
|
77
|
+
'fetchTime': false,
|
|
78
|
+
'fetchTrades': false,
|
|
79
|
+
'fetchTradingFee': false,
|
|
80
|
+
'fetchTradingFees': false,
|
|
81
|
+
'fetchWithdrawals': false,
|
|
82
|
+
'setLeverage': false,
|
|
83
|
+
'setMarginMode': false,
|
|
84
|
+
'transfer': false,
|
|
85
|
+
'withdraw': false,
|
|
86
|
+
},
|
|
87
|
+
'comment': 'This comment is optional',
|
|
88
|
+
'urls': {
|
|
89
|
+
'logo': 'https://cdn.arz.digital/cr-odin/img/exchanges/hamtapay/64x64.png',
|
|
90
|
+
'api': {
|
|
91
|
+
'public': 'https://api.hamtapay.org',
|
|
92
|
+
},
|
|
93
|
+
'www': 'https://hamtapay.net/',
|
|
94
|
+
'doc': [
|
|
95
|
+
'https://hamtapay.net/',
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
'api': {
|
|
99
|
+
'public': {
|
|
100
|
+
'get': {
|
|
101
|
+
'/financial/api/market': 1,
|
|
102
|
+
'/financial/api/vitrin/prices': 1,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
'fees': {
|
|
107
|
+
'trading': {
|
|
108
|
+
'tierBased': false,
|
|
109
|
+
'percentage': true,
|
|
110
|
+
'maker': this.parseNumber('0.001'),
|
|
111
|
+
'taker': this.parseNumber('0.001'),
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
async fetchMarkets(params = {}) {
|
|
117
|
+
/**
|
|
118
|
+
* @method
|
|
119
|
+
* @name hamtapay#fetchMarkets
|
|
120
|
+
* @description retrieves data on all markets for hamtapay
|
|
121
|
+
* @see https://api.hamtapay.org/financial/api/market
|
|
122
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
123
|
+
* @returns {object[]} an array of objects representing market data
|
|
124
|
+
*/
|
|
125
|
+
const response = await this.publicGetFinancialApiMarket(params);
|
|
126
|
+
const result = [];
|
|
127
|
+
const marketData = this.safeList(response, 'data', []);
|
|
128
|
+
for (let i = 0; i < marketData.length; i++) {
|
|
129
|
+
const market = this.parseMarket(marketData[i]);
|
|
130
|
+
result.push(market);
|
|
131
|
+
}
|
|
132
|
+
return result;
|
|
133
|
+
}
|
|
134
|
+
parseMarket(market) {
|
|
135
|
+
// {
|
|
136
|
+
// "symbol": "USDT-IRT",
|
|
137
|
+
// "base": "USDT",
|
|
138
|
+
// "quote": "IRT",
|
|
139
|
+
// "base_currency_decimals": 3,
|
|
140
|
+
// "quote_currency_decimals": 0,
|
|
141
|
+
// "amount_decimals": 0,
|
|
142
|
+
// "price_decimals": 0
|
|
143
|
+
// }
|
|
144
|
+
const baseId = this.safeString(market, 'base');
|
|
145
|
+
const quoteId = this.safeString(market, 'quote');
|
|
146
|
+
const base = this.safeCurrencyCode(baseId);
|
|
147
|
+
const quote = this.safeCurrencyCode(quoteId);
|
|
148
|
+
const id = this.safeString(market, 'symbol');
|
|
149
|
+
return {
|
|
150
|
+
'id': id,
|
|
151
|
+
'symbol': base + '/' + quote,
|
|
152
|
+
'base': base,
|
|
153
|
+
'quote': quote,
|
|
154
|
+
'settle': undefined,
|
|
155
|
+
'baseId': baseId,
|
|
156
|
+
'quoteId': quoteId,
|
|
157
|
+
'settleId': undefined,
|
|
158
|
+
'type': 'otc',
|
|
159
|
+
'spot': false,
|
|
160
|
+
'margin': false,
|
|
161
|
+
'swap': false,
|
|
162
|
+
'future': false,
|
|
163
|
+
'option': false,
|
|
164
|
+
'active': true,
|
|
165
|
+
'contract': false,
|
|
166
|
+
'linear': undefined,
|
|
167
|
+
'inverse': undefined,
|
|
168
|
+
'contractSize': undefined,
|
|
169
|
+
'expiry': undefined,
|
|
170
|
+
'expiryDatetime': undefined,
|
|
171
|
+
'strike': undefined,
|
|
172
|
+
'optionType': undefined,
|
|
173
|
+
'precision': {
|
|
174
|
+
'amount': undefined,
|
|
175
|
+
'price': undefined,
|
|
176
|
+
},
|
|
177
|
+
'limits': {
|
|
178
|
+
'leverage': {
|
|
179
|
+
'min': undefined,
|
|
180
|
+
'max': undefined,
|
|
181
|
+
},
|
|
182
|
+
'amount': {
|
|
183
|
+
'min': undefined,
|
|
184
|
+
'max': undefined,
|
|
185
|
+
},
|
|
186
|
+
'price': {
|
|
187
|
+
'min': undefined,
|
|
188
|
+
'max': undefined,
|
|
189
|
+
},
|
|
190
|
+
'cost': {
|
|
191
|
+
'min': undefined,
|
|
192
|
+
'max': undefined,
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
'created': undefined,
|
|
196
|
+
'info': market,
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
async fetchTickers(symbols = undefined, params = {}) {
|
|
200
|
+
/**
|
|
201
|
+
* @method
|
|
202
|
+
* @name hamtapay#fetchTickers
|
|
203
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
204
|
+
* @see https://api.hamtapay.org/financial/api/vitrin/prices
|
|
205
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
206
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
207
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
208
|
+
*/
|
|
209
|
+
await this.loadMarkets();
|
|
210
|
+
if (symbols !== undefined) {
|
|
211
|
+
symbols = this.marketSymbols(symbols);
|
|
212
|
+
}
|
|
213
|
+
const response = await this.publicGetFinancialApiVitrinPrices(params);
|
|
214
|
+
const data = this.safeDict(response, 'data', {});
|
|
215
|
+
const result = {};
|
|
216
|
+
const quotes = ['IRT', 'USDT'];
|
|
217
|
+
for (let i = 0; i < quotes.length; i++) {
|
|
218
|
+
const current_qoute = quotes[i];
|
|
219
|
+
const corresponding_data = this.safeDict(data, current_qoute, {});
|
|
220
|
+
for (let j = 0; j < Object.keys(corresponding_data).length; j++) {
|
|
221
|
+
const current_base = Object.keys(corresponding_data)[j];
|
|
222
|
+
const current_ticker = corresponding_data[current_base];
|
|
223
|
+
current_ticker['base'] = current_base;
|
|
224
|
+
current_ticker['quote'] = current_qoute;
|
|
225
|
+
current_ticker['symbol'] = current_base + '/' + current_qoute;
|
|
226
|
+
current_ticker['id'] = current_base + '-' + current_qoute;
|
|
227
|
+
result[current_ticker['symbol']] = this.parseTicker(current_ticker);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
return this.filterByArrayTickers(result, 'symbol', symbols);
|
|
231
|
+
}
|
|
232
|
+
async fetchTicker(symbol, params = {}) {
|
|
233
|
+
/**
|
|
234
|
+
* @method
|
|
235
|
+
* @name hamtapay#fetchTicker
|
|
236
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
237
|
+
* @see https://hamtapay.com/management/all-coins/?format=json
|
|
238
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
239
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
240
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
241
|
+
*/
|
|
242
|
+
const ticker = await this.fetchTickers([symbol]);
|
|
243
|
+
return ticker[symbol];
|
|
244
|
+
}
|
|
245
|
+
parseTicker(ticker, market = undefined) {
|
|
246
|
+
// {
|
|
247
|
+
// "id": "USDT-IRT",
|
|
248
|
+
// "symbol": "USDT/IRT",
|
|
249
|
+
// "base": "USDT",
|
|
250
|
+
// "quote": "IRT",
|
|
251
|
+
// "min_price_24h": "111702",
|
|
252
|
+
// "max_price_24h": "115872",
|
|
253
|
+
// "market_price": "115942",
|
|
254
|
+
// "buy_price": "117101",
|
|
255
|
+
// "sell_price": "114782",
|
|
256
|
+
// "change_rate_24h": 3.29,
|
|
257
|
+
// "amount_decimals": 0,
|
|
258
|
+
// "price_decimals": 0,
|
|
259
|
+
// "status": "ACTIVE"
|
|
260
|
+
// }
|
|
261
|
+
const marketType = 'otc';
|
|
262
|
+
const marketId = this.safeString(ticker, 'id');
|
|
263
|
+
const symbol = this.safeSymbol(marketId, market, undefined, marketType);
|
|
264
|
+
const last = this.safeFloat(ticker, 'buy_price', 0);
|
|
265
|
+
const change = this.safeFloat(ticker, 'change_rate_24h', 0);
|
|
266
|
+
const ask = this.safeFloat(ticker, 'buy_price', 0);
|
|
267
|
+
const bid = this.safeFloat(ticker, 'sell_price', 0);
|
|
268
|
+
const high = this.safeFloat(ticker, 'max_price_24h', 0);
|
|
269
|
+
const low = this.safeFloat(ticker, 'min_price_24h', 0);
|
|
270
|
+
return this.safeTicker({
|
|
271
|
+
'symbol': symbol,
|
|
272
|
+
'timestamp': undefined,
|
|
273
|
+
'datetime': undefined,
|
|
274
|
+
'high': high,
|
|
275
|
+
'low': low,
|
|
276
|
+
'bid': bid,
|
|
277
|
+
'bidVolume': undefined,
|
|
278
|
+
'ask': ask,
|
|
279
|
+
'askVolume': undefined,
|
|
280
|
+
'vwap': undefined,
|
|
281
|
+
'open': undefined,
|
|
282
|
+
'close': last,
|
|
283
|
+
'last': last,
|
|
284
|
+
'previousClose': undefined,
|
|
285
|
+
'change': undefined,
|
|
286
|
+
'percentage': change,
|
|
287
|
+
'average': undefined,
|
|
288
|
+
'baseVolume': undefined,
|
|
289
|
+
'quoteVolume': undefined,
|
|
290
|
+
'info': ticker,
|
|
291
|
+
}, market);
|
|
292
|
+
}
|
|
293
|
+
sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
|
|
294
|
+
const url = this.urls['api']['public'] + '/' + path;
|
|
295
|
+
headers = { 'Content-Type': 'application/json' };
|
|
296
|
+
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
exports["default"] = hamtapay;
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OrderBooks, OpenInterests, ConstructorArgs } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.9.
|
|
7
|
+
declare const version = "4.9.4";
|
|
8
8
|
import abantether from './src/abantether.js';
|
|
9
9
|
import afratether from './src/afratether.js';
|
|
10
10
|
import alpaca from './src/alpaca.js';
|
|
@@ -79,6 +79,7 @@ import foxbit from './src/foxbit.js';
|
|
|
79
79
|
import gate from './src/gate.js';
|
|
80
80
|
import gateio from './src/gateio.js';
|
|
81
81
|
import gemini from './src/gemini.js';
|
|
82
|
+
import hamtapay from './src/hamtapay.js';
|
|
82
83
|
import hashkey from './src/hashkey.js';
|
|
83
84
|
import hibachi from './src/hibachi.js';
|
|
84
85
|
import hitbtc from './src/hitbtc.js';
|
|
@@ -289,6 +290,7 @@ declare const exchanges: {
|
|
|
289
290
|
gate: typeof gate;
|
|
290
291
|
gateio: typeof gateio;
|
|
291
292
|
gemini: typeof gemini;
|
|
293
|
+
hamtapay: typeof hamtapay;
|
|
292
294
|
hashkey: typeof hashkey;
|
|
293
295
|
hibachi: typeof hibachi;
|
|
294
296
|
hitbtc: typeof hitbtc;
|
|
@@ -582,6 +584,7 @@ declare const ccxt: {
|
|
|
582
584
|
gate: typeof gate;
|
|
583
585
|
gateio: typeof gateio;
|
|
584
586
|
gemini: typeof gemini;
|
|
587
|
+
hamtapay: typeof hamtapay;
|
|
585
588
|
hashkey: typeof hashkey;
|
|
586
589
|
hibachi: typeof hibachi;
|
|
587
590
|
hitbtc: typeof hitbtc;
|
|
@@ -645,5 +648,5 @@ declare const ccxt: {
|
|
|
645
648
|
zaif: typeof zaif;
|
|
646
649
|
zonda: typeof zonda;
|
|
647
650
|
} & typeof functions & typeof errors;
|
|
648
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, abantether, afratether, alpaca, apex, arzinja, arzplus, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit24, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitimen, bitir, bitmart, bitmex, bitopro, bitpin, bitrue, bitso, bitstamp, bitteam, bittrade, bitunix, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, eterex, excoino, exir, exmo, exnovin, farhadexchange, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hitobit, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, jibitex, kcex, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, ramzinex, sarmayex, sarrafex, tabdeal, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
651
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, abantether, afratether, alpaca, apex, arzinja, arzplus, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit24, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitimen, bitir, bitmart, bitmex, bitopro, bitpin, bitrue, bitso, bitstamp, bitteam, bittrade, bitunix, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, eterex, excoino, exir, exmo, exnovin, farhadexchange, fmfwio, foxbit, gate, gateio, gemini, hamtapay, hashkey, hibachi, hitbtc, hitobit, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, jibitex, kcex, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, ramzinex, sarmayex, sarrafex, tabdeal, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
649
652
|
export default ccxt;
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.9.
|
|
41
|
+
const version = '4.9.4';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import abantether from './src/abantether.js';
|
|
@@ -115,6 +115,7 @@ import foxbit from './src/foxbit.js';
|
|
|
115
115
|
import gate from './src/gate.js';
|
|
116
116
|
import gateio from './src/gateio.js';
|
|
117
117
|
import gemini from './src/gemini.js';
|
|
118
|
+
import hamtapay from './src/hamtapay.js';
|
|
118
119
|
import hashkey from './src/hashkey.js';
|
|
119
120
|
import hibachi from './src/hibachi.js';
|
|
120
121
|
import hitbtc from './src/hitbtc.js';
|
|
@@ -326,6 +327,7 @@ const exchanges = {
|
|
|
326
327
|
'gate': gate,
|
|
327
328
|
'gateio': gateio,
|
|
328
329
|
'gemini': gemini,
|
|
330
|
+
'hamtapay': hamtapay,
|
|
329
331
|
'hashkey': hashkey,
|
|
330
332
|
'hibachi': hibachi,
|
|
331
333
|
'hitbtc': hitbtc,
|
|
@@ -476,6 +478,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
476
478
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
477
479
|
//-----------------------------------------------------------------------------
|
|
478
480
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
479
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, abantether, afratether, alpaca, apex, arzinja, arzplus, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit24, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitimen, bitir, bitmart, bitmex, bitopro, bitpin, bitrue, bitso, bitstamp, bitteam, bittrade, bitunix, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, eterex, excoino, exir, exmo, exnovin, farhadexchange, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hitobit, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, jibitex, kcex, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, ramzinex, sarmayex, sarrafex, tabdeal, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
481
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, abantether, afratether, alpaca, apex, arzinja, arzplus, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit24, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitimen, bitir, bitmart, bitmex, bitopro, bitpin, bitrue, bitso, bitstamp, bitteam, bittrade, bitunix, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, defx, delta, deribit, derive, digifinex, ellipx, eterex, excoino, exir, exmo, exnovin, farhadexchange, fmfwio, foxbit, gate, gateio, gemini, hamtapay, hashkey, hibachi, hitbtc, hitobit, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, jibitex, kcex, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, ramzinex, sarmayex, sarrafex, tabdeal, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
|
|
480
482
|
export default ccxt;
|
|
481
483
|
//-----------------------------------------------------------------------------
|
|
@@ -4,6 +4,7 @@ interface Exchange {
|
|
|
4
4
|
publicGetApiV1MarketSymbols(params?: {}): Promise<implicitReturnType>;
|
|
5
5
|
publicGetApiV1MarketTradingviewOhlcv(params?: {}): Promise<implicitReturnType>;
|
|
6
6
|
publicGetApiV1MarketDepth(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
publicGetApiV1MarketIrtInfo(params?: {}): Promise<implicitReturnType>;
|
|
7
8
|
}
|
|
8
9
|
declare abstract class Exchange extends _Exchange {
|
|
9
10
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetFinancialApiMarket(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetFinancialApiVitrinPrices(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
}
|
|
7
|
+
declare abstract class Exchange extends _Exchange {
|
|
8
|
+
}
|
|
9
|
+
export default Exchange;
|
|
@@ -0,0 +1,11 @@
|
|
|
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 as _Exchange } from '../base/Exchange.js';
|
|
9
|
+
class Exchange extends _Exchange {
|
|
10
|
+
}
|
|
11
|
+
export default Exchange;
|