jaggedsoft / node-binance-api

Node Binance API is an asynchronous node.js library for the Binance API designed to be easy to use.
MIT License
1.58k stars 768 forks source link

How to terminate userFutureData? #707

Open deoryz opened 3 years ago

deoryz commented 3 years ago

I have problem to terminate userFutureData? is any method to terminate userFutureData?

matthewpalmer commented 2 years ago

When you create the websocket streams with client.websockets.userFutureData and client.websockets.userData, the callback subscribed_callback (last parameter) is passed an endpoint. Pass this endpoint to client.futuresTerminate or client.websockets.terminate to terminate.