We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e65960 + f14a326 commit bfaa172Copy full SHA for bfaa172
1 file changed
node-binance-api.js
@@ -1841,6 +1841,17 @@ let api = function Binance() {
1841
return subscription.endpoint;
1842
},
1843
1844
+ /**
1845
+ * Clear websocket depthcache
1846
+ * @param {String|Array} symbols - a single symbol, or an array of symbols, to clear the cache of
1847
+ */
1848
+ clearDepthCache(symbols) {
1849
+ const symbolsArr = Array.isArray(symbols) ? symbols : [symbols];
1850
+ symbolsArr.forEach((thisSymbol) => {
1851
+ delete Binance.depthCache[thisSymbol];
1852
+ });
1853
+ },
1854
+
1855
/**
1856
* Websocket staggered depth cache
1857
* @param {array/string} symbols - an array of symbols to query
0 commit comments