ccxt 4.2.85 → 4.2.86
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 +5 -5
- package/build.sh +1 -1
- package/dist/ccxt.browser.js +465 -306
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/bingx.js +34 -19
- package/dist/cjs/src/bitbank.js +19 -23
- package/dist/cjs/src/coinex.js +397 -251
- package/dist/cjs/src/idex.js +10 -11
- package/dist/cjs/src/okcoin.js +3 -1
- package/dist/cjs/src/pro/bitget.js +1 -0
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/coinex.d.ts +232 -123
- package/js/src/base/Exchange.d.ts +9 -9
- package/js/src/bingx.js +34 -19
- package/js/src/bitbank.js +19 -23
- package/js/src/coinex.d.ts +1 -1
- package/js/src/coinex.js +397 -251
- package/js/src/idex.js +10 -11
- package/js/src/okcoin.js +3 -1
- package/js/src/pro/bitget.js +1 -0
- package/package.json +1 -1
- package/skip-tests.json +4 -0
package/js/src/idex.js
CHANGED
|
@@ -165,13 +165,15 @@ export default class idex extends Exchange {
|
|
|
165
165
|
'network': 'MATIC',
|
|
166
166
|
},
|
|
167
167
|
'exceptions': {
|
|
168
|
-
'
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
168
|
+
'exact': {
|
|
169
|
+
'INVALID_ORDER_QUANTITY': InvalidOrder,
|
|
170
|
+
'INSUFFICIENT_FUNDS': InsufficientFunds,
|
|
171
|
+
'SERVICE_UNAVAILABLE': ExchangeNotAvailable,
|
|
172
|
+
'EXCEEDED_RATE_LIMIT': DDoSProtection,
|
|
173
|
+
'INVALID_PARAMETER': BadRequest,
|
|
174
|
+
'WALLET_NOT_ASSOCIATED': InvalidAddress,
|
|
175
|
+
'INVALID_WALLET_SIGNATURE': AuthenticationError,
|
|
176
|
+
},
|
|
175
177
|
},
|
|
176
178
|
'requiredCredentials': {
|
|
177
179
|
'walletAddress': true,
|
|
@@ -1497,11 +1499,8 @@ export default class idex extends Exchange {
|
|
|
1497
1499
|
handleErrors(code, reason, url, method, headers, body, response, requestHeaders, requestBody) {
|
|
1498
1500
|
const errorCode = this.safeString(response, 'code');
|
|
1499
1501
|
const message = this.safeString(response, 'message');
|
|
1500
|
-
if (errorCode in this.exceptions) {
|
|
1501
|
-
const Exception = this.exceptions[errorCode];
|
|
1502
|
-
throw new Exception(this.id + ' ' + message);
|
|
1503
|
-
}
|
|
1504
1502
|
if (errorCode !== undefined) {
|
|
1503
|
+
this.throwExactlyMatchedException(this.exceptions['exact'], errorCode, message);
|
|
1505
1504
|
throw new ExchangeError(this.id + ' ' + message);
|
|
1506
1505
|
}
|
|
1507
1506
|
return undefined;
|
package/js/src/okcoin.js
CHANGED
|
@@ -1136,8 +1136,10 @@ export default class okcoin extends Exchange {
|
|
|
1136
1136
|
const request = {
|
|
1137
1137
|
'instId': market['id'],
|
|
1138
1138
|
'bar': bar,
|
|
1139
|
-
'limit': limit,
|
|
1140
1139
|
};
|
|
1140
|
+
if (limit !== undefined) {
|
|
1141
|
+
request['limit'] = limit; // default 100, max 100
|
|
1142
|
+
}
|
|
1141
1143
|
let method = undefined;
|
|
1142
1144
|
[method, params] = this.handleOptionAndParams(params, 'fetchOHLCV', 'method', 'publicGetMarketCandles');
|
|
1143
1145
|
let response = undefined;
|
package/js/src/pro/bitget.js
CHANGED
package/package.json
CHANGED
package/skip-tests.json
CHANGED
|
@@ -597,6 +597,9 @@
|
|
|
597
597
|
"skipMethods": {
|
|
598
598
|
"fetchTrades": {
|
|
599
599
|
"side":"side is undefined"
|
|
600
|
+
},
|
|
601
|
+
"ticker": {
|
|
602
|
+
"spread": "https://app.travis-ci.com/github/ccxt/ccxt/builds/269687705#L3745"
|
|
600
603
|
}
|
|
601
604
|
}
|
|
602
605
|
},
|
|
@@ -961,6 +964,7 @@
|
|
|
961
964
|
},
|
|
962
965
|
"idex": {
|
|
963
966
|
"skipWs": "timeouts",
|
|
967
|
+
"skipCSharp": "for some reasons, frequent rate limits only in C#",
|
|
964
968
|
"skipMethods": {
|
|
965
969
|
"fetchCurrencies": {
|
|
966
970
|
"withdraw":"not provided",
|