|
async spotCloseDataStream(listenKey: string | undefined = undefined, params: Dict = {}) { |
The function spotCloseDataStream hits an endpoint that doesn't exist anymore, since 20-Fev-26: https://github.com/binance/binance-spot-api-docs/blob/master/CHANGELOG.md#2026-01-21
Now, to close a user stream via WS-API you need to do this: https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/ws-api/user-data-stream#user-data-stream-unsubscribe
node-binance-api/src/node-binance-api.ts
Line 4391 in 466d8cc
The function spotCloseDataStream hits an endpoint that doesn't exist anymore, since 20-Fev-26: https://github.com/binance/binance-spot-api-docs/blob/master/CHANGELOG.md#2026-01-21
Now, to close a user stream via WS-API you need to do this: https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/ws-api/user-data-stream#user-data-stream-unsubscribe