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/bitbank.js
CHANGED
|
@@ -141,21 +141,23 @@ export default class bitbank extends Exchange {
|
|
|
141
141
|
},
|
|
142
142
|
'precisionMode': TICK_SIZE,
|
|
143
143
|
'exceptions': {
|
|
144
|
-
'
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
144
|
+
'exact': {
|
|
145
|
+
'20001': AuthenticationError,
|
|
146
|
+
'20002': AuthenticationError,
|
|
147
|
+
'20003': AuthenticationError,
|
|
148
|
+
'20005': AuthenticationError,
|
|
149
|
+
'20004': InvalidNonce,
|
|
150
|
+
'40020': InvalidOrder,
|
|
151
|
+
'40021': InvalidOrder,
|
|
152
|
+
'40025': ExchangeError,
|
|
153
|
+
'40013': OrderNotFound,
|
|
154
|
+
'40014': OrderNotFound,
|
|
155
|
+
'50008': PermissionDenied,
|
|
156
|
+
'50009': OrderNotFound,
|
|
157
|
+
'50010': OrderNotFound,
|
|
158
|
+
'60001': InsufficientFunds,
|
|
159
|
+
'60005': InvalidOrder,
|
|
160
|
+
},
|
|
159
161
|
},
|
|
160
162
|
});
|
|
161
163
|
}
|
|
@@ -986,16 +988,10 @@ export default class bitbank extends Exchange {
|
|
|
986
988
|
'70009': 'We are currently temporarily restricting orders to be carried out. Please use the limit order.',
|
|
987
989
|
'70010': 'We are temporarily raising the minimum order quantity as the system load is now rising.',
|
|
988
990
|
};
|
|
989
|
-
const errorClasses = this.exceptions;
|
|
990
991
|
const code = this.safeString(data, 'code');
|
|
991
992
|
const message = this.safeString(errorMessages, code, 'Error');
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
throw new errorClasses[code](message);
|
|
995
|
-
}
|
|
996
|
-
else {
|
|
997
|
-
throw new ExchangeError(this.id + ' ' + this.json(response));
|
|
998
|
-
}
|
|
993
|
+
this.throwExactlyMatchedException(this.exceptions['exact'], code, message);
|
|
994
|
+
throw new ExchangeError(this.id + ' ' + this.json(response));
|
|
999
995
|
}
|
|
1000
996
|
return undefined;
|
|
1001
997
|
}
|
package/js/src/coinex.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ export default class coinex extends Exchange {
|
|
|
211
211
|
parseLeverage(leverage: any, market?: any): Leverage;
|
|
212
212
|
handleMarginModeAndParams(methodName: any, params?: {}, defaultValue?: any): any[];
|
|
213
213
|
nonce(): number;
|
|
214
|
-
sign(path: any, api?:
|
|
214
|
+
sign(path: any, api?: any[], method?: string, params?: {}, headers?: any, body?: any): {
|
|
215
215
|
url: string;
|
|
216
216
|
method: string;
|
|
217
217
|
body: any;
|