diff --git a/package-lock.json b/package-lock.json index 8390422..02cbc71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "binance", - "version": "2.15.4", + "version": "2.15.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "binance", - "version": "2.15.3", + "version": "2.15.6", "license": "MIT", "dependencies": { "axios": "^1.6.2", diff --git a/package.json b/package.json index 08caeac..fc75760 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "binance", - "version": "2.15.5", + "version": "2.15.6", "description": "Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & end-to-end tests.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/main-client.ts b/src/main-client.ts index 38511c4..5ec92cf 100644 --- a/src/main-client.ts +++ b/src/main-client.ts @@ -739,6 +739,11 @@ export class MainClient extends BaseRestClient { getRollingWindowTicker( params: RollingWindowTickerParams, ): Promise { + if (params && params['symbols'] && Array.isArray(params['symbols'])) { + const symbolsQueryParam = JSON.stringify(params.symbols); + return this.get('api/v3/ticker?symbols=' + symbolsQueryParam); + } + return this.get('api/v3/ticker', params); }