ccxt 4.1.39 → 4.1.40
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 +2 -3
- package/dist/ccxt.browser.js +4 -5
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/pro/huobi.js +3 -4
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/pro/huobi.js +3 -4
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -215,13 +215,13 @@ console.log(version, Object.keys(exchanges));
|
|
|
215
215
|
|
|
216
216
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
|
217
217
|
|
|
218
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.1.
|
|
219
|
-
* unpkg: https://unpkg.com/ccxt@4.1.
|
|
218
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.1.40/dist/ccxt.browser.js
|
|
219
|
+
* unpkg: https://unpkg.com/ccxt@4.1.40/dist/ccxt.browser.js
|
|
220
220
|
|
|
221
221
|
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.
|
|
222
222
|
|
|
223
223
|
```HTML
|
|
224
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.1.
|
|
224
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.1.40/dist/ccxt.browser.js"></script>
|
|
225
225
|
```
|
|
226
226
|
|
|
227
227
|
Creates a global `ccxt` object:
|
package/build.sh
CHANGED
|
@@ -59,7 +59,6 @@ build_and_test_all () {
|
|
|
59
59
|
npm run force-build
|
|
60
60
|
if [[ "$IS_TRAVIS" == "TRUE" ]]; then
|
|
61
61
|
npm run test-base
|
|
62
|
-
npm run static-tests
|
|
63
62
|
npm run test-base-ws
|
|
64
63
|
run_tests
|
|
65
64
|
fi
|
|
@@ -155,8 +154,8 @@ if [ ${#REST_EXCHANGES[@]} -eq 0 ] && [ ${#WS_EXCHANGES[@]} -eq 0 ]; then
|
|
|
155
154
|
exit
|
|
156
155
|
fi
|
|
157
156
|
|
|
158
|
-
# run
|
|
159
|
-
npm run
|
|
157
|
+
# run base tests (base js,py,php, brokerId and static-tests)
|
|
158
|
+
npm run test-base
|
|
160
159
|
|
|
161
160
|
# rest_args=${REST_EXCHANGES[*]} || "skip"
|
|
162
161
|
rest_args=$(IFS=" " ; echo "${REST_EXCHANGES[*]}") || "skip"
|
package/dist/ccxt.browser.js
CHANGED
|
@@ -227524,13 +227524,13 @@ class huobi extends _huobi_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z {
|
|
|
227524
227524
|
// }
|
|
227525
227525
|
//
|
|
227526
227526
|
const channel = this.safeString(message, 'ch');
|
|
227527
|
-
const
|
|
227527
|
+
const data = this.safeValue(message, 'data', []);
|
|
227528
|
+
const timestamp = this.safeInteger(data, 'changeTime', this.safeInteger(message, 'ts'));
|
|
227528
227529
|
this.balance['timestamp'] = timestamp;
|
|
227529
227530
|
this.balance['datetime'] = this.iso8601(timestamp);
|
|
227530
|
-
this.balance['info'] =
|
|
227531
|
+
this.balance['info'] = data;
|
|
227531
227532
|
if (channel !== undefined) {
|
|
227532
227533
|
// spot balance
|
|
227533
|
-
const data = this.safeValue(message, 'data', {});
|
|
227534
227534
|
const currencyId = this.safeString(data, 'currency');
|
|
227535
227535
|
const code = this.safeCurrencyCode(currencyId);
|
|
227536
227536
|
const account = this.account();
|
|
@@ -227542,7 +227542,6 @@ class huobi extends _huobi_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z {
|
|
|
227542
227542
|
}
|
|
227543
227543
|
else {
|
|
227544
227544
|
// contract balance
|
|
227545
|
-
const data = this.safeValue(message, 'data', []);
|
|
227546
227545
|
const dataLength = data.length;
|
|
227547
227546
|
if (dataLength === 0) {
|
|
227548
227547
|
return;
|
|
@@ -281615,7 +281614,7 @@ SOFTWARE.
|
|
|
281615
281614
|
|
|
281616
281615
|
//-----------------------------------------------------------------------------
|
|
281617
281616
|
// this is updated by vss.js when building
|
|
281618
|
-
const version = '4.1.
|
|
281617
|
+
const version = '4.1.40';
|
|
281619
281618
|
_src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange.ccxtVersion */ .e.ccxtVersion = version;
|
|
281620
281619
|
//-----------------------------------------------------------------------------
|
|
281621
281620
|
|