Skip to content

Commit 9f59422

Browse files
committed
feat(client): add spotCloseDataStream
1 parent 6e71451 commit 9f59422

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/node-binance-api.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4139,6 +4139,12 @@ export default class Binance {
41394139
return await this.privateFuturesRequest('v1/listenKey', params, 'DELETE');
41404140
}
41414141

4142+
async spotCloseDataStream(listenKey: string | undefined = undefined, params: Dict = {}) {
4143+
listenKey = listenKey || this.Options.listenKey;
4144+
if (!listenKey) throw new Error('A listenKey is required, either as an argument or in this.Options.listenKey');
4145+
return await this.privateSpotRequest('v3/userDataStream', { listenKey, ...params }, 'DELETE');
4146+
}
4147+
41424148
/**
41434149
* Get the account position risk (v3)
41444150
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V3

0 commit comments

Comments
 (0)