ccxt-ir 4.9.0 → 4.9.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.
package/dist/cjs/ccxt.js CHANGED
@@ -224,7 +224,7 @@ var xt$1 = require('./src/pro/xt.js');
224
224
 
225
225
  //-----------------------------------------------------------------------------
226
226
  // this is updated by vss.js when building
227
- const version = '4.9.0';
227
+ const version = '4.9.3';
228
228
  Exchange["default"].ccxtVersion = version;
229
229
  const exchanges = {
230
230
  'abantether': abantether["default"],
@@ -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': true,
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
- if (params['stats'] !== undefined) {
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 (params['symbol'] !== undefined) {
430
- url = url + '/' + params['symbol'];
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 };
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.0";
7
+ declare const version = "4.9.3";
8
8
  import abantether from './src/abantether.js';
9
9
  import afratether from './src/afratether.js';
10
10
  import alpaca from './src/alpaca.js';
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.0';
41
+ const version = '4.9.3';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import abantether from './src/abantether.js';
@@ -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
  }
@@ -9,9 +9,11 @@ export default class arzplus extends Exchange {
9
9
  describe(): any;
10
10
  fetchMarkets(params?: {}): Promise<Market[]>;
11
11
  parseMarket(market: any): Market;
12
+ parseOTCMarkets(market: any): any;
12
13
  fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
13
14
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
14
15
  parseTicker(ticker: any, market?: Market): Ticker;
16
+ parseOTCTicker(ticker: any, market?: Market): Ticker;
15
17
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
16
18
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
17
19
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
package/js/src/arzplus.js CHANGED
@@ -105,6 +105,7 @@ export default class arzplus extends Exchange {
105
105
  'api/v1/market/symbols': 1,
106
106
  'api/v1/market/tradingview/ohlcv': 1,
107
107
  'api/v1/market/depth': 1,
108
+ 'api/v1/market/irt/info': 1,
108
109
  },
109
110
  },
110
111
  },
@@ -132,11 +133,22 @@ export default class arzplus extends Exchange {
132
133
  'enable': 'true',
133
134
  };
134
135
  const response = await this.publicGetApiV1MarketSymbols(request);
136
+ const otcMarkets = await this.publicGetApiV1MarketIrtInfo(request);
135
137
  const result = [];
136
138
  for (let i = 0; i < response.length; i++) {
137
139
  const market = this.parseMarket(response[i]);
138
140
  result.push(market);
139
141
  }
142
+ for (let i = 0; i < otcMarkets.length; i++) {
143
+ const marketdata = otcMarkets[i];
144
+ marketdata['quote'] = 'IRT';
145
+ marketdata['id'] = 'OTC_' + marketdata['symbol'] + marketdata['quote'];
146
+ const parsedMarket = this.parseOTCMarkets(marketdata);
147
+ result.push(parsedMarket);
148
+ }
149
+ if (params['type']) {
150
+ return this.filterByArray(result, 'type', params['type'], false);
151
+ }
140
152
  return result;
141
153
  }
142
154
  parseMarket(market) {
@@ -235,6 +247,70 @@ export default class arzplus extends Exchange {
235
247
  'info': market,
236
248
  };
237
249
  }
