Skip to content

Commit 2a025c3

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/lodash-4.18.1
2 parents 7444e3a + 43d4d6b commit 2a025c3

9 files changed

Lines changed: 541 additions & 87 deletions

.github/workflows/js.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
run: npm run ts-test-static
3434
- name: Static Tests (JS CJS)
3535
run: npm run static-test
36+
- name: Futures WS endpoint migration tests
37+
run: npm run ws-tests-migration
3638
- name: Live Tests (TS ESM)
3739
run: npm run ts-test-live
3840
- name: CJS test

deprecated/node-binance-api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ let api = function Binance(options = {}) {
4040
let combineStream = 'wss://stream.binance.com:9443/stream?streams=';
4141
const userAgent = 'Mozilla/4.0 (compatible; Node Binance API)';
4242
const contentType = 'application/x-www-form-urlencoded';
43-
const SPOT_PREFIX = "x-HNA2TXFJ"
44-
const CONTRACT_PREFIX = "x-Cb7ytekJ"
43+
const SPOT_PREFIX = "x-TKT5PX2F"
44+
const CONTRACT_PREFIX = "x-cvBPrNm9"
4545
Binance.subscriptions = {};
4646
Binance.futuresSubscriptions = {};
4747
Binance.futuresInfo = {};

package-lock.json

Lines changed: 60 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-binance-api",
3-
"version": "1.0.24",
3+
"version": "1.0.33",
44
"description": "Binance API for node https://github.com/ccxt/node-binance-api",
55
"typings": "./dist/node-binance-api.d.ts",
66
"type": "module",
@@ -32,6 +32,7 @@
3232
"ws-tests": "mocha ./tests/binance-class-ws.test.ts",
3333
"ws-tests-spot": "mocha ./tests/binance-ws-spot.test.ts --exit",
3434
"ws-tests-futures": "mocha ./tests/binance-ws-futures.test.ts --exit",
35+
"ws-tests-migration": "mocha ./tests/ws-endpoints-migration.test.ts --fgrep \"Live:\" --invert --exit",
3536
"ws-api-userdata-tests": "mocha ./tests/binance-ws-api-userdata.test.ts --exit",
3637
"ws-live-tests": "mocha ./tests/binance-ws-spot.test.ts ./tests/binance-ws-futures.test.ts ./tests/binance-ws-api-userdata.test.ts ./tests/binance-ws-api-ticker.test.ts --exit",
3738
"test-debug": "mocha --inspect-brk",

0 commit comments

Comments
 (0)