ccxt 4.1.9 → 4.1.10
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/.git-templates/hooks/pre-push +55 -0
- package/README.md +3 -3
- package/dist/ccxt.browser.js +219 -114
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +1 -1
- package/dist/cjs/src/bingx.js +3 -2
- package/dist/cjs/src/bitbns.js +107 -83
- package/dist/cjs/src/bitget.js +9 -15
- package/dist/cjs/src/btcalpha.js +9 -1
- package/dist/cjs/src/btcmarkets.js +5 -5
- package/dist/cjs/src/coinex.js +14 -2
- package/dist/cjs/src/deribit.js +6 -0
- package/dist/cjs/src/hitbtc.js +20 -2
- package/dist/cjs/src/phemex.js +20 -1
- package/dist/cjs/src/probit.js +3 -0
- package/dist/cjs/src/woo.js +21 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/base/Exchange.js +1 -1
- package/js/src/bingx.js +3 -2
- package/js/src/bitbns.d.ts +1 -1
- package/js/src/bitbns.js +107 -83
- package/js/src/bitget.js +9 -15
- package/js/src/btcalpha.js +9 -1
- package/js/src/btcmarkets.js +5 -5
- package/js/src/coinex.d.ts +1 -1
- package/js/src/coinex.js +14 -2
- package/js/src/deribit.js +6 -0
- package/js/src/hitbtc.d.ts +2 -2
- package/js/src/hitbtc.js +20 -2
- package/js/src/phemex.js +20 -1
- package/js/src/probit.js +3 -0
- package/js/src/woo.js +21 -1
- package/package.json +1 -1
- package/pyproject.toml +8 -0
- package/skip-tests.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Check if changes are relevant
|
|
4
|
+
CHECK_DIRECTORIES="ts/ python/ccxt/ php/ build/"
|
|
5
|
+
|
|
6
|
+
MODIFIED_FILES=$(git diff --name-only upstream/master)
|
|
7
|
+
HAS_RELEVANT_CHANGES=false
|
|
8
|
+
|
|
9
|
+
for DIR in $CHECK_DIRECTORIES; do
|
|
10
|
+
if echo "$MODIFIED_FILES" | grep -qE "^$DIR"; then
|
|
11
|
+
HAS_RELEVANT_CHANGES=true
|
|
12
|
+
break
|
|
13
|
+
fi
|
|
14
|
+
done
|
|
15
|
+
|
|
16
|
+
if [ "$HAS_RELEVANT_CHANGES" = "false" ]; then
|
|
17
|
+
echo "No relevant changes, skipping checks..."
|
|
18
|
+
exit 0
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
# Lint TS files
|
|
22
|
+
MODIFIED_TS_FILES=$(git diff --name-only upstream/master -- 'ts/**/*.ts')
|
|
23
|
+
|
|
24
|
+
ESLINT_EXIT_CODE=0
|
|
25
|
+
# Run eslint on the modified files
|
|
26
|
+
if [ "$MODIFIED_TS_FILES" != "" ]; then
|
|
27
|
+
eslint $MODIFIED_TS_FILES
|
|
28
|
+
ESLINT_EXIT_CODE=$?
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
if [ $ESLINT_EXIT_CODE -ne 0 ]; then
|
|
32
|
+
echo "ESLint failed, check the TypeScript files..."
|
|
33
|
+
exit $ESLINT_EXIT_CODE
|
|
34
|
+
fi
|
|
35
|
+
|
|
36
|
+
# Run python linting
|
|
37
|
+
ruff ./python/ccxt
|
|
38
|
+
PYTHON_EXIT_CODE=$?
|
|
39
|
+
|
|
40
|
+
if [ $PYTHON_EXIT_CODE -ne 0 ]; then
|
|
41
|
+
echo "Python linting failed, check the Python files..."
|
|
42
|
+
exit $ESLINT_EXIT_CODE
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
# Run PHP linting
|
|
46
|
+
npm run check-php-syntax
|
|
47
|
+
PHP_EXIT_CODE=$?
|
|
48
|
+
|
|
49
|
+
if [ $PHP_EXIT_CODE -ne 0 ]; then
|
|
50
|
+
echo "PHP linting failed, check the PHP files..."
|
|
51
|
+
exit $ESLINT_EXIT_CODE
|
|
52
|
+
fi
|
|
53
|
+
|
|
54
|
+
echo "All checks passed, pushing..."
|
|
55
|
+
exit 0
|
package/README.md
CHANGED
|
@@ -214,13 +214,13 @@ console.log(version, Object.keys(exchanges));
|
|
|
214
214
|
|
|
215
215
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
|
216
216
|
|
|
217
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.1.
|
|
218
|
-
* unpkg: https://unpkg.com/ccxt@4.1.
|
|
217
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.1.10/dist/ccxt.browser.js
|
|
218
|
+
* unpkg: https://unpkg.com/ccxt@4.1.10/dist/ccxt.browser.js
|
|
219
219
|
|
|
220
220
|
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.
|
|
221
221
|
|
|
222
222
|
```HTML
|
|
223
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.1.
|
|
223
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.1.10/dist/ccxt.browser.js"></script>
|
|
224
224
|
```
|
|
225
225
|
|
|
226
226
|
Creates a global `ccxt` object:
|