Skip to content

Commit 8fb366c

Browse files
authored
mgAccount fix 404 error by maxah
2 parents 966e46d + c325e36 commit 8fb366c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

node-binance-api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4751,7 +4751,8 @@ let api = function Binance( options = {} ) {
47514751
* @return {undefined}
47524752
*/
47534753
mgAccount: function( callback ,isIsolated = false) {
4754-
const endpoint = 'v1/margin' + (isIsolated?'/isolated':'') + '/account'
4754+
let endpoint = 'v1/margin';
4755+
endpoint += (isIsolated)?'/isolated':'' + '/account';
47554756
signedRequest( sapi + endpoint, {}, function( error, data ) {
47564757
if( callback ) return callback( error, data );
47574758
} );

0 commit comments

Comments
 (0)