Skip to content

Commit 9d42090

Browse files
committed
fix(ws): use !miniTicker@arr for spot prevDay stream
The !ticker@arr stream has been removed from Spot Testnet and is expected to be removed from mainnet. Replace with !miniTicker@arr as recommended by Binance docs. Futures and delivery streams are unchanged as they still support !ticker@arr. Closes #978
1 parent 92f7167 commit 9d42090

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

deprecated/node-binance-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6018,7 +6018,7 @@ let api = function Binance(options = {}) {
60186018
}, reconnect);
60196019
// Raw stream of all listed symbols
60206020
} else {
6021-
subscription = subscribe('!ticker@arr', function (data) {
6021+
subscription = subscribe('!miniTicker@arr', function (data) {
60226022
if (singleCallback) {
60236023
prevDayStreamHandler(data, callback);
60246024
} else {

src/node-binance-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6452,7 +6452,7 @@ export default class Binance {
64526452
}, reconnect);
64536453
// Raw stream of all listed symbols
64546454
} else {
6455-
subscription = this.subscribe('!ticker@arr', function (data: any) {
6455+
subscription = this.subscribe('!miniTicker@arr', function (data: any) {
64566456
if (singleCallback) {
64576457
prevDayStreamHandler(data, callback);
64586458
} else {

0 commit comments

Comments
 (0)