Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Margin Accountbug simple suggested fix #868

Open
TomToms55 opened this issue Jan 3, 2023 · 0 comments
Open

Margin Accountbug simple suggested fix #868

TomToms55 opened this issue Jan 3, 2023 · 0 comments

Comments

@TomToms55
Copy link

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 );
    } );
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant