From 2ddf02901d851414130aeee4cff965cd1bd80a41 Mon Sep 17 00:00:00 2001 From: carlosmiei <43336371+carlosmiei@users.noreply.github.com> Date: Mon, 8 Jun 2026 15:52:02 +0100 Subject: [PATCH] chore: update ids --- deprecated/node-binance-api.js | 4 ++-- src/node-binance-api.ts | 4 ++-- tests/binance-class-static.test.ts | 4 ++-- tests/static-tests.mjs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deprecated/node-binance-api.js b/deprecated/node-binance-api.js index 94754a42..a3cb599b 100644 --- a/deprecated/node-binance-api.js +++ b/deprecated/node-binance-api.js @@ -40,8 +40,8 @@ let api = function Binance(options = {}) { let combineStream = 'wss://stream.binance.com:9443/stream?streams='; const userAgent = 'Mozilla/4.0 (compatible; Node Binance API)'; const contentType = 'application/x-www-form-urlencoded'; - const SPOT_PREFIX = "x-HNA2TXFJ" - const CONTRACT_PREFIX = "x-Cb7ytekJ" + const SPOT_PREFIX = "x-TKT5PX2F" + const CONTRACT_PREFIX = "x-cvBPrNm9" Binance.subscriptions = {}; Binance.futuresSubscriptions = {}; Binance.futuresInfo = {}; diff --git a/src/node-binance-api.ts b/src/node-binance-api.ts index 123736a2..35d13af9 100644 --- a/src/node-binance-api.ts +++ b/src/node-binance-api.ts @@ -84,8 +84,8 @@ export default class Binance { userAgent = 'Mozilla/4.0 (compatible; Node Binance API)'; contentType = 'application/x-www-form-urlencoded'; - SPOT_PREFIX = "x-B3AUXNYV"; - CONTRACT_PREFIX = "x-ftGmvgAN"; + SPOT_PREFIX = "x-TKT5PX2F"; + CONTRACT_PREFIX = "x-cvBPrNm9"; // Websockets Options isAlive = false; diff --git a/tests/binance-class-static.test.ts b/tests/binance-class-static.test.ts index de8a847f..64d65135 100644 --- a/tests/binance-class-static.test.ts +++ b/tests/binance-class-static.test.ts @@ -145,7 +145,7 @@ describe( 'Static tests', async function () { assert.equal( obj.orderId, '34234234') }) - const SPOT_PREFIX = "x-B3AUXNYV" + const SPOT_PREFIX = "x-TKT5PX2F" it( 'MarketBuy', async function ( ) { await binance.marketBuy( 'LTCUSDT', 0.5 ) @@ -200,7 +200,7 @@ describe( 'Static tests', async function () { assert.equal( obj.symbol, 'LTCUSDT' ) }) - const CONTRACT_PREFIX = "x-ftGmvgAN" + const CONTRACT_PREFIX = "x-cvBPrNm9" it( 'Futures MarketBuy', async function ( ) { await binance.futuresMarketBuy( 'LTCUSDT', 0.5 ) diff --git a/tests/static-tests.mjs b/tests/static-tests.mjs index 35e00719..131c863a 100644 --- a/tests/static-tests.mjs +++ b/tests/static-tests.mjs @@ -136,7 +136,7 @@ describe( 'Static tests', async function () { assert.equal( obj.orderId, '34234234') }) - const SPOT_PREFIX = "x-B3AUXNYV" + const SPOT_PREFIX = "x-TKT5PX2F" it( 'MarketBuy', async function ( ) { await binance.marketBuy( 'LTCUSDT', 0.5 ) @@ -182,7 +182,7 @@ describe( 'Static tests', async function () { assert(obj.newClientOrderId.startsWith(SPOT_PREFIX)) }) - const CONTRACT_PREFIX = "x-ftGmvgAN" + const CONTRACT_PREFIX = "x-cvBPrNm9" it( 'Futures MarketBuy', async function ( ) { await binance.futuresMarketBuy( 'LTCUSDT', 0.5 )