ccxt 4.2.50 → 4.2.51
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/build.sh +1 -1
- package/dist/ccxt.browser.js +16 -8
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/binance.js +7 -0
- package/dist/cjs/src/mexc.js +2 -1
- package/dist/cjs/src/okx.js +1 -1
- package/dist/cjs/src/pro/bitcoincom.js +4 -5
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/binance.d.ts +5 -0
- package/js/src/abstract/binancecoinm.d.ts +5 -0
- package/js/src/abstract/binanceus.d.ts +5 -0
- package/js/src/abstract/binanceusdm.d.ts +5 -0
- package/js/src/binance.js +7 -0
- package/js/src/mexc.js +2 -1
- package/js/src/okx.js +1 -1
- package/js/src/pro/bitcoincom.js +4 -5
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/package.json +2 -2
- package/skip-tests.json +1 -0
package/README.md
CHANGED
|
@@ -210,13 +210,13 @@ console.log(version, Object.keys(exchanges));
|
|
|
210
210
|
|
|
211
211
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
|
212
212
|
|
|
213
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.
|
|
214
|
-
* unpkg: https://unpkg.com/ccxt@4.2.
|
|
213
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.51/dist/ccxt.browser.js
|
|
214
|
+
* unpkg: https://unpkg.com/ccxt@4.2.51/dist/ccxt.browser.js
|
|
215
215
|
|
|
216
216
|
CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
|
|
217
217
|
|
|
218
218
|
```HTML
|
|
219
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.
|
|
219
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.51/dist/ccxt.browser.js"></script>
|
|
220
220
|
```
|
|
221
221
|
|
|
222
222
|
Creates a global `ccxt` object:
|
package/build.sh
CHANGED
|
@@ -116,7 +116,7 @@ diff=$(echo "$diff" | sed -e "s/^ts\/src\/test\/static.*json//") #remove static
|
|
|
116
116
|
# diff=$(echo "$diff" | sed -e "s/^\.travis\.yml//")
|
|
117
117
|
# diff=$(echo "$diff" | sed -e "s/^package\-lock\.json//")
|
|
118
118
|
# diff=$(echo "$diff" | sed -e "s/python\/qa\.py//")
|
|
119
|
-
#echo $diff
|
|
119
|
+
#echo $diff
|
|
120
120
|
|
|
121
121
|
critical_pattern='Client(Trait)?\.php|Exchange\.php|\/base|^build|static_dependencies|^run-tests|package(-lock)?\.json|composer\.json|ccxt\.ts|__init__.py|test' # add \/test|
|
|
122
122
|
if [[ "$diff" =~ $critical_pattern ]]; then
|
package/dist/ccxt.browser.js
CHANGED
|
@@ -18536,6 +18536,10 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
18536
18536
|
'simple-earn/flexible/history/rewardsRecord': 15,
|
|
18537
18537
|
'simple-earn/locked/history/rewardsRecord': 15,
|
|
18538
18538
|
'simple-earn/flexible/history/collateralRecord': 0.1,
|
|
18539
|
+
// Convert
|
|
18540
|
+
'dci/product/list': 0.1,
|
|
18541
|
+
'dci/product/positions': 0.1,
|
|
18542
|
+
'dci/product/accounts': 0.1,
|
|
18539
18543
|
},
|
|
18540
18544
|
'post': {
|
|
18541
18545
|
'asset/dust': 0.06667,
|
|
@@ -18664,6 +18668,9 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
18664
18668
|
'simple-earn/locked/redeem': 0.1,
|
|
18665
18669
|
'simple-earn/flexible/setAutoSubscribe': 15,
|
|
18666
18670
|
'simple-earn/locked/setAutoSubscribe': 15,
|
|
18671
|
+
// convert
|
|
18672
|
+
'dci/product/subscribe': 0.1,
|
|
18673
|
+
'dci/product/auto_compound/edit': 0.1,
|
|
18667
18674
|
},
|
|
18668
18675
|
'put': {
|
|
18669
18676
|
'userDataStream': 0.1,
|
|
@@ -185751,6 +185758,7 @@ class mexc extends _abstract_mexc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
185751
185758
|
'700006': _base_errors_js__WEBPACK_IMPORTED_MODULE_2__.BadRequest,
|
|
185752
185759
|
'700007': _base_errors_js__WEBPACK_IMPORTED_MODULE_2__.AuthenticationError,
|
|
185753
185760
|
'700008': _base_errors_js__WEBPACK_IMPORTED_MODULE_2__.BadRequest,
|
|
185761
|
+
'700013': _base_errors_js__WEBPACK_IMPORTED_MODULE_2__.AuthenticationError,
|
|
185754
185762
|
'730001': _base_errors_js__WEBPACK_IMPORTED_MODULE_2__.BadRequest,
|
|
185755
185763
|
'730002': _base_errors_js__WEBPACK_IMPORTED_MODULE_2__.BadRequest,
|
|
185756
185764
|
'730000': _base_errors_js__WEBPACK_IMPORTED_MODULE_2__.ExchangeError,
|
|
@@ -190283,7 +190291,7 @@ class mexc extends _abstract_mexc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
190283
190291
|
'source': this.safeString(this.options, 'broker', 'CCXT'),
|
|
190284
190292
|
};
|
|
190285
190293
|
}
|
|
190286
|
-
if (method === 'POST') {
|
|
190294
|
+
if ((method === 'POST') || (method === 'PUT')) {
|
|
190287
190295
|
headers['Content-Type'] = 'application/json';
|
|
190288
190296
|
}
|
|
190289
190297
|
}
|
|
@@ -203988,7 +203996,7 @@ class okx extends _abstract_okx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */
|
|
|
203988
203996
|
const liquidationPrice = this.safeNumber(position, 'liqPx');
|
|
203989
203997
|
const percentageString = this.safeString(position, 'uplRatio');
|
|
203990
203998
|
const percentage = this.parseNumber(_base_Precise_js__WEBPACK_IMPORTED_MODULE_3__/* .Precise */ .O.stringMul(percentageString, '100'));
|
|
203991
|
-
const timestamp = this.safeInteger(position, '
|
|
203999
|
+
const timestamp = this.safeInteger(position, 'cTime');
|
|
203992
204000
|
const marginRatio = this.parseNumber(_base_Precise_js__WEBPACK_IMPORTED_MODULE_3__/* .Precise */ .O.stringDiv(maintenanceMarginString, collateralString, 4));
|
|
203993
204001
|
return this.safePosition({
|
|
203994
204002
|
'info': position,
|
|
@@ -224591,18 +224599,18 @@ class bingx extends _bingx_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z {
|
|
|
224591
224599
|
/* harmony export */ Z: () => (/* binding */ bitcoincom)
|
|
224592
224600
|
/* harmony export */ });
|
|
224593
224601
|
/* harmony import */ var _hitbtc_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5189);
|
|
224594
|
-
/* harmony import */ var
|
|
224602
|
+
/* harmony import */ var _hitbtc_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4714);
|
|
224603
|
+
/* harmony import */ var _bitcoincom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1819);
|
|
224595
224604
|
// ---------------------------------------------------------------------------
|
|
224596
224605
|
|
|
224597
224606
|
|
|
224607
|
+
|
|
224598
224608
|
// ---------------------------------------------------------------------------
|
|
224599
224609
|
class bitcoincom extends _hitbtc_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z {
|
|
224600
224610
|
describe() {
|
|
224601
224611
|
// eslint-disable-next-line new-cap
|
|
224602
|
-
const
|
|
224603
|
-
|
|
224604
|
-
const extended = this.deepExtend(super.describe(), restDescribe);
|
|
224605
|
-
return this.deepExtend(extended, {
|
|
224612
|
+
const describeExtended = this.getDescribeForExtendedWsExchange(new _bitcoincom_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z(), new _hitbtc_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z(), super.describe());
|
|
224613
|
+
return this.deepExtend(describeExtended, {
|
|
224606
224614
|
'id': 'bitcoincom',
|
|
224607
224615
|
'name': 'bitcoin.com',
|
|
224608
224616
|
'countries': ['KN'],
|
|
@@ -307868,7 +307876,7 @@ SOFTWARE.
|
|
|
307868
307876
|
|
|
307869
307877
|
//-----------------------------------------------------------------------------
|
|
307870
307878
|
// this is updated by vss.js when building
|
|
307871
|
-
const version = '4.2.
|
|
307879
|
+
const version = '4.2.51';
|
|
307872
307880
|
_src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange */ .e.ccxtVersion = version;
|
|
307873
307881
|
//-----------------------------------------------------------------------------
|
|
307874
307882
|
|