ccxt-ir 4.9.4 → 4.9.12

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 (62) hide show
  1. package/README.md +157 -164
  2. package/dist/ccxt.browser.min.js +4 -4
  3. package/dist/cjs/ccxt.js +22 -1
  4. package/dist/cjs/src/abantether.js +88 -69
  5. package/dist/cjs/src/abstract/bitbarg.js +11 -0
  6. package/dist/cjs/src/abstract/bydfi.js +11 -0
  7. package/dist/cjs/src/abstract/cafearz.js +11 -0
  8. package/dist/cjs/src/abstract/kifpoolme.js +11 -0
  9. package/dist/cjs/src/abstract/mazdax.js +11 -0
  10. package/dist/cjs/src/abstract/pingi.js +11 -0
  11. package/dist/cjs/src/abstract/pooleno.js +11 -0
  12. package/dist/cjs/src/afratether.js +84 -36
  13. package/dist/cjs/src/arzplus.js +32 -15
  14. package/dist/cjs/src/bitbarg.js +313 -0
  15. package/dist/cjs/src/bydfi.js +435 -0
  16. package/dist/cjs/src/cafearz.js +347 -0
  17. package/dist/cjs/src/hamtapay.js +3 -2
  18. package/dist/cjs/src/kifpoolme.js +411 -0
  19. package/dist/cjs/src/mazdax.js +536 -0
  20. package/dist/cjs/src/pingi.js +448 -0
  21. package/dist/cjs/src/pooleno.js +348 -0
  22. package/dist/cjs/src/tetherland.js +5 -5
  23. package/dist/cjs/src/twox.js +56 -29
  24. package/js/ccxt.d.ts +23 -2
  25. package/js/ccxt.js +16 -2
  26. package/js/src/abantether.js +88 -69
  27. package/js/src/abstract/abantether.d.ts +1 -1
  28. package/js/src/abstract/bitbarg.d.ts +8 -0
  29. package/js/src/abstract/bitbarg.js +11 -0
  30. package/js/src/abstract/bydfi.d.ts +11 -0
  31. package/js/src/abstract/bydfi.js +11 -0
  32. package/js/src/abstract/cafearz.d.ts +8 -0
  33. package/js/src/abstract/cafearz.js +11 -0
  34. package/js/src/abstract/kifpoolme.d.ts +9 -0
  35. package/js/src/abstract/kifpoolme.js +11 -0
  36. package/js/src/abstract/mazdax.d.ts +11 -0
  37. package/js/src/abstract/mazdax.js +11 -0
  38. package/js/src/abstract/pingi.d.ts +9 -0
  39. package/js/src/abstract/pingi.js +11 -0
  40. package/js/src/abstract/pooleno.d.ts +8 -0
  41. package/js/src/abstract/pooleno.js +11 -0
  42. package/js/src/afratether.js +84 -36
  43. package/js/src/arzplus.d.ts +3 -2
  44. package/js/src/arzplus.js +32 -15
  45. package/js/src/bitbarg.d.ts +21 -0
  46. package/js/src/bitbarg.js +312 -0
  47. package/js/src/bydfi.d.ts +23 -0
  48. package/js/src/bydfi.js +434 -0
  49. package/js/src/cafearz.d.ts +21 -0
  50. package/js/src/cafearz.js +346 -0
  51. package/js/src/hamtapay.js +3 -2
  52. package/js/src/kifpoolme.d.ts +23 -0
  53. package/js/src/kifpoolme.js +410 -0
  54. package/js/src/mazdax.d.ts +23 -0
  55. package/js/src/mazdax.js +535 -0
  56. package/js/src/pingi.d.ts +22 -0
  57. package/js/src/pingi.js +447 -0
  58. package/js/src/pooleno.d.ts +21 -0
  59. package/js/src/pooleno.js +347 -0
  60. package/js/src/tetherland.js +5 -5
  61. package/js/src/twox.js +56 -29
  62. package/package.json +1 -1
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.4';
41
+ const version = '4.9.12';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import abantether from './src/abantether.js';
@@ -58,6 +58,7 @@ import bingx from './src/bingx.js';
58
58
  import bit24 from './src/bit24.js';
59
59
  import bit2c from './src/bit2c.js';
60
60
  import bitbank from './src/bitbank.js';
61
+ import bitbarg from './src/bitbarg.js';
61
62
  import bitbns from './src/bitbns.js';
62
63
  import bitfinex from './src/bitfinex.js';
63
64
  import bitflyer from './src/bitflyer.js';
@@ -83,6 +84,8 @@ import btcbox from './src/btcbox.js';
83
84
  import btcmarkets from './src/btcmarkets.js';
