File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -658,7 +658,7 @@ export default class Binance {
658658 this . requireApiSecret ( 'signedRequest' ) ;
659659 const isListenKeyEndpoint = url . includes ( 'v3/userDataStream' ) ;
660660
661- const query = method === 'POST' && noDataInSignature ? '' : this . makeQueryString ( data ) ;
661+ let query = method === 'POST' && noDataInSignature ? '' : this . makeQueryString ( data ) ;
662662
663663 let signature = undefined ;
664664 if ( ! noDataInSignature && ! isListenKeyEndpoint ) {
@@ -667,6 +667,7 @@ export default class Binance {
667667 if ( this . timeOffset ) data . timestamp += this . timeOffset ;
668668
669669 if ( ! data . recvWindow ) data . recvWindow = this . Options . recvWindow ;
670+ query = this . makeQueryString ( data ) ;
670671 signature = this . generateSignature ( query ) ;
671672 }
672673
@@ -6223,4 +6224,4 @@ export default class Binance {
62236224 }
62246225 return ( subscription as any ) . url ;
62256226 }
6226- }
6227+ }
You can’t perform that action at this time.
0 commit comments