Stefan Aebischer
2020-02-12 10:45:53 -05:00
parent 6fd3d34a47
commit e519c368e5
2 changed files with 9 additions and 0 deletions

View File

@@ -71,6 +71,9 @@ If you only use the [public endpoints](#public-endpoints) you can ommit key and
#### async getWithdrawRecords(params) #### async getWithdrawRecords(params)
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-get-withdraw-records) [See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-get-withdraw-records)
#### async getWalletBalance(params)
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#open-apiwalletbalanceget)
#### async setRiskLimit(params) #### async setRiskLimit(params)
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#set-risk-limit-) [See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#set-risk-limit-)

View File

@@ -144,6 +144,12 @@ module.exports = class RestClient {
return await this.request.get('/open-api/wallet/withdraw/list', params); return await this.request.get('/open-api/wallet/withdraw/list', params);
} }
async getWalletBalance(params) {
assert(params, 'No params passed');
assert(params.coin, 'Parameter coin is required');
return await this.request.get('/v2/private/wallet/balance', params);
}
async setRiskLimit(params) { async setRiskLimit(params) {
assert(params, 'No params passed'); assert(params, 'No params passed');
assert(params.symbol, 'Parameter symbol is required'); assert(params.symbol, 'Parameter symbol is required');