84
85
  import btcturk from './src/btcturk.js';
85
86
  import bybit from './src/bybit.js';
87
+ import bydfi from './src/bydfi.js';
88
+ import cafearz from './src/cafearz.js';
86
89
  import cex from './src/cex.js';
87
90
  import coinbase from './src/coinbase.js';
88
91
  import coinbaseadvanced from './src/coinbaseadvanced.js';
@@ -128,6 +131,7 @@ import independentreserve from './src/independentreserve.js';
128
131
  import indodax from './src/indodax.js';
129
132
  import jibitex from './src/jibitex.js';
130
133
  import kcex from './src/kcex.js';
134
+ import kifpoolme from './src/kifpoolme.js';
131
135
  import kraken from './src/kraken.js';
132
136
  import krakenfutures from './src/krakenfutures.js';
133
137
  import kucoin from './src/kucoin.js';
@@ -135,6 +139,7 @@ import kucoinfutures from './src/kucoinfutures.js';
135
139
  import latoken from './src/latoken.js';
136
140
  import lbank from './src/lbank.js';
137
141
  import luno from './src/luno.js';
142
+ import mazdax from './src/mazdax.js';
138
143
  import mercado from './src/mercado.js';
139
144
  import mexc from './src/mexc.js';
140
145
  import modetrade from './src/modetrade.js';
@@ -154,7 +159,9 @@ import p2b from './src/p2b.js';
154
159
  import paradex from './src/paradex.js';
155
160
  import paymium from './src/paymium.js';
156
161
  import phemex from './src/phemex.js';
162
+ import pingi from './src/pingi.js';
157
163
  import poloniex from './src/poloniex.js';
164
+ import pooleno from './src/pooleno.js';
158
165
  import probit from './src/probit.js';
159
166
  import ramzinex from './src/ramzinex.js';
160
167
  import sarmayex from './src/sarmayex.js';