250
+ parseOTCMarkets(market) {
251
+ // {
252
+ // symbol: "BTC",
253
+ // ask: "13877900000",
254
+ // bid: "13860999995",
255
+ // name: "bitcoin"
256
+ // },
257
+ const baseAsset = this.safeString(market, 'symbol');
258
+ const quoteAsset = this.safeString(market, 'quote');
259
+ const baseId = baseAsset;
260
+ const quoteId = quoteAsset;
261
+ const base = this.safeCurrencyCode(baseId);
262
+ const quote = this.safeCurrencyCode(quoteId);
263
+ const id = this.safeString(market, 'id');
264
+ return {
265
+ 'id': id,
266
+ 'symbol': base + '/' + quote,
267
+ 'base': base,
268
+ 'quote': quote,
269
+ 'settle': undefined,
270
+ 'baseId': baseId,
271
+ 'quoteId': quoteId,
272
+ 'settleId': undefined,
273
+ 'type': 'otc',
274
+ 'spot': true,
275
+ 'margin': false,
276
+ 'swap': false,
277
+ 'future': false,
278
+ 'option': false,
279
+ 'active': true,
280
+ 'contract': false,
281
+ 'linear': undefined,
282
+ 'inverse': undefined,
283
+ 'contractSize': undefined,
284
+ 'expiry': undefined,
285
+ 'expiryDatetime': undefined,
286
+ 'strike': undefined,
287
+ 'optionType': undefined,
288
+ 'precision': {
289
+ 'amount': undefined,
290
+ 'price': undefined,
291
+ },
292
+ 'limits': {
293
+ 'leverage': {
294
+ 'min': undefined,
295
+ 'max': undefined,
296
+ },
297
+ 'amount': {
298
+ 'min': undefined,
299
+ 'max': undefined,
300
+ },
301
+ 'price': {
302
+ 'min': undefined,
303
+ 'max': undefined,
304
+ },
305
+ 'cost': {
306
+ 'min': undefined,
307
+ 'max': undefined,
308
+ },
309
+ },
310
+ 'created': undefined,
311
+ 'info': market,
312
+ };
313
+ }
238
314
  async fetchTickers(symbols = undefined, params = {}) {
239
315
  /**
240
316
  * @method
@@ -249,8 +325,20 @@ export default class arzplus extends Exchange {
249
325
  if (symbols !== undefined) {
250
326
  symbols = this.marketSymbols(symbols);
251
327
  }
252
- const response = await this.publicGetApiV1MarketSymbols(params);
253
328
  const result = {};
329
+ if (params['type'] === 'otc') {
330
+ const otcMarkets = await this.publicGetApiV1MarketIrtInfo(params);
331
+ for (let i = 0; i < otcMarkets.length; i++) {
332
+ const marketdata = otcMarkets[i];
333
+ marketdata['quote'] = 'IRT';
334
+ marketdata['id'] = 'OTC_' + marketdata['symbol'] + marketdata['quote'];
335
+ const parsedMarket = this.parseOTCTicker(marketdata);
336
+ const symbol = parsedMarket['symbol'];
337
+ result[symbol] = parsedMarket;
338
+ }
339
+ return this.filterByArrayTickers(result, 'symbol', symbols);
340
+ }
341
+ const response = await this.publicGetApiV1MarketSymbols(params);
254
342
  for (let i = 0; i < response.length; i++) {
255
343
  const request = {
256
344
  'symbol': response[i]['name'],
@@ -350,6 +438,44 @@ export default class arzplus extends Exchange {
350
438
  'info': ticker,
351
439
  }, market);
352
440
  }
441
+ parseOTCTicker(ticker, market = undefined) {
442
+ // {
443
+ // id: "BTCUSDT",
444
+ // symbol: "BTC",
445
+ // ask: "13877900000",
446
+ // bid: "13860999995",
447
+ // name: "bitcoin"
448
+ // quote: "IRT"
449
+ // }
450
+ const marketType = 'otc';
451
+ const marketId = this.safeString(ticker, 'id');
452
+ const symbol = this.safeSymbol(marketId, market, undefined, marketType);
453
+ const bid = this.safeFloat(ticker, 'bid', 0);
454
+ const ask = this.safeFloat(ticker, 'ask', 0);
455
+ const last = this.safeFloat(ticker, 'ask', 0);
456
+ return this.safeTicker({
457
+ 'symbol': symbol,
458
+ 'timestamp': undefined,
459
+ 'datetime': undefined,
460
+ 'high': undefined,
461
+ 'low': undefined,
462
+ 'bid': bid,
463
+ 'bidVolume': undefined,
464
+ 'ask': ask,
465
+ 'askVolume': undefined,
466
+ 'vwap': undefined,
467
+ 'open': last,
468
+ 'close': last,
469
+ 'last': last,
470
+ 'previousClose': undefined,
471
+ 'change': undefined,
472
+ 'percentage': undefined,
473
+ 'average': undefined,
474
+ 'baseVolume': undefined,
475
+ 'quoteVolume': undefined,
476
+ 'info': ticker,
477
+ }, market);
478
+ }
353
479
  async fetchOHLCV(symbol, timeframe = '1h', since = undefined, limit = undefined, params = {}) {
354
480
  /**
355
481
  * @method
@@ -421,14 +547,16 @@ export default class arzplus extends Exchange {
421
547
  sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
422
548
  const query = this.omit(params, this.extractParams(path));
423
549
  let url = this.urls['api']['public'] + '/' + path;
424
- if (params['stats'] !== undefined) {
550
+ const symbol = this.safeString(params, 'symbol');
551
+ const stats = this.safeValue(params, 'stats');
552
+ if (stats !== undefined) {
425
553
  url = url + '?' + this.urlencode(query);
426
554
  }
427
555
  if (path === 'api/v1/market/tradingview/ohlcv') {
428
556
  url = url + '?' + this.urlencode(query);
429
557
  }
430
- else if (params['symbol'] !== undefined) {
431
- url = url + '/' + params['symbol'];
558
+ else if (symbol !== undefined) {
559
+ url = url + '/' + symbol;
432
560
  }
433
561
  headers = { 'Content-Type': 'application/json' };
434
562
  return { 'url': url, 'method': method, 'body': body, 'headers': headers };
@@ -252,7 +252,7 @@ export default class Exchange {
252
252
  outputLen: number;
253
253
  blockLen: number;
254
254
  create(): import("../static_dependencies/noble-hashes/utils.js").Hash<import("../static_dependencies/noble-hashes/utils.js").Hash<any>>;
255
- }, digest?: "binary" | "hex" | "base64") => any;
255
+ }, digest?: "hex" | "base64" | "binary") => any;
256
256
  arrayConcat: (a: any[], b: any[]) => any[];
257
257
  encode: (str: string) => Uint8Array;
258
258
  urlencode: (object: object, sort?: boolean) => string;
@@ -261,7 +261,7 @@ export default class Exchange {
261
261
  outputLen: number;
262
262
  blockLen: number;
263
263
  create(): import("../static_dependencies/noble-hashes/utils.js").Hash<import("../static_dependencies/noble-hashes/utils.js").Hash<any>>;
264
- }, digest?: "binary" | "hex" | "base64") => any;
264
+ }, digest?: "hex" | "base64" | "binary") => any;
265
265
  numberToString: typeof functions.numberToString;
266
266
  parseTimeframe: (timeframe: string) => number;
267
267
  safeInteger2: (o: any, k1: IndexType, k2: IndexType, $default?: number) => number;
@@ -311,7 +311,7 @@ export default class coinbaseexchange extends Exchange {
311
311
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
312
312
  */
313
313
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
314
- parseTransactionStatus(transaction: any): "canceled" | "pending" | "failed" | "ok";
314
+ parseTransactionStatus(transaction: any): "canceled" | "pending" | "ok" | "failed";
315
315
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
316
316
  /**
317
317
  * @method
@@ -1,2 +1,8 @@
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
+
1
7
  export = $root;
2
8
  declare var $root: {};
@@ -5,7 +5,7 @@ export function deflate(data: any, opts: any, cb: any): () => void;
5
5
  * @param opts The compression options
6
6
  * @returns The deflated version of the data
7
7
  */
8
- export function deflateSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
8
+ export function deflateSync(data: any, opts: any): Uint8Array | Uint16Array | Uint32Array;
9
9
  export function inflate(data: any, opts: any, cb: any): () => void;
10
10
  /**
11
11
  * Expands DEFLATE data with no wrapper
@@ -21,7 +21,7 @@ export function gzip(data: any, opts: any, cb: any): () => void;
21
21
  * @param opts The compression options
22
22
  * @returns The gzipped version of the data
23
23
  */
24
- export function gzipSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
24
+ export function gzipSync(data: any, opts: any): Uint8Array | Uint16Array | Uint32Array;
25
25
  export function gunzip(data: any, opts: any, cb: any): () => void;
26
26
  /**
27
27
  * Expands GZIP data
@@ -37,7 +37,7 @@ export function zlib(data: any, opts: any, cb: any): () => void;
37
37
  * @param opts The compression options
38
38
  * @returns The zlib-compressed version of the data
39
39
  */
40
- export function zlibSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
40
+ export function zlibSync(data: any, opts: any): Uint8Array | Uint16Array | Uint32Array;
41
41
  export function unzlib(data: any, opts: any, cb: any): () => void;
42
42
  /**
43
43
  * Expands Zlib data
@@ -61,7 +61,7 @@ export function decompressSync(data: any, out: any): any;
61
61
  * not need to be true unless decoding a binary string.
62
62
  * @returns The string encoded in UTF-8/Latin-1 binary
63
63
  */
64
- export function strToU8(str: any, latin1: any): Uint8Array | Uint32Array | Uint16Array;
64
+ export function strToU8(str: any, latin1: any): Uint8Array | Uint16Array | Uint32Array;
65
65
  /**
66
66
  * Converts a Uint8Array to a string
67
67
  * @param dat The data to decode to string
@@ -69,7 +69,7 @@ export function strToU8(str: any, latin1: any): Uint8Array | Uint32Array | Uint1
69
69
  * not need to be true unless encoding to binary string.
70
70
  * @returns The original UTF-8/Latin-1 string
71
71
  */
72
- export function strFromU8(dat: any, latin1: any): string | Uint8Array | Uint32Array | Uint16Array;
72
+ export function strFromU8(dat: any, latin1: any): string | Uint8Array | Uint16Array | Uint32Array;
73
73
  export function zip(data: any, opts: any, cb: any): () => void;
74
74
  /**
75
75
  * Synchronously creates a ZIP file. Prefer using `zip` for better performance
@@ -12,7 +12,7 @@ export declare class Stream {
12
12
  parseStringUTF(start: number, end: number): string;
13
13
  parseStringBMP(start: number, end: number): string;
14
14
  parseTime(start: number, end: number, shortYear: boolean): string;
15
- parseInteger(start: number, end: number): string | -1 | 0;
15
+ parseInteger(start: number, end: number): string | 0 | -1;
16
16
  parseBitString(start: number, end: number, maxLength: number): string;
17
17
  parseOctetString(start: number, end: number, maxLength: number): string;
18
18
  parseOID(start: number, end: number, maxLength: number): string;
@@ -25,7 +25,7 @@ export declare class ASN1 {
25
25
  private tag;
26
26
  sub: ASN1[];
27
27
  typeName(): string;
28
- content(maxLength: number): string | -1 | 0;
28
+ content(maxLength: number): string | 0 | -1;
29
29
  toString(): string;
30
30
  toPrettyString(indent: string): string;
31
31
  posStart(): number;
@@ -15,7 +15,7 @@ export declare class BigInteger {
15
15
  protected intValue(): number;
16
16
  protected byteValue(): number;
17
17
  protected shortValue(): number;
18
- protected signum(): 1 | -1 | 0;
18
+ protected signum(): 0 | 1 | -1;
19
19
  toByteArray(): number[];
20
20
  protected equals(a: BigInteger): boolean;
21
21
  protected min(a: BigInteger): BigInteger;
@@ -1,3 +1,9 @@
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
+
1
7
  declare const _default: string;
2
8
  export declare namespace formatters {
3
9
  function RFC1738(value: any): string;
@@ -1,3 +1,9 @@
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
+
1
7
  import formats = require("./formats.cjs");
2
8
  import parse = require("./parse.cjs");
3
9
  import stringify = require("./stringify.cjs");
@@ -1,2 +1,8 @@
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
+
1
7
  declare function _exports(str: any, opts: any): any;
2
8
  export = _exports;
@@ -1,2 +1,8 @@
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
+
1
7
  declare function _exports(object: any, opts: any): string;
2
8
  export = _exports;
@@ -1,3 +1,9 @@
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
+
1
7
  export function arrayToObject(source: any, options: any): any;
2
8
  export function assign(target: any, source: any): any;
3
9
  export function combine(a: any, b: any): any[];
@@ -1,5 +1,5 @@
1
1
  import { Abi, FunctionAbi, RawArgs } from '../../../types/index.js';
2
2
  import { AbiParserInterface } from './interface.js';
3
3
  export declare function createAbiParser(abi: Abi): AbiParserInterface;
4
- export declare function getAbiVersion(abi: Abi): 1 | 0 | 2;
4
+ export declare function getAbiVersion(abi: Abi): 0 | 1 | 2;
5
5
  export declare function isNoConstructorValid(method: string, argsCalldata: RawArgs, abiMethod?: FunctionAbi): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt-ir",
3
- "version": "4.9.0",
3
+ "version": "4.9.3",
4
4
  "description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges",
5
5
  "unpkg": "dist/ccxt.browser.min.js",
6
6
  "type": "module",