Merge pull request #7 from tiagosiebler/liqendpoint

v1.1.7: add get public liquidations endpoint
This commit is contained in:
Tiago
2020-08-12 00:35:26 +01:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -217,6 +217,13 @@ module.exports = class RestClient {
return await this.request.get('v2/public/trading-records', params);
}
async getPublicLiquidations(params) {
assert(params, 'No params passed');
assert(params.symbol, 'Parameter symbol is required');
return await this.request.get('v2/public/liq-records', params);
}
async getServerTime() {
return await this.request.get('v2/public/time');
}

View File

@@ -1,6 +1,6 @@
{
"name": "bybit-api",
"version": "1.1.6",
"version": "1.1.7",
"description": "An unofficial node.js lowlevel wrapper for the Bybit Cryptocurrency Derivative exchange API",
"main": "index.js",
"scripts": {