@@ -270,6 +277,7 @@ const exchanges = {
270
277
  'bit24': bit24,
271
278
  'bit2c': bit2c,
272
279
  'bitbank': bitbank,
280
+ 'bitbarg': bitbarg,
273
281
  'bitbns': bitbns,
274
282
  'bitfinex': bitfinex,
275
283
  'bitflyer': bitflyer,
@@ -295,6 +303,8 @@ const exchanges = {
295
303
  'btcmarkets': btcmarkets,
296
304
  'btcturk': btcturk,
297
305
  'bybit': bybit,
306
+ 'bydfi': bydfi,
307
+ 'cafearz': cafearz,
298
308
  'cex': cex,
299
309
  'coinbase': coinbase,
300
310
  'coinbaseadvanced': coinbaseadvanced,
@@ -340,6 +350,7 @@ const exchanges = {
340
350
  'indodax': indodax,
341
351
  'jibitex': jibitex,
342
352
  'kcex': kcex,
353
+ 'kifpoolme': kifpoolme,
343
354
  'kraken': kraken,
344
355
  'krakenfutures': krakenfutures,
345
356
  'kucoin': kucoin,
@@ -347,6 +358,7 @@ const exchanges = {
347
358
  'latoken': latoken,
348
359
  'lbank': lbank,
349
360
  'luno': luno,
361
+ 'mazdax': mazdax,
350
362
  'mercado': mercado,
351
363
  'mexc': mexc,
352
364
  'modetrade': modetrade,
@@ -366,7 +378,9 @@ const exchanges = {
366
378
  'paradex': paradex,
367
379
  'paymium': paymium,
368
380
  'phemex': phemex,
381
+ 'pingi': pingi,
369
382
  'poloniex': poloniex,
383
+ 'pooleno': pooleno,
370
384
  'probit': probit,
371
385
  'ramzinex': ramzinex,
372
386
  'sarmayex': sarmayex,
@@ -478,6 +492,6 @@ pro.exchanges = Object.keys(pro);
478
492
  pro['Exchange'] = Exchange; // now the same for rest and ts
479
493
  //-----------------------------------------------------------------------------
480
494
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
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, };
495
+ 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, bitbarg, 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, bydfi, cafearz, 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, kifpoolme, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mazdax, mercado, mexc, modetrade, myokx, ndax, nobitex, novadax, oceanex, okcoin, okexchange, okx, okxus, ompfinex, onetrading, oxfun, p2b, paradex, paymium, phemex, pingi, poloniex, pooleno, probit, ramzinex, sarmayex, sarrafex, tabdeal, tetherland, timex, tokocrypto, toobit, tradeogre, twox, ubitex, upbit, vertex, wallex, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zonda, };
482
496
  export default ccxt;
483
497
  //-----------------------------------------------------------------------------
@@ -24,7 +24,7 @@ export default class abantether extends Exchange {
24
24
  'pro': false,
25
25
  'has': {
26
26
  'CORS': undefined,
27
- 'spot': true,
27
+ 'spot': false,
28
28
  'margin': false,
29
29
  'swap': false,
30
30
  'future': false,
@@ -80,6 +80,7 @@ export default class abantether extends Exchange {
80
80
  'fetchTradingFee': false,
81
81
  'fetchTradingFees': false,
82
82
  'fetchWithdrawals': false,
83
+ 'otc': true,
83
84
  'setLeverage': false,
84
85
  'setMarginMode': false,
85
86
  'transfer': false,
@@ -89,7 +90,7 @@ export default class abantether extends Exchange {
89
90
  'urls': {
90
91
  'logo': 'https://cdn.arz.digital/cr-odin/img/exchanges/abantether/64x64.png',
91
92
  'api': {
92
- 'public': 'https://abantether.com',
93
+ 'public': 'https://api.abantether.com',
93
94
  },
94
95
  'www': 'https://abantether.com',
95
96
  'doc': [
@@ -99,7 +100,7 @@ export default class abantether extends Exchange {
99
100
  'api': {
100
101
  'public': {
101
102
  'get': {
102
- 'management/all-coins/': 1,
103
+ 'manager/coins/data': 1,
103
104
  },
104
105
  },
105
106
  },
@@ -118,23 +119,24 @@ export default class abantether extends Exchange {
118
119
  * @method
119
120
  * @name abantether#fetchMarkets
120
121
  * @description retrieves data on all markets for abantether
121
- * @see https://abantether.com/management/all-coins/?format=json
122
+ * @see https://api.abantether.com/manager/coins/data
122
123
  * @param {object} [params] extra parameters specific to the exchange API endpoint
123
124
  * @returns {object[]} an array of objects representing market data
124
125
  */
125
- const response = await this.publicGetManagementAllCoins(params);
126
+ const response = await this.publicGetManagerCoinsData(params);
127
+ const data = this.safeList(response, 'data', []);
126
128
  const result = [];
127
129
  const quotes = ['IRT', 'USDT'];
128
- for (let i = 0; i < response.length; i++) {
129
- const base = this.safeString(response[i], 'symbol');
130
+ for (let i = 0; i < data.length; i++) {
131
+ const base = this.safeString(data[i], 'symbol');
130
132
  for (let index = 0; index < quotes.length; index++) {
131
133
  const quote = quotes[index];
132
- response[i]['base'] = base;
133
- response[i]['quote'] = quote;
134
+ data[i]['base'] = base;
135
+ data[i]['quote'] = quote;
134
136
  if (base === quote) {
135
137
  continue;
136
138
  }
137
- const market = this.parseMarket(response[i]);
139
+ const market = this.parseMarket(data[i]);
138
140
  result.push(market);
139
141
  }
140
142
  }
@@ -142,29 +144,38 @@ export default class abantether extends Exchange {
142
144
  }
143
145
  parseMarket(market) {
144
146
  // {
145
- // 'symbol': 'USDT',
146
- // 'name': 'Tether',
147
- // 'categories': [],
148
- // 'tetherPrice': '1',
149
- // 'priceBuy': '59200.0',
150
- // 'priceSell': '58800.0',
151
- // 'persianName': '\u062a\u062a\u0631',
152
- // 'past24': '0',
153
- // 'marketVolume': '1',
154
- // 'id': '1',
155
- // 'active': true,
156
- // 'irtDecimalPoint': '2',
157
- // 'tetherDecimalPoint': '6',
158
- // 'amountDecimalPoint': '6',
159
- // 'past24volume': '767287.60530837810210936763',
160
- // 'operationStatus': {
161
- // 'buyActive': true,
162
- // 'sellActive': true,
163
- // 'withdrawalActive': true,
164
- // 'depositActive': true,
165
- // 'transferActive': true,
166
- // },
167
- // };
147
+ // "id": 1,
148
+ // "name": "Tether USDt",
149
+ // "symbol": "USDT",
150
+ // "persian_name": "تتر",
151
+ // "is_active": true,
152
+ // "is_withdrawal_active": true,
153
+ // "is_deposit_active": true,
154
+ // "is_mid_wallet_transfer_active": true,
155
+ // "is_buy_active": true,
156
+ // "is_sell_active": true,
157
+ // "is_credit_active": true,
158
+ // "min_trade": "1.00",
159
+ // "max_trade": "100000.00",
160
+ // "tether_price": "1",
161
+ // "price_buy": "113540.0",
162
+ // "price_sell": "112630.0",
163
+ // "volume24h": "225163179366.25",
164
+ // "percent_change_1h": "0.00",
165
+ // "percent_change_24h": "0.00",
166
+ // "percent_change_7d": "0.04",
167
+ // "market_cap": "179884960573.99",
168
+ // "coin_type": "COIN",
169
+ // "exchange_type": "fake",
170
+ // "icon": "f71021586005413ea6f3a0bd1f7d8a55",
171
+ // "fund_tether_buy": "0",
172
+ // "fund_tether_sell": "0",
173
+ // "irt_decimal_point": 2,
174
+ // "tether_decimal_point": 6,
175
+ // "amount_decimal_point": 6,
176
+ // "base": "BTC",
177
+ // "qoute": "USDT",
178
+ // },
168
179
  let baseId = this.safeString(market, 'base');
169
180
  let quoteId = this.safeString(market, 'quote');
170
181
  const base = this.safeCurrencyCode(baseId);
@@ -227,7 +238,7 @@ export default class abantether extends Exchange {
227
238
  * @method
228
239
  * @name abantether#fetchTickers
229
240
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
230
- * @see https://abantether.com/management/all-coins/?format=json
241
+ * @see https://api.abantether.com/manager/coins/data
231
242
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
232
243
  * @param {object} [params] extra parameters specific to the exchange API endpoint
233
244
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -236,20 +247,21 @@ export default class abantether extends Exchange {
236
247
  if (symbols !== undefined) {
237
248
  symbols = this.marketSymbols(symbols);
238
249
  }
239
- const response = await this.publicGetManagementAllCoins(params);
250
+ const response = await this.publicGetManagerCoinsData(params);
251
+ const data = this.safeList(response, 'data', []);
240
252
  const result = {};
241
253
  const quotes = ['IRT', 'USDT'];
242
- for (let i = 0; i < response.length; i++) {
243
- const base = this.safeString(response[i], 'symbol');
254
+ for (let i = 0; i < data.length; i++) {
255
+ const base = this.safeString(data[i], 'symbol');
244
256
  for (let index = 0; index < quotes.length; index++) {
245
257
  const quote = quotes[index];
246
258
  if (base === quote) {
247
259
  continue;
248
260
  }
249
- response[i]['base'] = base;
250
- response[i]['quote'] = quote;
251
- response[i]['symbol'] = base + quote;
252
- const ticker = this.parseTicker(response[i]);
261
+ data[i]['base'] = base;
262
+ data[i]['quote'] = quote;
263
+ data[i]['symbol'] = base + quote;
264
+ const ticker = this.parseTicker(data[i]);
253
265
  const symbol = ticker['symbol'];
254
266
  result[symbol] = ticker;
255
267
  }
@@ -261,7 +273,7 @@ export default class abantether extends Exchange {
261
273
  * @method
262
274
  * @name abantether#fetchTicker
263
275
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
264
- * @see https://abantether.com/management/all-coins/?format=json
276
+ * @see https://api.abantether.com/manager/coins/data
265
277
  * @param {string} symbol unified symbol of the market to fetch the ticker for
266
278
  * @param {object} [params] extra parameters specific to the exchange API endpoint
267
279
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -271,38 +283,45 @@ export default class abantether extends Exchange {
271
283
  }
272
284
  parseTicker(ticker, market = undefined) {
273
285
  // {
274
- // 'symbol': 'USDT',
275
- // 'name': 'Tether',
276
- // 'categories': [],
277
- // 'tetherPrice': '1',
278
- // 'priceBuy': '59200.0',
279
- // 'priceSell': '58800.0',
280
- // 'persianName': '\u062a\u062a\u0631',
281
- // 'past24': '0',
282
- // 'marketVolume': '1',
283
- // 'id': '1',
284
- // 'active': true,
285
- // 'irtDecimalPoint': '2',
286
- // 'tetherDecimalPoint': '6',
287
- // 'amountDecimalPoint': '6',
288
- // 'past24volume': '767287.60530837810210936763',
289
- // 'operationStatus': {
290
- // 'buyActive': true,
291
- // 'sellActive': true,
292
- // 'withdrawalActive': true,
293
- // 'depositActive': true,
294
- // 'transferActive': true,
295
- // },
296
- // };
286
+ // "id": 2,
287
+ // "name": "Bitcoin",
288
+ // "symbol": "BTC",
289
+ // "persian_name": "بیت کوین",
290
+ // "is_active": true,
291
+ // "is_withdrawal_active": true,
292
+ // "is_deposit_active": true,
293
+ // "is_mid_wallet_transfer_active": true,
294
+ // "is_buy_active": true,
295
+ // "is_sell_active": true,
296
+ // "is_credit_active": true,
297
+ // "min_trade": "1.00",
298
+ // "max_trade": "65000.00",
299
+ // "tether_price": "114909.43000000",
300
+ // "price_buy": "13049114870.800000000",
301
+ // "price_sell": "12944547289.500000000",
302
+ // "volume24h": "93585526493.26",
303
+ // "percent_change_1h": "-0.29",
304
+ // "percent_change_24h": "3.22",
305
+ // "percent_change_7d": "-7.19",
306
+ // "market_cap": "2292874615411.72",
307
+ // "coin_type": "COIN",
308
+ // "exchange_type": "binance",
309
+ // "icon": "561aa10abc0c45f7aa4499f48d618c80",
310
+ // "fund_tether_buy": "0",
311
+ // "fund_tether_sell": "0",
312
+ // "irt_decimal_point": 0,
313
+ // "tether_decimal_point": 2,
314
+ // "amount_decimal_point": 9
315
+ // },
297
316
  const marketType = 'otc';
298
317
  const marketId = this.safeString(ticker, 'symbol');
299
318
  const symbol = this.safeSymbol(marketId, market, undefined, marketType);
300
- let last = this.safeFloat(ticker, 'tetherPrice', 0);
319
+ let last = this.safeFloat(ticker, 'tether_price', 0);
301
320
  if (ticker['quote'] === 'IRT') {
302
- last = this.safeFloat(ticker, 'priceSell', 0);
321
+ last = this.safeFloat(ticker, 'price_buy', 0);
303
322
  }
304
- const change = this.safeFloat(ticker, 'past24', 0);
305
- const baseVolume = this.safeFloat(ticker, 'past24volume', 0);
323
+ const change = this.safeFloat(ticker, 'percent_change_24h', 0);
324
+ const baseVolume = this.safeFloat(ticker, 'volume24h', 0);
306
325
  return this.safeTicker({
307
326
  'symbol': symbol,
308
327
  'timestamp': undefined,
@@ -1,7 +1,7 @@
1
1
  import { implicitReturnType } from '../base/types.js';
2
2
  import { Exchange as _Exchange } from '../base/Exchange.js';
3
3
  interface Exchange {
4
- publicGetManagementAllCoins(params?: {}): Promise<implicitReturnType>;
4
+ publicGetManagerCoinsData(params?: {}): Promise<implicitReturnType>;
5
5
  }
6
6
  declare abstract class Exchange extends _Exchange {
7
7
  }
@@ -0,0 +1,8 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ publicGetApiV1Currencies(params?: {}): Promise<implicitReturnType>;
5
+ }
6
+ declare abstract class Exchange extends _Exchange {
7
+ }
8
+ 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;
@@ -0,0 +1,11 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ publicGetApiSpotProductList(params?: {}): Promise<implicitReturnType>;
5
+ publicGetApiTvTradingViewHistory(params?: {}): Promise<implicitReturnType>;
6
+ quoteGetTickers(params?: {}): Promise<implicitReturnType>;
7
+ quoteGetMkpaiDepthV2(params?: {}): Promise<implicitReturnType>;
8
+ }
9
+ declare abstract class Exchange extends _Exchange {
10
+ }
11
+ 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;
@@ -0,0 +1,8 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ publicGetApiClientV1CurrenciesPricesDigital(params?: {}): Promise<implicitReturnType>;
5
+ }
6
+ declare abstract class Exchange extends _Exchange {
7
+ }
8
+ 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;
@@ -0,0 +1,9 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ publicGetApiSpotPrice(params?: {}): Promise<implicitReturnType>;
5
+ publicGetApiSpotTickers1m(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;
@@ -0,0 +1,11 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ publicGetMarketSymbols(params?: {}): Promise<implicitReturnType>;
5
+ publicGetMarketRollingprice(params?: {}): Promise<implicitReturnType>;
6
+ publicGetMarketCandle(params?: {}): Promise<implicitReturnType>;
7
+ publicGetMarketOrder(params?: {}): Promise<implicitReturnType>;
8
+ }
9
+ declare abstract class Exchange extends _Exchange {
10
+ }
11
+ 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;
@@ -0,0 +1,9 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ publicGetMarketPrices(params?: {}): Promise<implicitReturnType>;
5
+ publicGetUdfHistory(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;
@@ -0,0 +1,8 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ publicGetApiV1TokensPublic(params?: {}): Promise<implicitReturnType>;
5
+ }
6
+ declare abstract class Exchange extends _Exchange {
7
+ }
8
+ 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;