diff --git a/lib/rest-client.js b/lib/rest-client.js index 96839bc..58d7f2c 100644 --- a/lib/rest-client.js +++ b/lib/rest-client.js @@ -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'); } diff --git a/package.json b/package.json index f52a161..f2f9a79 100644 --- a/package.json +++ b/package.json @@ -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": {