Skip to content

Commit 8c9c84f

Browse files
committed
repay query
1 parent 5010640 commit 8c9c84f

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

node-binance-api.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4685,6 +4685,34 @@ let api = function Binance( options = {} ) {
46854685
}, 'POST' );
46864686
},
46874687

4688+
/**
4689+
* Margin account borrow/loan
4690+
* @param {string} asset - the asset
4691+
* @param {object} options - additional options
4692+
* @param {function} callback - the callback function
4693+
* @return {undefined}
4694+
*/
4695+
mgQueryLoan: function ( asset, options, callback) {
4696+
let parameters = Object.assign( { asset: asset }, options );
4697+
signedRequest( sapi + 'v1/margin/loan', {...parameters}, function ( error, data ) {
4698+
if ( callback ) return callback( error, data );
4699+
}, 'GET' );
4700+
},
4701+
4702+
/**
4703+
* Margin account repay
4704+
* @param {string} asset - the asset
4705+
* @param {object} options - additional options
4706+
* @param {function} callback - the callback function
4707+
* @return {undefined}
4708+
*/
4709+
mgQueryRepay: function ( asset, options, callback ) {
4710+
let parameters = Object.assign( { asset: asset }, options );
4711+
signedRequest( sapi + 'v1/margin/repay', {...parameters}, function ( error, data ) {
4712+
if ( callback ) return callback( error, data );
4713+
}, 'GET' );
4714+
},
4715+
46884716
/**
46894717
* Margin account repay
46904718
* @param {string} asset - the asset
@@ -4705,6 +4733,7 @@ let api = function Binance( options = {} ) {
47054733
if ( callback ) return callback( error, data );
47064734
}, 'POST' );
47074735
},
4736+
47084737
/**
47094738
* Margin account details
47104739
* @param {function} callback - the callback function

0 commit comments

Comments
 (0)