Add new endpoint getWalletBalance
See: https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/CHANGELOG.md#2020-02-10
This commit is contained in:
@@ -71,6 +71,9 @@ If you only use the [public endpoints](#public-endpoints) you can ommit key and
|
||||
#### async getWithdrawRecords(params)
|
||||
[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)
|
||||
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#set-risk-limit-)
|
||||
|
||||
|
||||
@@ -144,6 +144,12 @@ module.exports = class RestClient {
|
||||
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) {
|
||||
assert(params, 'No params passed');
|
||||
assert(params.symbol, 'Parameter symbol is required');
|
||||
|
||||
Reference in New Issue
Block a user