ccxt 4.2.99 → 4.2.100
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 +3 -3
- package/dist/ccxt.browser.js +8 -8
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ascendex.js +1 -1
- package/dist/cjs/src/kucoin.js +6 -6
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/ascendex.js +2 -2
- package/js/src/kucoin.js +6 -6
- package/package.json +1 -1
package/dist/cjs/ccxt.js
CHANGED
|
@@ -182,7 +182,7 @@ var woo$1 = require('./src/pro/woo.js');
|
|
|
182
182
|
|
|
183
183
|
//-----------------------------------------------------------------------------
|
|
184
184
|
// this is updated by vss.js when building
|
|
185
|
-
const version = '4.2.
|
|
185
|
+
const version = '4.2.100';
|
|
186
186
|
Exchange["default"].ccxtVersion = version;
|
|
187
187
|
const exchanges = {
|
|
188
188
|
'ace': ace,
|
package/dist/cjs/src/ascendex.js
CHANGED
|
@@ -358,7 +358,7 @@ class ascendex extends ascendex$1 {
|
|
|
358
358
|
'300013': errors.InvalidOrder,
|
|
359
359
|
'300014': errors.InvalidOrder,
|
|
360
360
|
'300020': errors.InvalidOrder,
|
|
361
|
-
'300021': errors.
|
|
361
|
+
'300021': errors.AccountSuspended,
|
|
362
362
|
'300031': errors.InvalidOrder,
|
|
363
363
|
'310001': errors.InsufficientFunds,
|
|
364
364
|
'310002': errors.InvalidOrder,
|
package/dist/cjs/src/kucoin.js
CHANGED
|
@@ -1197,10 +1197,10 @@ class kucoin extends kucoin$1 {
|
|
|
1197
1197
|
// }
|
|
1198
1198
|
//
|
|
1199
1199
|
const responses = await Promise.all(promises);
|
|
1200
|
-
const currenciesResponse = this.
|
|
1201
|
-
const currenciesData = this.
|
|
1202
|
-
const additionalResponse = this.
|
|
1203
|
-
const additionalData = this.
|
|
1200
|
+
const currenciesResponse = this.safeDict(responses, 0, {});
|
|
1201
|
+
const currenciesData = this.safeList(currenciesResponse, 'data', []);
|
|
1202
|
+
const additionalResponse = this.safeDict(responses, 1, {});
|
|
1203
|
+
const additionalData = this.safeList(additionalResponse, 'data', []);
|
|
1204
1204
|
const additionalDataGrouped = this.groupBy(additionalData, 'currency');
|
|
1205
1205
|
const result = {};
|
|
1206
1206
|
for (let i = 0; i < currenciesData.length; i++) {
|
|
@@ -1212,7 +1212,7 @@ class kucoin extends kucoin$1 {
|
|
|
1212
1212
|
let isDepositEnabled = undefined;
|
|
1213
1213
|
const networks = {};
|
|
1214
1214
|
const chains = this.safeList(entry, 'chains', []);
|
|
1215
|
-
const extraChainsData = this.indexBy(this.
|
|
1215
|
+
const extraChainsData = this.indexBy(this.safeList(additionalDataGrouped, id, []), 'chain');
|
|
1216
1216
|
const rawPrecision = this.safeString(entry, 'precision');
|
|
1217
1217
|
const precision = this.parseNumber(this.parsePrecision(rawPrecision));
|
|
1218
1218
|
const chainsLength = chains.length;
|
|
@@ -1353,7 +1353,7 @@ class kucoin extends kucoin$1 {
|
|
|
1353
1353
|
request['chain'] = this.networkCodeToId(networkCode).toLowerCase();
|
|
1354
1354
|
}
|
|
1355
1355
|
const response = await this.privateGetWithdrawalsQuotas(this.extend(request, params));
|
|
1356
|
-
const data = this.
|
|
1356
|
+
const data = this.safeDict(response, 'data', {});
|
|
1357
1357
|
const withdrawFees = {};
|
|
1358
1358
|
withdrawFees[code] = this.safeNumber(data, 'withdrawMinFee');
|
|
1359
1359
|
return {
|
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 { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, Leverage, Leverages, Option, OptionChain, Conversion } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.2.
|
|
7
|
+
declare const version = "4.2.99";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.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, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, ProxyError, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.2.
|
|
41
|
+
const version = '4.2.100';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
package/js/src/ascendex.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// ---------------------------------------------------------------------------
|
|
8
8
|
import Exchange from './abstract/ascendex.js';
|
|
9
|
-
import { ArgumentsRequired, AuthenticationError, ExchangeError, InsufficientFunds, InvalidOrder, BadSymbol, PermissionDenied, BadRequest, NotSupported } from './base/errors.js';
|
|
9
|
+
import { ArgumentsRequired, AuthenticationError, ExchangeError, AccountSuspended, InsufficientFunds, InvalidOrder, BadSymbol, PermissionDenied, BadRequest, NotSupported } from './base/errors.js';
|
|
10
10
|
import { Precise } from './base/Precise.js';
|
|
11
11
|
import { TICK_SIZE } from './base/functions/number.js';
|
|
12
12
|
import { sha256 } from './static_dependencies/noble-hashes/sha256.js';
|
|
@@ -361,7 +361,7 @@ export default class ascendex extends Exchange {
|
|
|
361
361
|
'300013': InvalidOrder,
|
|
362
362
|
'300014': InvalidOrder,
|
|
363
363
|
'300020': InvalidOrder,
|
|
364
|
-
'300021':
|
|
364
|
+
'300021': AccountSuspended,
|
|
365
365
|
'300031': InvalidOrder,
|
|
366
366
|
'310001': InsufficientFunds,
|
|
367
367
|
'310002': InvalidOrder,
|
package/js/src/kucoin.js
CHANGED
|
@@ -1200,10 +1200,10 @@ export default class kucoin extends Exchange {
|
|
|
1200
1200
|
// }
|
|
1201
1201
|
//
|
|
1202
1202
|
const responses = await Promise.all(promises);
|
|
1203
|
-
const currenciesResponse = this.
|
|
1204
|
-
const currenciesData = this.
|
|
1205
|
-
const additionalResponse = this.
|
|
1206
|
-
const additionalData = this.
|
|
1203
|
+
const currenciesResponse = this.safeDict(responses, 0, {});
|
|
1204
|
+
const currenciesData = this.safeList(currenciesResponse, 'data', []);
|
|
1205
|
+
const additionalResponse = this.safeDict(responses, 1, {});
|
|
1206
|
+
const additionalData = this.safeList(additionalResponse, 'data', []);
|
|
1207
1207
|
const additionalDataGrouped = this.groupBy(additionalData, 'currency');
|
|
1208
1208
|
const result = {};
|
|
1209
1209
|
for (let i = 0; i < currenciesData.length; i++) {
|
|
@@ -1215,7 +1215,7 @@ export default class kucoin extends Exchange {
|
|
|
1215
1215
|
let isDepositEnabled = undefined;
|
|
1216
1216
|
const networks = {};
|
|
1217
1217
|
const chains = this.safeList(entry, 'chains', []);
|
|
1218
|
-
const extraChainsData = this.indexBy(this.
|
|
1218
|
+
const extraChainsData = this.indexBy(this.safeList(additionalDataGrouped, id, []), 'chain');
|
|
1219
1219
|
const rawPrecision = this.safeString(entry, 'precision');
|
|
1220
1220
|
const precision = this.parseNumber(this.parsePrecision(rawPrecision));
|
|
1221
1221
|
const chainsLength = chains.length;
|
|
@@ -1356,7 +1356,7 @@ export default class kucoin extends Exchange {
|
|
|
1356
1356
|
request['chain'] = this.networkCodeToId(networkCode).toLowerCase();
|
|
1357
1357
|
}
|
|
1358
1358
|
const response = await this.privateGetWithdrawalsQuotas(this.extend(request, params));
|
|
1359
|
-
const data = this.
|
|
1359
|
+
const data = this.safeDict(response, 'data', {});
|
|
1360
1360
|
const withdrawFees = {};
|
|
1361
1361
|
withdrawFees[code] = this.safeNumber(data, 'withdrawMinFee');
|
|
1362
1362
|
return {
|
package/package.json
CHANGED