ccxt 4.3.52 → 4.3.53
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 +6 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/vertex.js +9 -0
- package/dist/cjs/src/base/Precise.js +10 -0
- package/dist/cjs/src/base/functions/type.js +43 -10
- package/dist/cjs/src/hyperliquid.js +27 -26
- package/dist/cjs/src/pro/probit.js +8 -3
- package/dist/cjs/src/pro/vertex.js +978 -0
- package/dist/cjs/src/probit.js +10 -5
- package/dist/cjs/src/static_dependencies/ethers/hash/typed-data.js +1 -1
- package/dist/cjs/src/vertex.js +2941 -0
- package/js/ccxt.d.ts +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/vertex.d.ts +22 -0
- package/js/src/abstract/vertex.js +11 -0
- package/js/src/base/Exchange.d.ts +1 -1
- package/js/src/base/Precise.d.ts +2 -0
- package/js/src/base/Precise.js +10 -0
- package/js/src/base/functions/type.js +43 -10
- package/js/src/binance.d.ts +1 -11
- package/js/src/bitget.d.ts +1 -1
- package/js/src/bitmart.d.ts +1 -1
- package/js/src/coinex.d.ts +1 -1
- package/js/src/htx.d.ts +1 -1
- package/js/src/hyperliquid.js +27 -26
- package/js/src/pro/probit.js +8 -3
- package/js/src/pro/vertex.d.ts +39 -0
- package/js/src/pro/vertex.js +979 -0
- package/js/src/probit.js +11 -6
- package/js/src/static_dependencies/ethers/hash/typed-data.js +1 -1
- package/js/src/vertex.d.ts +112 -0
- package/js/src/vertex.js +2942 -0
- package/package.json +1 -1
package/dist/cjs/src/probit.js
CHANGED
|
@@ -179,7 +179,7 @@ class probit extends probit$1 {
|
|
|
179
179
|
'RATE_LIMIT_EXCEEDED': errors.RateLimitExceeded,
|
|
180
180
|
'MARKET_UNAVAILABLE': errors.ExchangeNotAvailable,
|
|
181
181
|
'INVALID_MARKET': errors.BadSymbol,
|
|
182
|
-
'MARKET_CLOSED': errors.
|
|
182
|
+
'MARKET_CLOSED': errors.MarketClosed,
|
|
183
183
|
'MARKET_NOT_FOUND': errors.BadSymbol,
|
|
184
184
|
'INVALID_CURRENCY': errors.BadRequest,
|
|
185
185
|
'TOO_MANY_OPEN_ORDERS': errors.DDoSProtection,
|
|
@@ -1836,11 +1836,16 @@ class probit extends probit$1 {
|
|
|
1836
1836
|
}
|
|
1837
1837
|
if ('errorCode' in response) {
|
|
1838
1838
|
const errorCode = this.safeString(response, 'errorCode');
|
|
1839
|
-
const message = this.safeString(response, 'message');
|
|
1840
1839
|
if (errorCode !== undefined) {
|
|
1841
|
-
const
|
|
1842
|
-
this.
|
|
1843
|
-
this.
|
|
1840
|
+
const errMessage = this.safeString(response, 'message', '');
|
|
1841
|
+
const details = this.safeValue(response, 'details');
|
|
1842
|
+
const feedback = this.id + ' ' + errorCode + ' ' + errMessage + ' ' + this.json(details);
|
|
1843
|
+
if ('exact' in this.exceptions) {
|
|
1844
|
+
this.throwExactlyMatchedException(this.exceptions['exact'], errorCode, feedback);
|
|
1845
|
+
}
|
|
1846
|
+
if ('broad' in this.exceptions) {
|
|
1847
|
+
this.throwBroadlyMatchedException(this.exceptions['broad'], errMessage, feedback);
|
|
1848
|
+
}
|
|
1844
1849
|
throw new errors.ExchangeError(feedback);
|
|
1845
1850
|
}
|
|
1846
1851
|
}
|
|
@@ -467,7 +467,7 @@ _TypedDataEncoder_types = new WeakMap(), _TypedDataEncoder_fullTypes = new WeakM
|
|
|
467
467
|
if (__classPrivateFieldGet(this, _TypedDataEncoder_fullTypes, "f").has(subtype)) {
|
|
468
468
|
result = result.map(index.keccak256);
|
|
469
469
|
}
|
|
470
|
-
return index.keccak256(data.concat(result));
|
|
470
|
+
return index.keccak256(data.getBytes(data.concat(result)));
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
473
|
// Struct
|