Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deprecated/node-binance-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down
4 changes: 2 additions & 2 deletions src/node-binance-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Comment on lines +87 to +88

// Websockets Options
isAlive = false;
Expand Down
4 changes: 2 additions & 2 deletions tests/binance-class-static.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down Expand Up @@ -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 )
Expand Down
4 changes: 2 additions & 2 deletions tests/static-tests.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down Expand Up @@ -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 )
Expand Down
Loading