Open TomToms55 opened 1 year ago
Missing parenthesis in line 4813 function mgAccount.
endpoint += (isIsolated)?'/isolated':'' + '/account';
to
endpoint += ((isIsolated)?'/isolated':'') + '/account';
Context (corrected):
/** * Margin account details * @param {function} callback - the callback function * @param {boolean} isIsolated - the callback function * @return {undefined} */ mgAccount: function( callback ,isIsolated = false) { let endpoint = 'v1/margin'; endpoint += ((isIsolated)?'/isolated':'') + '/account'; signedRequest( sapi + endpoint, {}, function( error, data ) { if( callback ) return callback( error, data ); } ); },
Missing parenthesis in line 4813 function mgAccount.
to
Context (corrected):